Skip to content

Commit e9cc668

Browse files
committed
added 1.9 version
1 parent 8f12df1 commit e9cc668

File tree

11 files changed

+129
-68
lines changed

11 files changed

+129
-68
lines changed

charts/ent-operator-database/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: mongodb-enterprise-database
33
description: MongoDB Kubernetes Enterprise Operator- MongoDB DataBase charts
4-
version: 0.1.4
4+
version: 0.2.0
55
kubeVersion: '>=1.15-0'
66
keywords:
77
- mongodb
@@ -14,6 +14,6 @@ maintainers:
1414
1515
dependencies:
1616
- name: mongodb-enterprise-operator
17-
version: "0.1.*"
17+
version: "0.2.*"
1818
repository: "https://mongodb.github.io/helm-charts"
1919
condition: mongodb-enterprise-operator.enabled

charts/ent-operator-database/templates/database.yaml

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ spec:
1111

1212
# Using a version >= 4.0 will enable SCRAM-SHA-256 authentication
1313
# setting a version < 4.0 will enable SCRAM-SHA-1/MONGODB-CR authentication
14-
version: 4.0.4-ent
14+
version: {{ .Values.version }}
15+
persistent : true
16+
backup:
17+
enabled: {{ .Values.backup }}
1518

1619
opsManager:
1720
configMapRef:
@@ -36,7 +39,7 @@ spec:
3639
{{- if .Values.security.tls.enabled }}
3740
tls:
3841
enabled: {{ .Values.security.tls.enabled }}
39-
ca: {{ .Values.security.tls.ca }}
42+
ca: {{ .Values.security.tls.caRef }}
4043
{{- end }}
4144

4245
# Optional field - ignoreUnknownUsers
@@ -45,21 +48,26 @@ spec:
4548

4649
# If you need to manage MongoDB users directly via the mongods, set this value to true
4750
ignoreUnknownUsers: false # default value false
48-
podTemplate:
49-
spec:
50-
terminationGracePeriodSeconds: 10
51-
topologySpreadConstraints:
52-
- maxSkew: 1
53-
topologyKey: zone
54-
whenUnsatisfiable: DoNotSchedule
55-
labelSelector:
56-
matchLabels:
57-
foo: bar
58-
# This container will be added to each pod as a sidecar
59-
containers:
60-
resources:
61-
{{- toYaml .Values.resources | nindent 10 }}
62-
{{- with .Values.tolerations }}
63-
tolerations:
64-
{{- toYaml . | nindent 8 }}
65-
{{- end }}
51+
podSpec:
52+
podTemplate:
53+
spec:
54+
terminationGracePeriodSeconds: 10
55+
topologySpreadConstraints:
56+
- maxSkew: 1
57+
topologyKey: zone
58+
whenUnsatisfiable: DoNotSchedule
59+
labelSelector:
60+
matchLabels:
61+
foo: bar
62+
# This container will be added to each pod as a sidecar
63+
containers:
64+
- name: mongodb-enterprise-database
65+
resources:
66+
{{- toYaml .Values.resources | nindent 14 }}
67+
{{- with .Values.tolerations }}
68+
tolerations:
69+
{{- toYaml . | nindent 10 }}
70+
{{- end }}
71+
72+
persistence:
73+
{{- toYaml .Values.persistence | nindent 6 }}

charts/ent-operator-database/values.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ deployValidationWebhooks: true
1515

1616
name: mdbreplset
1717
type: ReplicaSet
18+
version: 4.4.1-ent
1819
members: 3
20+
backup: false
21+
1922
opsManager:
2023
# Ops Manager connection could be configured with Values and This HELM chart will create
2124
# nesessary Secret and Config Map.
@@ -44,6 +47,27 @@ resources:
4447
memory: 1G
4548
tolerations: []
4649

50+
agent:
51+
startupOptions:
52+
maxLogFiles: "30"
53+
dialTimeoutSeconds: "40"
54+
55+
persistence:
56+
single:
57+
storage: 10Gi
58+
# storageClass: standard
59+
# multiple:
60+
# data:
61+
# storage: 10Gi
62+
# journal:
63+
# storage: 1Gi
64+
# labelSelector:
65+
# matchLabels:
66+
# app: "my-app"
67+
# logs:
68+
# storage: 500M
69+
# storageClass: standard
70+
4771
clusterName: cluster.local
4872

4973
registry:

charts/ent-operator-opsmanager/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: mongodb-enterprise-opsmanager
33
description: MongoDB Kubernetes Enterprise Operator - Ops Manager Chart
4-
version: 0.1.2
4+
version: 0.2.0
55
kubeVersion: '>=1.15-0'
66
keywords:
77
- opsManager
@@ -15,6 +15,6 @@ maintainers:
1515
1616
dependencies:
1717
- name: mongodb-enterprise-operator
18-
version: "0.1.*"
18+
version: "0.2.*"
1919
repository: "https://mongodb.github.io/helm-charts"
2020
condition: mongodb-enterprise-operator.enabled

charts/ent-operator-opsmanager/crds/mongodb.mongodb.com.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ spec:
9999
startupOptions:
100100
type: object
101101

102+
backup:
103+
type: object
104+
properties:
105+
mode:
106+
type: string
107+
enum: ["enabled", "disabled", "terminated"]
102108
# Generic PodSpec configuration
103109
podSpec:
104110
type: object

charts/ent-operator-opsmanager/templates/ops-manager.yaml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,11 @@ spec:
1616

1717
# For the full list of options see https://docs.opsmanager.mongodb.com/current/reference/configuration/index.html
1818
configuration:
19-
# passing mms.ignoreInitialUiSetup=true allows to avoid the setup wizard in Ops Manager. Note, that
20-
# this requires to set some mandatory configuration properties, see
21-
# https://docs.opsmanager.mongodb.com/current/reference/configuration/index.html#mms.ignoreInitialUiSetup
22-
mms.ignoreInitialUiSetup: "true"
23-
automation.versions.source: {{ .Values.versionSource | quote }}
24-
mms.adminEmailAddr: {{ .Values.mail.adminEmailAddr | quote }}
25-
mms.fromEmailAddr: {{ .Values.mail.adminEmailAddr | quote }}
26-
mms.replyToEmailAddr: {{ .Values.mail.adminEmailAddr | quote }}
27-
mms.mail.hostname: {{ .Values.mail.hostname | quote }}
28-
mms.mail.port: {{ .Values.mail.port | quote }}
29-
mms.mail.ssl: {{ .Values.mail.ssl | quote }}
30-
mms.mail.transport: {{ .Values.mail.transport | quote }}
31-
mms.minimumTLSVersion: {{ .Values.minimumTLSVersion | quote }}
32-
mms.publicApi.whitelistEnabled: {{ .Values.publicApi.whitelistEnabled | quote }}
19+
{{- toYaml .Values.configuration | nindent 4 }}
3320

3421
statefulSet:
3522
spec:
36-
{{- if eq .Values.versionSource "local" }}
23+
{{- if eq .Values.configuration.automation.versions.source "local" }}
3724
# the Persistent Volume Claim will be created for each Ops Manager Pod
3825
volumeClaimTemplates:
3926
- metadata:

charts/ent-operator-opsmanager/values.yaml

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,33 @@ deployValidationWebhooks: true # Optional configuration.
3030
# Deploy Ops Manager backup daemon and set it up.
3131
# Note: OpLogs DB needs to be provisioned separately
3232
deployBackupInfrastructure: true
33-
34-
# for fully air-gapped environemnts choose "local"
35-
# to proxy mongodb installers download via Ops Manager choose "remote"
36-
versionSource: "mongodb" # [ mongodb| local| remote ]
3733
installerVolumeSize: "20G"
34+
# Ops Manager configuration option. For a complete list of options please visit
35+
# https://docs.opsmanager.mongodb.com/current/reference/configuration
36+
configuration:
37+
# for fully air-gapped environemnts choose "local"
38+
# to proxy mongodb installers download via Ops Manager choose "remote"
39+
automation:
40+
versions:
41+
source: "mongodb" # [ mongodb| local| remote ]
42+
mms:
43+
# passing mms.ignoreInitialUiSetup=true allows to avoid the setup wizard in Ops Manager. Note, that
44+
# this requires to set some mandatory configuration properties, see
45+
# https://docs.opsmanager.mongodb.com/current/reference/configuration/index.html#mms.ignoreInitialUiSetup
46+
ignoreInitialUiSetup: "true"
47+
48+
adminEmailAddr: "[email protected]"
49+
fromEmailAddr: "[email protected]"
50+
51+
replyToEmailAddr: "[email protected]"
52+
mail:
53+
hostname: email-smtp.us-east-1.amazonaws.com"
54+
port: "465"
55+
ssl: "true"
56+
transport: "smtp"
57+
minimumTLSVersion: "TLSv1.2"
58+
publicApi:
59+
whitelistEnabled: "false"
3860

3961
# Ops Manager Global Admin user name and password.
4062
# Ensure it complies with OpsManager password format
@@ -43,12 +65,6 @@ globalAdminPassword: "KubeTest!1"
4365
globalAdminFirstName: "First Name"
4466
globalAdminLastName: "Last Name"
4567

46-
# enable Access Lists for Ops Manager
47-
publicApi:
48-
whitelistEnabled: false
49-
50-
51-
minimumTLSVersion: "TLSv1.2"
5268

5369
# This section is not managed by HELM Chart for now. OpLog DB should be provisioned as a Mongo DB CRD
5470
backup:
@@ -69,12 +85,7 @@ backup:
6985
pathStyleAccessEnabled: true
7086

7187
# Required: SMTP Mail server set up for password recovery
72-
mail:
73-
adminEmailAddr: "[email protected]"
74-
hostname: "email-smtp.us-east-1.amazonaws.com"
75-
port: "465"
76-
ssl: "true"
77-
transport: "smtp"
88+
7889
resources:
7990
limits:
8091
cpu: 2

charts/ent-operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: mongodb-enterprise-operator
33
description: MongoDB Kubernetes Enterprise Operator deployment
4-
version: 0.1.7
4+
version: 0.2.0
55
kubeVersion: '>=1.15-0'
66
keywords:
77
- mongodb

charts/ent-operator/templates/operator-roles.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v1
33
kind: ServiceAccount
44
metadata:
5-
name: {{ .Release.Name }}-operator
5+
name: {{ .Release.Name }}
66
namespace: {{ .Release.Namespace }}
77
{{- if .Values.registry.imagePullSecrets}}
88
imagePullSecrets:
@@ -46,6 +46,14 @@ rules:
4646
- watch
4747
- delete
4848
- update
49+
- apiGroups:
50+
- ""
51+
resources:
52+
- pods
53+
verbs:
54+
- get
55+
- list
56+
- watch
4957
{{- if eq (.Values.watchNamespace | default "") "*" }}
5058
- apiGroups:
5159
- ""
@@ -83,7 +91,7 @@ roleRef:
8391
name: {{ .Values.name }}
8492
subjects:
8593
- kind: ServiceAccount
86-
name: {{ .Release.Name }}-operator
94+
name: {{ .Release.Name }}
8795
{{- if .Release.Namespace }}
8896
namespace: {{ .Release.Namespace }}
8997
{{- end }}
@@ -106,7 +114,7 @@ roleRef:
106114
name: {{ .Release.Name }}-{{ .Release.Namespace }}-webhook
107115
subjects:
108116
- kind: ServiceAccount
109-
name: {{ .Release.Name }}-operator
117+
name: {{ .Release.Name }}
110118
namespace: {{ .Release.Namespace }}
111119

112120
---
@@ -158,7 +166,7 @@ roleRef:
158166
name: {{ .Release.Name }}-{{ .Release.Namespace }}-certs
159167
subjects:
160168
- kind: ServiceAccount
161-
name: {{ .Release.Name }}-operator
169+
name: {{ .Release.Name }}
162170
namespace: {{ .Release.Namespace }}
163171

164172
{{- end }}

charts/ent-operator/templates/operator.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,27 @@
22
apiVersion: apps/v1
33
kind: Deployment
44
metadata:
5-
name: {{ .Release.Name }}-operator
5+
name: {{ .Release.Name }}
66
namespace: {{ .Release.Namespace }}
77
spec:
88
replicas: 1
99
selector:
1010
matchLabels:
11-
controller: {{ .Release.Name }}-operator
11+
app.kubernetes.io/component: controller
12+
app.kubernetes.io/name: {{ .Release.Name }}
13+
app.kubernetes.io/instance: {{ .Release.Name }}
1214
template:
1315
metadata:
1416
labels:
15-
controller: {{ .Release.Name }}-operator
17+
app.kubernetes.io/component: controller
18+
app.kubernetes.io/name: {{ .Release.Name }}
19+
app.kubernetes.io/instance: {{ .Release.Name }}
20+
annotations:
21+
# lets promethues know to scrape the operator pod and where to scrape them
22+
loadtest.io/scrape_port: "8080"
23+
loadtest.io/should_be_scraped: "true"
1624
spec:
17-
serviceAccountName: {{ .Release.Name }}-operator
25+
serviceAccountName: {{ .Release.Name }}
1826
{{- if not .Values.managedSecurityContext }}
1927
securityContext:
2028
runAsNonRoot: true
@@ -40,6 +48,8 @@ spec:
4048
command:
4149
- "/usr/local/bin/mongodb-enterprise-operator"
4250
{{- end }}
51+
resources:
52+
{{- toYaml .Values.resources | nindent 10 }}
4353
env:
4454
- name: OPERATOR_ENV
4555
value: {{ .Values.env }}

0 commit comments

Comments
 (0)