Skip to content

Commit

Permalink
Updated (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-build-account authored Oct 2, 2024
1 parent 8718841 commit 625a5cc
Show file tree
Hide file tree
Showing 9 changed files with 1,219 additions and 27 deletions.
2 changes: 1 addition & 1 deletion charts/enterprise-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: enterprise-operator
description: MongoDB Kubernetes Enterprise Operator
version: 1.27.0
version: 1.28.0
kubeVersion: '>=1.16-0'
type: application
keywords:
Expand Down
941 changes: 938 additions & 3 deletions charts/enterprise-operator/crds/mongodb.com_mongodb.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ spec:
type: object
type: object
memberConfig:
description: MemberConfig
description: MemberConfig allows to specify votes, priorities
and tags for each of the mongodb process.
items:
properties:
priority:
Expand All @@ -437,10 +438,63 @@ spec:
type: integer
type: object
type: array
x-kubernetes-preserve-unknown-fields: true
members:
description: Amount of members for this MongoDB Replica Set
type: integer
podSpec:
properties:
persistence:
description: Note, that this field is used by MongoDB resources
only, let's keep it here for simplicity
properties:
multiple:
properties:
data:
properties:
labelSelector:
type: object
x-kubernetes-preserve-unknown-fields: true
storage:
type: string
storageClass:
type: string
type: object
journal:
properties:
labelSelector:
type: object
x-kubernetes-preserve-unknown-fields: true
storage:
type: string
storageClass:
type: string
type: object
logs:
properties:
labelSelector:
type: object
x-kubernetes-preserve-unknown-fields: true
storage:
type: string
storageClass:
type: string
type: object
type: object
single:
properties:
labelSelector:
type: object
x-kubernetes-preserve-unknown-fields: true
storage:
type: string
storageClass:
type: string
type: object
type: object
podTemplate:
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
service:
description: this is an optional service, it will get the name
"<rsName>-service" in case not provided
Expand Down Expand Up @@ -831,6 +885,15 @@ spec:
required:
- spec
type: object
topology:
description: |-
Topology sets the desired cluster topology of MongoDB resources
It defaults (if empty or not set) to SingleCluster. If MultiCluster specified,
then clusterSpecList field is mandatory and at least one member cluster has to be specified.
enum:
- SingleCluster
- MultiCluster
type: string
type:
enum:
- Standalone
Expand Down Expand Up @@ -882,6 +945,18 @@ spec:
type: integer
phase:
type: string
pvc:
items:
properties:
phase:
type: string
statefulsetName:
type: string
required:
- phase
- statefulsetName
type: object
type: array
resourcesNotReady:
items:
description: ResourceNotReady describes the dependent
Expand Down Expand Up @@ -918,6 +993,8 @@ spec:
type: object
type: array
type: object
featureCompatibilityVersion:
type: string
lastTransition:
type: string
link:
Expand All @@ -929,6 +1006,18 @@ spec:
type: integer
phase:
type: string
pvc:
items:
properties:
phase:
type: string
statefulsetName:
type: string
required:
- phase
- statefulsetName
type: object
type: array
resourcesNotReady:
items:
description: ResourceNotReady describes the dependent resource which
Expand Down
12 changes: 12 additions & 0 deletions charts/enterprise-operator/crds/mongodb.com_mongodbusers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,18 @@ spec:
type: string
project:
type: string
pvc:
items:
properties:
phase:
type: string
statefulsetName:
type: string
required:
- phase
- statefulsetName
type: object
type: array
resourcesNotReady:
items:
description: ResourceNotReady describes the dependent resource which
Expand Down
127 changes: 116 additions & 11 deletions charts/enterprise-operator/crds/mongodb.com_opsmanagers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ spec:
type: object
type: object
memberConfig:
description: MemberConfig
description: MemberConfig allows to specify votes, priorities
and tags for each of the mongodb process.
items:
properties:
priority:
Expand All @@ -406,11 +407,64 @@ spec:
type: integer
type: object
type: array
x-kubernetes-preserve-unknown-fields: true
members:
description: Amount of members for this MongoDB Replica
Set
type: integer
podSpec:
properties:
persistence:
description: Note, that this field is used by MongoDB
resources only, let's keep it here for simplicity
properties:
multiple:
properties:
data:
properties:
labelSelector:
type: object
x-kubernetes-preserve-unknown-fields: true
storage:
type: string
storageClass:
type: string
type: object
journal:
properties:
labelSelector:
type: object
x-kubernetes-preserve-unknown-fields: true
storage:
type: string
storageClass:
type: string
type: object
logs:
properties:
labelSelector:
type: object
x-kubernetes-preserve-unknown-fields: true
storage:
type: string
storageClass:
type: string
type: object
type: object
single:
properties:
labelSelector:
type: object
x-kubernetes-preserve-unknown-fields: true
storage:
type: string
storageClass:
type: string
type: object
type: object
podTemplate:
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
service:
description: this is an optional service, it will get the
name "<rsName>-service" in case not provided
Expand Down Expand Up @@ -474,16 +528,9 @@ spec:
type: string
featureCompatibilityVersion:
type: string
logLevel:
enum:
- DEBUG
- INFO
- WARN
- ERROR
- FATAL
type: string
memberConfig:
description: MemberConfig
description: MemberConfig allows to specify votes, priorities
and tags for each of the mongodb process.
items:
properties:
priority:
Expand Down Expand Up @@ -540,6 +587,8 @@ spec:
podSpec:
properties:
persistence:
description: Note, that this field is used by MongoDB resources
only, let's keep it here for simplicity
properties:
multiple:
properties:
Expand Down Expand Up @@ -1611,6 +1660,8 @@ spec:
type: array
configServerCount:
type: integer
featureCompatibilityVersion:
type: string
lastTransition:
type: string
link:
Expand All @@ -1628,6 +1679,18 @@ spec:
type: integer
phase:
type: string
pvc:
items:
properties:
phase:
type: string
statefulsetName:
type: string
required:
- phase
- statefulsetName
type: object
type: array
resourcesNotReady:
items:
description: ResourceNotReady describes the dependent resource
Expand Down Expand Up @@ -1657,6 +1720,24 @@ spec:
type: array
shardCount:
type: integer
sizeStatusInClusters:
description: MongodbShardedSizeStatusInClusters describes the
number and sizes of replica sets members deployed across member
clusters
properties:
configServerMongodsInClusters:
additionalProperties:
type: integer
type: object
mongosCountInClusters:
additionalProperties:
type: integer
type: object
shardMongodsInClusters:
additionalProperties:
type: integer
type: object
type: object
version:
type: string
warnings:
Expand Down Expand Up @@ -1687,6 +1768,18 @@ spec:
type: integer
phase:
type: string
pvc:
items:
properties:
phase:
type: string
statefulsetName:
type: string
required:
- phase
- statefulsetName
type: object
type: array
resourcesNotReady:
items:
description: ResourceNotReady describes the dependent resource
Expand Down Expand Up @@ -1743,6 +1836,18 @@ spec:
type: integer
phase:
type: string
pvc:
items:
properties:
phase:
type: string
statefulsetName:
type: string
required:
- phase
- statefulsetName
type: object
type: array
replicas:
type: integer
resourcesNotReady:
Expand Down
14 changes: 13 additions & 1 deletion charts/enterprise-operator/templates/operator-roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,19 @@ rules:
- list
- watch
{{- end}}

{{ if .Values.operator.enablePVCResize }}
- apiGroups:
- ''
resources:
- persistentvolumeclaims
verbs:
- get
- delete
- list
- watch
- patch
- update
{{- end}}
{{- range $idx, $namespace := $watchNamespace }}

{{- $namespaceBlock := "" }}
Expand Down
4 changes: 4 additions & 0 deletions charts/enterprise-operator/templates/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ spec:
- name: MONGODB_REPO_URL
value: {{ .Values.mongodb.repo }}
- name: MDB_IMAGE_TYPE
{{- if eq .Values.operator.mdbDefaultArchitecture "static" }}
value: "ubi9"
{{- else }}
value: {{ .Values.mongodb.imageType }}
{{- end }}
{{- if eq .Values.mongodb.appdbAssumeOldFormat true }}
- name: MDB_APPDB_ASSUME_OLD_FORMAT
value: 'true'
Expand Down
Loading

0 comments on commit 625a5cc

Please sign in to comment.