diff --git a/deploy/crds/mongodb.com_mongodb_crd.yaml b/deploy/crds/mongodb.com_mongodb_crd.yaml index 54bf87e2f..402da921d 100644 --- a/deploy/crds/mongodb.com_mongodb_crd.yaml +++ b/deploy/crds/mongodb.com_mongodb_crd.yaml @@ -167,6 +167,7 @@ spec: description: Version defines which version of MongoDB will be used type: string required: + - security - type - users - version @@ -174,11 +175,16 @@ spec: status: description: MongoDBStatus defines the observed state of MongoDB properties: + members: + type: integer + message: + type: string mongoUri: type: string phase: type: string required: + - members - mongoUri - phase type: object diff --git a/pkg/apis/mongodb/v1/mongodb_types.go b/pkg/apis/mongodb/v1/mongodb_types.go index cce57c529..493b77d0b 100644 --- a/pkg/apis/mongodb/v1/mongodb_types.go +++ b/pkg/apis/mongodb/v1/mongodb_types.go @@ -5,10 +5,10 @@ import ( "fmt" "strings" - "github.com/mongodb/mongodb-kubernetes-operator/pkg/util/scale" - appsv1 "k8s.io/api/apps/v1" + "github.com/mongodb/mongodb-kubernetes-operator/pkg/util/scale" + "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" @@ -51,7 +51,7 @@ type MongoDBSpec struct { FeatureCompatibilityVersion string `json:"featureCompatibilityVersion,omitempty"` // Security configures security features, such as TLS, and authentication settings for a deployment - // +optional + // +required Security Security `json:"security"` // Users specifies the MongoDB users that should be configured in your deployment