Skip to content

Commit

Permalink
Make replicas field to optional
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuCesbron committed Feb 8, 2024
1 parent 6aa27bd commit 21b4983
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion api/v1/immudb_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ type ImmudbSpec struct {
// Number of desired immudb pods. At the moment, you can just have 1 replica of immudb. We are working to raise that limit.
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=1
// +kubebuilder:validation:Required
// +kubebuilder:default=1
// +kubebuilder:validation:Optional
Replicas *int32 `json:"replicas"`

// +kubebuilder:validation:Required
Expand Down
4 changes: 2 additions & 2 deletions charts/operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: v2
name: immudb-operator
description: Helm chart to deploy [unagex-immudb-operator](https://github.com/unagex/immudb-operator)
type: application
version: 0.0.3
appVersion: 0.0.3
version: 0.0.4
appVersion: 0.0.4
home: https://github.com/unagex/immudb-operator
2 changes: 1 addition & 1 deletion charts/operator/templates/crds/unagex.com_immudbs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ spec:
- IfNotPresent
type: string
replicas:
default: 1
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
Expand All @@ -67,7 +68,6 @@ spec:
- size
type: object
required:
- replicas
- volume
type: object
status:
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/unagex.com_immudbs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ spec:
- IfNotPresent
type: string
replicas:
default: 1
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
Expand All @@ -67,7 +68,6 @@ spec:
- size
type: object
required:
- replicas
- volume
type: object
status:
Expand Down
2 changes: 1 addition & 1 deletion config/samples/v1_immudb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
spec:
# image: "codenotary/immudb:latest"
# imagePullPolicy: "IfNotPresent"
replicas: 1
# replicas: 1
volume:
# storageClassName: "standard"
size: 1Gi

0 comments on commit 21b4983

Please sign in to comment.