Skip to content

Commit 21b4983

Browse files
Make replicas field to optional
1 parent 6aa27bd commit 21b4983

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

api/v1/immudb_types.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ type ImmudbSpec struct {
4040
// Number of desired immudb pods. At the moment, you can just have 1 replica of immudb. We are working to raise that limit.
4141
// +kubebuilder:validation:Minimum=1
4242
// +kubebuilder:validation:Maximum=1
43-
// +kubebuilder:validation:Required
43+
// +kubebuilder:default=1
44+
// +kubebuilder:validation:Optional
4445
Replicas *int32 `json:"replicas"`
4546

4647
// +kubebuilder:validation:Required

charts/operator/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ apiVersion: v2
22
name: immudb-operator
33
description: Helm chart to deploy [unagex-immudb-operator](https://github.com/unagex/immudb-operator)
44
type: application
5-
version: 0.0.3
6-
appVersion: 0.0.3
5+
version: 0.0.4
6+
appVersion: 0.0.4
77
home: https://github.com/unagex/immudb-operator

charts/operator/templates/crds/unagex.com_immudbs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ spec:
4848
- IfNotPresent
4949
type: string
5050
replicas:
51+
default: 1
5152
description: Number of desired immudb pods. At the moment, you can
5253
just have 1 replica of immudb. We are working to raise that limit.
5354
format: int32
@@ -67,7 +68,6 @@ spec:
6768
- size
6869
type: object
6970
required:
70-
- replicas
7171
- volume
7272
type: object
7373
status:

config/crd/bases/unagex.com_immudbs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ spec:
4848
- IfNotPresent
4949
type: string
5050
replicas:
51+
default: 1
5152
description: Number of desired immudb pods. At the moment, you can
5253
just have 1 replica of immudb. We are working to raise that limit.
5354
format: int32
@@ -67,7 +68,6 @@ spec:
6768
- size
6869
type: object
6970
required:
70-
- replicas
7171
- volume
7272
type: object
7373
status:

config/samples/v1_immudb.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
spec:
66
# image: "codenotary/immudb:latest"
77
# imagePullPolicy: "IfNotPresent"
8-
replicas: 1
8+
# replicas: 1
99
volume:
1010
# storageClassName: "standard"
1111
size: 1Gi

0 commit comments

Comments
 (0)