-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e60abe
commit 25ee0fc
Showing
6 changed files
with
119 additions
and
5 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/release.yml → .github/workflows/chart-release.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Release Charts | ||
name: Release helm chart to github | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Build and push docker image to github | ||
|
||
# on: | ||
# push: | ||
# branches: | ||
# - main | ||
|
||
on: | ||
push: | ||
tags: | ||
- * | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: 'Checkout GitHub Action' | ||
uses: actions/checkout@main | ||
|
||
- name: 'Login to GitHub Container Registry' | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{github.actor}} | ||
password: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: 'Build Inventory Image' | ||
run: | | ||
# VERSION = | ||
echo ${GITHUB_REF#refs/tags/} | ||
make docker-build | ||
make docker-push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.12.0 | ||
name: immudbs.immudb.io | ||
spec: | ||
group: immudb.io | ||
names: | ||
kind: Immudb | ||
listKind: ImmudbList | ||
plural: immudbs | ||
singular: immudb | ||
scope: Namespaced | ||
versions: | ||
- name: v1 | ||
schema: | ||
openAPIV3Schema: | ||
description: Immudb is the Schema for the immudbs API | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: ImmudbSpec defines the desired state of Immudb | ||
properties: | ||
image: | ||
default: codenotary/immudb:latest | ||
description: The image name to use for PostgreSQL containers. | ||
type: string | ||
imagePullPolicy: | ||
description: ImagePullPolicy is used to determine when Kubernetes | ||
will attempt to pull (download) container images. | ||
enum: | ||
- Always | ||
- Never | ||
- IfNotPresent | ||
type: string | ||
replicas: | ||
description: Number of desired immudb pods. At the moment, you can | ||
just have 1 replica of immudb. We are working to raise that limit. | ||
format: int32 | ||
maximum: 1 | ||
minimum: 1 | ||
type: integer | ||
required: | ||
- replicas | ||
type: object | ||
status: | ||
description: ImmudbStatus defines the observed state of Immudb | ||
properties: | ||
ready: | ||
description: Instance ready to accept connections | ||
type: boolean | ||
readyReplicas: | ||
description: Number of ready replicas | ||
format: int32 | ||
type: integer | ||
required: | ||
- ready | ||
- readyReplicas | ||
type: object | ||
required: | ||
- spec | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |