Skip to content

Commit ccba2b9

Browse files
committed
Release MCK 1.4.0
1 parent 5db118d commit ccba2b9

File tree

19 files changed

+768
-65
lines changed

19 files changed

+768
-65
lines changed

config/manager/manager.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
serviceAccountName: mongodb-kubernetes-operator
2323
containers:
2424
- name: mongodb-kubernetes-operator
25-
image: "quay.io/mongodb/mongodb-kubernetes:1.3.0"
25+
image: "quay.io/mongodb/mongodb-kubernetes:1.4.0"
2626
imagePullPolicy: Always
2727
args:
2828
- -watch-resource=mongodb
@@ -69,21 +69,21 @@ spec:
6969
- name: INIT_DATABASE_IMAGE_REPOSITORY
7070
value: quay.io/mongodb/mongodb-kubernetes-init-database
7171
- name: INIT_DATABASE_VERSION
72-
value: 1.3.0
72+
value: 1.4.0
7373
- name: DATABASE_VERSION
74-
value: 1.3.0
74+
value: 1.4.0
7575
# Ops Manager
7676
- name: OPS_MANAGER_IMAGE_REPOSITORY
7777
value: quay.io/mongodb/mongodb-enterprise-ops-manager-ubi
7878
- name: INIT_OPS_MANAGER_IMAGE_REPOSITORY
7979
value: quay.io/mongodb/mongodb-kubernetes-init-ops-manager
8080
- name: INIT_OPS_MANAGER_VERSION
81-
value: 1.3.0
81+
value: 1.4.0
8282
# AppDB
8383
- name: INIT_APPDB_IMAGE_REPOSITORY
8484
value: quay.io/mongodb/mongodb-kubernetes-init-appdb
8585
- name: INIT_APPDB_VERSION
86-
value: 1.3.0
86+
value: 1.4.0
8787
- name: OPS_MANAGER_IMAGE_PULL_POLICY
8888
value: Always
8989
- name: AGENT_IMAGE
@@ -122,14 +122,14 @@ spec:
122122
- name: MDB_COMMUNITY_IMAGE_TYPE
123123
value: "ubi8"
124124
# Community Env Vars End
125-
- name: RELATED_IMAGE_MONGODB_ENTERPRISE_DATABASE_IMAGE_1_3_0
126-
value: "quay.io/mongodb/mongodb-kubernetes-database:1.3.0"
127-
- name: RELATED_IMAGE_INIT_DATABASE_IMAGE_REPOSITORY_1_3_0
128-
value: "quay.io/mongodb/mongodb-kubernetes-init-database:1.3.0"
129-
- name: RELATED_IMAGE_INIT_OPS_MANAGER_IMAGE_REPOSITORY_1_3_0
130-
value: "quay.io/mongodb/mongodb-kubernetes-init-ops-manager:1.3.0"
131-
- name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_3_0
132-
value: "quay.io/mongodb/mongodb-kubernetes-init-appdb:1.3.0"
125+
- name: RELATED_IMAGE_MONGODB_ENTERPRISE_DATABASE_IMAGE_1_4_0
126+
value: "quay.io/mongodb/mongodb-kubernetes-database:1.4.0"
127+
- name: RELATED_IMAGE_INIT_DATABASE_IMAGE_REPOSITORY_1_4_0
128+
value: "quay.io/mongodb/mongodb-kubernetes-init-database:1.4.0"
129+
- name: RELATED_IMAGE_INIT_OPS_MANAGER_IMAGE_REPOSITORY_1_4_0
130+
value: "quay.io/mongodb/mongodb-kubernetes-init-ops-manager:1.4.0"
131+
- name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_4_0
132+
value: "quay.io/mongodb/mongodb-kubernetes-init-appdb:1.4.0"
133133
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_12_8669_1
134134
value: "quay.io/mongodb/mongodb-agent:107.0.12.8669-1"
135135
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_13_8702_1
@@ -303,11 +303,11 @@ spec:
303303
value: "quay.io/mongodb/mongodb-enterprise-server:8.0.0-ubi8"
304304
- name: RELATED_IMAGE_MONGODB_IMAGE_8_0_0_ubi9
305305
value: "quay.io/mongodb/mongodb-enterprise-server:8.0.0-ubi9"
306-
- name: RELATED_IMAGE_MDB_SEARCH_IMAGE_0_53_0
307-
value: "quay.io/mongodb/mongodb-search:0.53.0"
306+
- name: RELATED_IMAGE_MDB_SEARCH_IMAGE_0_53_1
307+
value: "quay.io/mongodb/mongodb-search:0.53.1"
308308
- name: MDB_SEARCH_REPO_URL
309309
value: "quay.io/mongodb"
310310
- name: MDB_SEARCH_NAME
311311
value: "mongodb-search"
312312
- name: MDB_SEARCH_VERSION
313-
value: "0.53.0"
313+
value: "0.53.1"

config/manifests/bases/mongodb-kubernetes.clusterserviceversion.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
capabilities: Deep Insights
77
categories: Database
88
certified: "true"
9-
containerImage: quay.io/mongodb/mongodb-kubernetes:1.3.0
9+
containerImage: quay.io/mongodb/mongodb-kubernetes:1.4.0
1010
createdAt: ""
1111
description: The MongoDB Controllers for Kubernetes enable easy deploys of
1212
MongoDB into Kubernetes clusters, using our management, monitoring and
@@ -456,5 +456,5 @@ spec:
456456
maturity: stable
457457
provider:
458458
name: MongoDB, Inc
459-
replaces: mongodb-kubernetes.v1.2.0
459+
replaces: mongodb-kubernetes.v1.3.0
460460
version: 0.0.0

helm_chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: |
44
MongoDB Controllers for Kubernetes translate the human knowledge of
55
creating a MongoDB instance into a scalable, repeatable, and standardized
66
method.
7-
version: 1.3.0
7+
version: 1.4.0
88
kubeVersion: '>=1.16-0'
99
type: application
1010
keywords:

helm_chart/values-openshift.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ operator:
2727
# Environment variables prefixed with RELATED_IMAGE_ are used by operator-sdk to generate relatedImages section
2828
# with sha256 digests pinning for the certified operator bundle with disconnected environment feature enabled.
2929
# https://docs.openshift.com/container-platform/4.14/operators/operator_sdk/osdk-generating-csvs.html#olm-enabling-operator-for-restricted-network_osdk-generating-csvs
30-
version: 1.3.0
30+
version: 1.4.0
3131
relatedImages:
3232
opsManager:
3333
- 6.0.26

helm_chart/values.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ operator:
2222
deployment_name: mongodb-kubernetes-operator
2323

2424
# Version of mongodb-kubernetes-operator
25-
version: 1.3.0
25+
version: 1.4.0
2626

2727
# The Custom Resources that will be watched by the Operator. Needs to be changed if only some of the CRDs are installed
2828
watchedResources:
@@ -123,24 +123,24 @@ operator:
123123
## Database
124124
database:
125125
name: mongodb-kubernetes-database
126-
version: 1.3.0
126+
version: 1.4.0
127127

128128
initDatabase:
129129
name: mongodb-kubernetes-init-database
130-
version: 1.3.0
130+
version: 1.4.0
131131

132132
## Ops Manager
133133
opsManager:
134134
name: mongodb-enterprise-ops-manager-ubi
135135

136136
initOpsManager:
137137
name: mongodb-kubernetes-init-ops-manager
138-
version: 1.3.0
138+
version: 1.4.0
139139

140140
## Application Database
141141
initAppDb:
142142
name: mongodb-kubernetes-init-appdb
143-
version: 1.3.0
143+
version: 1.4.0
144144

145145
agent:
146146
name: mongodb-agent
@@ -222,4 +222,4 @@ search:
222222
repo: quay.io/mongodb
223223
name: mongodb-search
224224
# default MongoDB Search version used; can be overridden by setting MongoDBSearch.spec.version field.
225-
version: 0.53.0
225+
version: 0.53.1
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi9/ubi-minimal
5+
6+
ARG version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="support@mongodb.com"
15+
16+
# Replace libcurl-minimal and curl-minimal with the full versions
17+
# https://bugzilla.redhat.com/show_bug.cgi?id=1994521
18+
RUN microdnf install -y libssh libpsl libbrotli \
19+
&& microdnf download curl libcurl \
20+
&& rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \
21+
&& microdnf remove -y libcurl-minimal curl-minimal
22+
23+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
24+
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/
25+
RUN microdnf install -y --disableplugin=subscription-manager \
26+
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs
27+
# Dependencies for the Agent
28+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
29+
net-snmp \
30+
net-snmp-agent-libs
31+
RUN microdnf install -y --disableplugin=subscription-manager \
32+
hostname tar gzip procps jq \
33+
&& microdnf upgrade -y \
34+
&& rm -rf /var/lib/apt/lists/*
35+
36+
RUN mkdir -p /agent \
37+
&& mkdir -p /var/lib/mongodb-mms-automation \
38+
&& mkdir -p /var/log/mongodb-mms-automation/ \
39+
&& chmod -R +wr /var/log/mongodb-mms-automation/ \
40+
# ensure that the agent user can write the logs in OpenShift
41+
&& touch /var/log/mongodb-mms-automation/readiness.log \
42+
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log
43+
44+
45+
COPY --from=base /data/mongodb-agent.tar.gz /agent
46+
COPY --from=base /data/mongodb-tools.tgz /agent
47+
COPY --from=base /data/LICENSE /licenses/LICENSE
48+
49+
RUN tar xfz /agent/mongodb-agent.tar.gz \
50+
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \
51+
&& chmod +x /agent/mongodb-agent \
52+
&& mkdir -p /var/lib/automation/config \
53+
&& chmod -R +r /var/lib/automation/config \
54+
&& rm /agent/mongodb-agent.tar.gz \
55+
&& rm -r mongodb-mms-automation-agent-*
56+
57+
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz
58+
59+
USER 2000
60+
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"]
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi9/ubi-minimal
5+
6+
ARG version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="support@mongodb.com"
15+
16+
# Replace libcurl-minimal and curl-minimal with the full versions
17+
# https://bugzilla.redhat.com/show_bug.cgi?id=1994521
18+
RUN microdnf install -y libssh libpsl libbrotli \
19+
&& microdnf download curl libcurl \
20+
&& rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \
21+
&& microdnf remove -y libcurl-minimal curl-minimal
22+
23+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
24+
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/
25+
RUN microdnf install -y --disableplugin=subscription-manager \
26+
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs
27+
# Dependencies for the Agent
28+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
29+
net-snmp \
30+
net-snmp-agent-libs
31+
RUN microdnf install -y --disableplugin=subscription-manager \
32+
hostname tar gzip procps jq \
33+
&& microdnf upgrade -y \
34+
&& rm -rf /var/lib/apt/lists/*
35+
36+
RUN mkdir -p /agent \
37+
&& mkdir -p /var/lib/mongodb-mms-automation \
38+
&& mkdir -p /var/log/mongodb-mms-automation/ \
39+
&& chmod -R +wr /var/log/mongodb-mms-automation/ \
40+
# ensure that the agent user can write the logs in OpenShift
41+
&& touch /var/log/mongodb-mms-automation/readiness.log \
42+
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log
43+
44+
COPY --from=base /data/mongodb-agent.tar.gz /agent
45+
COPY --from=base /data/mongodb-tools.tgz /agent
46+
COPY --from=base /data/LICENSE /licenses/LICENSE
47+
48+
# Copy scripts to a safe location that won't be overwritten by volume mount
49+
COPY --from=base /opt/scripts/agent-launcher-shim.sh /usr/local/bin/agent-launcher-shim.sh
50+
COPY --from=base /opt/scripts/setup-agent-files.sh /usr/local/bin/setup-agent-files.sh
51+
COPY --from=base /opt/scripts/dummy-probe.sh /usr/local/bin/dummy-probe.sh
52+
COPY --from=base /opt/scripts/dummy-readinessprobe.sh /usr/local/bin/dummy-readinessprobe
53+
54+
RUN tar xfz /agent/mongodb-agent.tar.gz \
55+
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \
56+
&& chmod +x /agent/mongodb-agent \
57+
&& mkdir -p /var/lib/automation/config \
58+
&& chmod -R +r /var/lib/automation/config \
59+
&& rm /agent/mongodb-agent.tar.gz \
60+
&& rm -r mongodb-mms-automation-agent-*
61+
62+
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz
63+
64+
USER 2000
65+
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"]
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi9/ubi-minimal
5+
6+
ARG version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="support@mongodb.com"
15+
16+
# Replace libcurl-minimal and curl-minimal with the full versions
17+
# https://bugzilla.redhat.com/show_bug.cgi?id=1994521
18+
RUN microdnf install -y libssh libpsl libbrotli \
19+
&& microdnf download curl libcurl \
20+
&& rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \
21+
&& microdnf remove -y libcurl-minimal curl-minimal
22+
23+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
24+
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/
25+
RUN microdnf install -y --disableplugin=subscription-manager \
26+
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs
27+
# Dependencies for the Agent
28+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
29+
net-snmp \
30+
net-snmp-agent-libs
31+
RUN microdnf install -y --disableplugin=subscription-manager \
32+
hostname tar gzip procps jq \
33+
&& microdnf upgrade -y \
34+
&& rm -rf /var/lib/apt/lists/*
35+
36+
RUN mkdir -p /agent \
37+
&& mkdir -p /var/lib/mongodb-mms-automation \
38+
&& mkdir -p /var/log/mongodb-mms-automation/ \
39+
&& chmod -R +wr /var/log/mongodb-mms-automation/ \
40+
# ensure that the agent user can write the logs in OpenShift
41+
&& touch /var/log/mongodb-mms-automation/readiness.log \
42+
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log
43+
44+
COPY --from=base /data/mongodb-agent.tar.gz /agent
45+
COPY --from=base /data/mongodb-tools.tgz /agent
46+
COPY --from=base /data/LICENSE /licenses/LICENSE
47+
48+
# Copy scripts to a safe location that won't be overwritten by volume mount
49+
COPY --from=base /opt/scripts/agent-launcher-shim.sh /usr/local/bin/agent-launcher-shim.sh
50+
COPY --from=base /opt/scripts/setup-agent-files.sh /usr/local/bin/setup-agent-files.sh
51+
COPY --from=base /opt/scripts/dummy-probe.sh /usr/local/bin/dummy-probe.sh
52+
COPY --from=base /opt/scripts/dummy-readinessprobe.sh /usr/local/bin/dummy-readinessprobe
53+
54+
RUN tar xfz /agent/mongodb-agent.tar.gz \
55+
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \
56+
&& chmod +x /agent/mongodb-agent \
57+
&& mkdir -p /var/lib/automation/config \
58+
&& chmod -R +r /var/lib/automation/config \
59+
&& rm /agent/mongodb-agent.tar.gz \
60+
&& rm -r mongodb-mms-automation-agent-*
61+
62+
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz
63+
64+
USER 2000
65+
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"]

0 commit comments

Comments
 (0)