We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 865b24c commit 58f5911Copy full SHA for 58f5911
deploy/crds/mongodb.com_mongodb_crd.yaml
@@ -52,6 +52,8 @@ spec:
52
type:
53
description: Type defines which type of MongoDB deployment the resource
54
should create
55
+ enum:
56
+ - ReplicaSet
57
type: string
58
version:
59
description: Version defines which version of MongoDB will be used
pkg/apis/mongodb/v1/mongodb_types.go
@@ -31,6 +31,7 @@ type MongoDBSpec struct {
31
// +optional
32
Members int `json:"members"`
33
// Type defines which type of MongoDB deployment the resource should create
34
+ // +kubebuilder:validation:Enum=ReplicaSet
35
Type Type `json:"type"`
36
// Version defines which version of MongoDB will be used
37
Version string `json:"version"`
0 commit comments