Skip to content

Commit 439da21

Browse files
committed
Merge branch 'master' into maciejk/ar-image-staging
2 parents 5225f6b + 1d28c2c commit 439da21

File tree

20 files changed

+424
-89
lines changed

20 files changed

+424
-89
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public/architectures/**/certs/*
4242
public/architectures/**/secrets/*
4343

4444
docker/mongodb-kubernetes-appdb/content/readinessprobe
45-
mongodb-kubernetes
4645
docker/mongodb-kubernetes-operator/content/mongodb-kubernetes-operator.tar
4746
docker/mongodb-kubernetes-tests/helm_chart/
4847
docker/mongodb-kubernetes-tests/public/

build_info.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,23 +287,23 @@
287287
"dockerfile-path": "docker/mongodb-enterprise-ops-manager/Dockerfile.atomic",
288288
"patch": {
289289
"version": "om-version-from-release.json",
290-
"repositories": ["268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb-enterprise-ops-manager"],
290+
"repositories": ["268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb-enterprise-ops-manager-ubi"],
291291
"platforms": [
292292
"linux/amd64"
293293
]
294294
},
295295
"staging": {
296296
"version": "om-version-from-release.json",
297297
"sign": true,
298-
"repositories": ["268558157000.dkr.ecr.us-east-1.amazonaws.com/staging/mongodb-enterprise-ops-manager"],
298+
"repositories": ["268558157000.dkr.ecr.us-east-1.amazonaws.com/staging/mongodb-enterprise-ops-manager-ubi"],
299299
"platforms": [
300300
"linux/amd64"
301301
]
302302
},
303303
"manual_release": {
304304
"sign": true,
305305
"olm-tag": true,
306-
"repositories": ["quay.io/mongodb/mongodb-enterprise-ops-manager"],
306+
"repositories": ["quay.io/mongodb/mongodb-enterprise-ops-manager-ubi"],
307307
"platforms": [
308308
"linux/amd64"
309309
]

config/manager/manager.yaml

Lines changed: 13 additions & 15 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.2.0"
25+
image: "quay.io/mongodb/mongodb-kubernetes:1.3.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.2.0
72+
value: 1.3.0
7373
- name: DATABASE_VERSION
74-
value: 1.2.0
74+
value: 1.3.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.2.0
81+
value: 1.3.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.2.0
86+
value: 1.3.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_2_0
126-
value: "quay.io/mongodb/mongodb-kubernetes-database:1.2.0"
127-
- name: RELATED_IMAGE_INIT_DATABASE_IMAGE_REPOSITORY_1_2_0
128-
value: "quay.io/mongodb/mongodb-kubernetes-init-database:1.2.0"
129-
- name: RELATED_IMAGE_INIT_OPS_MANAGER_IMAGE_REPOSITORY_1_2_0
130-
value: "quay.io/mongodb/mongodb-kubernetes-init-ops-manager:1.2.0"
131-
- name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_2_0
132-
value: "quay.io/mongodb/mongodb-kubernetes-init-appdb:1.2.0"
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"
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
@@ -295,8 +295,6 @@ spec:
295295
value: "quay.io/mongodb/mongodb-enterprise-server:8.0.0-ubi8"
296296
- name: RELATED_IMAGE_MONGODB_IMAGE_8_0_0_ubi9
297297
value: "quay.io/mongodb/mongodb-enterprise-server:8.0.0-ubi9"
298-
- name: RELATED_IMAGE_MDB_SEARCH_IMAGE_1_47_0
299-
value: "quay.io/mongodb/mongodb-search-community:1.47.0"
300298
- name: MDB_SEARCH_COMMUNITY_REPO_URL
301299
value: "quay.io/mongodb"
302300
- name: MDB_SEARCH_COMMUNITY_NAME

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.2.0
9+
containerImage: quay.io/mongodb/mongodb-kubernetes:1.3.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.1.0
459+
replaces: mongodb-kubernetes.v1.2.0
460460
version: 0.0.0

docker/mongodb-agent/setup-agent-files.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ SCRIPTS_DIR="/opt/scripts"
88
# readiness always returns failure
99
setup_dummy_probes() {
1010
echo "Setting up dummy probe scripts..."
11-
cp /usr/local/bin/dummy-probe.sh "$SCRIPTS_DIR/probe.sh"
12-
cp /usr/local/bin/dummy-readinessprobe "$SCRIPTS_DIR/readinessprobe"
11+
cp --remove-destination /usr/local/bin/dummy-probe.sh "$SCRIPTS_DIR/probe.sh"
12+
cp --remove-destination /usr/local/bin/dummy-readinessprobe "$SCRIPTS_DIR/readinessprobe"
1313
echo "Dummy probe scripts ready"
1414
}
1515

helm_chart/Chart.yaml

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

helm_chart/templates/operator.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,6 @@ spec:
262262
- name: RELATED_IMAGE_{{ $mongodbImageEnv }}_{{ $version | replace "." "_" | replace "-" "_" }}
263263
value: "{{ $.Values.mongodb.repo }}/{{ $.Values.mongodb.name }}:{{ $version }}"
264264
{{- end }}
265-
{{- if .Values.search }}
266-
- name: RELATED_IMAGE_MDB_SEARCH_IMAGE_{{ .Values.search.community.version | replace "." "_" | replace "-" "_" }}
267-
value: "{{ .Values.search.community.repo }}/{{ .Values.search.community.name }}:{{ $.Values.search.community.version }}"
268-
{{- end }}
269265
{{- end }}
270266
{{- if .Values.search }}
271267
- name: MDB_SEARCH_COMMUNITY_REPO_URL

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.2.0
30+
version: 1.3.0
3131
relatedImages:
3232
opsManager:
3333
- 6.0.26

helm_chart/values.yaml

Lines changed: 5 additions & 5 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.2.0
25+
version: 1.3.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.2.0
126+
version: 1.3.0
127127

128128
initDatabase:
129129
name: mongodb-kubernetes-init-database
130-
version: 1.2.0
130+
version: 1.3.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.2.0
138+
version: 1.3.0
139139

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

145145
agent:
146146
name: mongodb-agent
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
FROM scratch AS base
2+
3+
COPY ./docker/mongodb-kubernetes-database/LICENSE /data/licenses/mongodb-kubernetes-database
4+
5+
FROM registry.access.redhat.com/ubi8/ubi-minimal
6+
7+
ENV MMS_HOME=/mongodb-automation
8+
ENV MMS_LOG_DIR=/var/log/mongodb-mms-automation
9+
10+
RUN microdnf update -y && rm -rf /var/cache/yum
11+
12+
# these are the packages needed for the agent
13+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
14+
RUN microdnf install -y --disableplugin=subscription-manager \
15+
hostname \
16+
procps
17+
18+
# these are the packages needed for MongoDB
19+
# (https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ "RHEL/CentOS 8" tab)
20+
RUN microdnf install -y --disableplugin=subscription-manager \
21+
cyrus-sasl \
22+
cyrus-sasl-gssapi \
23+
cyrus-sasl-plain \
24+
krb5-libs \
25+
libcurl \
26+
lm_sensors-libs \
27+
net-snmp \
28+
net-snmp-agent-libs \
29+
openldap \
30+
openssl \
31+
jq \
32+
tar \
33+
xz-libs \
34+
findutils
35+
36+
RUN ln -s /usr/lib64/libsasl2.so.3 /usr/lib64/libsasl2.so.2
37+
38+
# Set the required perms
39+
RUN mkdir -p "${MMS_LOG_DIR}" \
40+
&& chmod 0775 "${MMS_LOG_DIR}" \
41+
&& mkdir -p /var/lib/mongodb-mms-automation \
42+
&& chmod 0775 /var/lib/mongodb-mms-automation \
43+
&& mkdir -p /data \
44+
&& chmod 0775 /data \
45+
&& mkdir -p /journal \
46+
&& chmod 0775 /journal \
47+
&& mkdir -p "${MMS_HOME}" \
48+
&& chmod -R 0775 "${MMS_HOME}"
49+
50+
ARG VERSION
51+
52+
LABEL name="MongoDB Kubernetes Database" \
53+
version="${VERSION}" \
54+
summary="MongoDB Kubernetes Database Image" \
55+
description="MongoDB Kubernetes Database Image" \
56+
vendor="MongoDB" \
57+
release="1" \
58+
maintainer="support@mongodb.com"
59+
60+
# USER needs to be set for this image to pass RedHat verification. Some customers have these requirements as well
61+
# It does not matter what number it is, as long as it is set to something.
62+
# However, OpenShift will run the container as a random user,
63+
# and the number in this configuration is not relevant.
64+
USER 2000
65+
66+
# The docker image doesn't have any scripts so by default does nothing
67+
# The script will be copied in runtime from init containers and the operator is expected
68+
# to override the COMMAND
69+
ENTRYPOINT ["sleep infinity"]
70+
71+
COPY --from=base /data/licenses/mongodb-kubernetes-database /licenses/mongodb-kubernetes-database

0 commit comments

Comments
 (0)