Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions deploy/crds/mongodb.com_mongodb_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,24 @@ spec:
description: Version defines which version of MongoDB will be used
type: string
required:
- security
- type
- users
- version
type: object
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
Expand Down
6 changes: 3 additions & 3 deletions pkg/apis/mongodb/v1/mongodb_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down