Skip to content

Commit b5daaec

Browse files
Kubernetes Enterprise Operator Release 1.27.0 (#295)
1 parent 6f662db commit b5daaec

File tree

60 files changed

+3070
-308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+3070
-308
lines changed

.evergreen.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ functions:
2222
params:
2323
script: |
2424
set -Eeu pipefail
25-
2625
curl -fL "${goreleaser_pro_tar_gz}" --output goreleaser_Linux_x86_64.tar.gz
2726
tar -xf goreleaser_Linux_x86_64.tar.gz
2827
chmod 755 ./goreleaser
@@ -35,7 +34,7 @@ functions:
3534
- notary_service_url
3635
script: |
3736
set -Eeu pipefail
38-
37+
3938
curl "${notary_service_url}" --output macos-notary.zip
4039
unzip -u macos-notary.zip
4140
chmod 755 ./linux_amd64/macnotary
@@ -79,10 +78,10 @@ tasks:
7978
- func: "release"
8079

8180
buildvariants:
82-
# This variant is run when a new tag is out similar to github actions.
83-
- name: release_mcli
84-
display_name: Release Go multi-cluster binary
85-
run_on:
86-
- ubuntu2204-small
87-
tasks:
88-
- name: package_goreleaser
81+
# This variant is run when a new tag is out similar to github actions.
82+
- name: release_mcli
83+
display_name: Release Go multi-cluster binary
84+
run_on:
85+
- ubuntu2204-small
86+
tasks:
87+
- name: package_goreleaser

crds.yaml

Lines changed: 1079 additions & 7 deletions
Large diffs are not rendered by default.

dockerfiles/mongodb-agent/107.0.1.8507-1_1.26.0/ubi/Dockerfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,20 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
3737
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
3838
COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz
3939

40-
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \
41-
&& rm /tools/mongodb_tools.tgz
42-
40+
RUN tar xfz /tools/mongodb_tools.tgz
41+
RUN mv mongodb-database-tools-*/bin/* /tools
42+
RUN chmod +x /tools/*
43+
RUN rm /tools/mongodb_tools.tgz
44+
RUN rm -rf /mongodb-database-tools-*
4345

4446
RUN tar xfz /agent/mongodb_agent.tgz
45-
RUN ls /agent
4647
RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent
47-
RUN ls /agent
4848
RUN chmod +x /agent/mongodb-agent
49+
RUN rm /agent/mongodb_agent.tgz
50+
RUN rm -rf mongodb-mms-automation-agent-*
51+
4952
RUN mkdir -p /var/lib/automation/config
50-
RUN ls /var/lib/automation/config
5153
RUN chmod -R +r /var/lib/automation/config
52-
RUN ls /var/lib/automation/config
53-
RUN rm /agent/mongodb_agent.tgz
54-
RUN rm -r mongodb-mms-automation-agent-*
5554

5655
USER 2000
5756

dockerfiles/mongodb-agent/107.0.2.8531-1_1.26.0/ubi/Dockerfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,20 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
3737
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
3838
COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz
3939

40-
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \
41-
&& rm /tools/mongodb_tools.tgz
42-
40+
RUN tar xfz /tools/mongodb_tools.tgz
41+
RUN mv mongodb-database-tools-*/bin/* /tools
42+
RUN chmod +x /tools/*
43+
RUN rm /tools/mongodb_tools.tgz
44+
RUN rm -rf /mongodb-database-tools-*
4345

4446
RUN tar xfz /agent/mongodb_agent.tgz
45-
RUN ls /agent
4647
RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent
47-
RUN ls /agent
4848
RUN chmod +x /agent/mongodb-agent
49+
RUN rm /agent/mongodb_agent.tgz
50+
RUN rm -rf mongodb-mms-automation-agent-*
51+
4952
RUN mkdir -p /var/lib/automation/config
50-
RUN ls /var/lib/automation/config
5153
RUN chmod -R +r /var/lib/automation/config
52-
RUN ls /var/lib/automation/config
53-
RUN rm /agent/mongodb_agent.tgz
54-
RUN rm -r mongodb-mms-automation-agent-*
5554

5655
USER 2000
5756

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${agent_version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="support@mongodb.com"
15+
16+
COPY --from=base /data/probe.sh /opt/scripts/probe.sh
17+
COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe
18+
COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook
19+
COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh
20+
COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh
21+
COPY --from=base /data/LICENSE /LICENSE
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 --setopt=install_weak_deps=0 \
26+
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl 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 curl \
32+
hostname tar gzip procps jq \
33+
&& microdnf upgrade -y \
34+
&& rm -rf /var/lib/apt/lists/*
35+
36+
37+
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
38+
COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz
39+
40+
RUN tar xfz /tools/mongodb_tools.tgz
41+
RUN mv mongodb-database-tools-*/bin/* /tools
42+
RUN chmod +x /tools/*
43+
RUN rm /tools/mongodb_tools.tgz
44+
RUN rm -rf /mongodb-database-tools-*
45+
46+
RUN tar xfz /agent/mongodb_agent.tgz
47+
RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent
48+
RUN chmod +x /agent/mongodb-agent
49+
RUN rm /agent/mongodb_agent.tgz
50+
RUN rm -rf mongodb-mms-automation-agent-*
51+
52+
RUN mkdir -p /var/lib/automation/config
53+
RUN chmod -R +r /var/lib/automation/config
54+
55+
USER 2000
56+
57+
HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${agent_version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="support@mongodb.com"
15+
16+
COPY --from=base /data/probe.sh /opt/scripts/probe.sh
17+
COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe
18+
COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook
19+
COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh
20+
COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh
21+
COPY --from=base /data/LICENSE /LICENSE
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 --setopt=install_weak_deps=0 \
26+
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl 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 curl \
32+
hostname tar gzip procps jq \
33+
&& microdnf upgrade -y \
34+
&& rm -rf /var/lib/apt/lists/*
35+
36+
37+
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
38+
COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz
39+
40+
RUN tar xfz /tools/mongodb_tools.tgz
41+
RUN mv mongodb-database-tools-*/bin/* /tools
42+
RUN chmod +x /tools/*
43+
RUN rm /tools/mongodb_tools.tgz
44+
RUN rm -rf /mongodb-database-tools-*
45+
46+
RUN tar xfz /agent/mongodb_agent.tgz
47+
RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent
48+
RUN chmod +x /agent/mongodb-agent
49+
RUN rm /agent/mongodb_agent.tgz
50+
RUN rm -rf mongodb-mms-automation-agent-*
51+
52+
RUN mkdir -p /var/lib/automation/config
53+
RUN chmod -R +r /var/lib/automation/config
54+
55+
USER 2000
56+
57+
HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${agent_version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="support@mongodb.com"
15+
16+
COPY --from=base /data/probe.sh /opt/scripts/probe.sh
17+
COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe
18+
COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook
19+
COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh
20+
COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh
21+
COPY --from=base /data/LICENSE /LICENSE
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 --setopt=install_weak_deps=0 \
26+
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl 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 curl \
32+
hostname tar gzip procps jq \
33+
&& microdnf upgrade -y \
34+
&& rm -rf /var/lib/apt/lists/*
35+
36+
37+
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
38+
COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz
39+
40+
RUN tar xfz /tools/mongodb_tools.tgz
41+
RUN mv mongodb-database-tools-*/bin/* /tools
42+
RUN chmod +x /tools/*
43+
RUN rm /tools/mongodb_tools.tgz
44+
RUN rm -rf /mongodb-database-tools-*
45+
46+
RUN tar xfz /agent/mongodb_agent.tgz
47+
RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent
48+
RUN chmod +x /agent/mongodb-agent
49+
RUN rm /agent/mongodb_agent.tgz
50+
RUN rm -rf mongodb-mms-automation-agent-*
51+
52+
RUN mkdir -p /var/lib/automation/config
53+
RUN chmod -R +r /var/lib/automation/config
54+
55+
USER 2000
56+
57+
HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${agent_version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="support@mongodb.com"
15+
16+
COPY --from=base /data/probe.sh /opt/scripts/probe.sh
17+
COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe
18+
COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook
19+
COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh
20+
COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh
21+
COPY --from=base /data/LICENSE /LICENSE
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 --setopt=install_weak_deps=0 \
26+
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl 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 curl \
32+
hostname tar gzip procps jq \
33+
&& microdnf upgrade -y \
34+
&& rm -rf /var/lib/apt/lists/*
35+
36+
37+
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
38+
COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz
39+
40+
RUN tar xfz /tools/mongodb_tools.tgz
41+
RUN mv mongodb-database-tools-*/bin/* /tools
42+
RUN chmod +x /tools/*
43+
RUN rm /tools/mongodb_tools.tgz
44+
RUN rm -rf /mongodb-database-tools-*
45+
46+
RUN tar xfz /agent/mongodb_agent.tgz
47+
RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent
48+
RUN chmod +x /agent/mongodb-agent
49+
RUN rm /agent/mongodb_agent.tgz
50+
RUN rm -rf mongodb-mms-automation-agent-*
51+
52+
RUN mkdir -p /var/lib/automation/config
53+
RUN chmod -R +r /var/lib/automation/config
54+
55+
USER 2000
56+
57+
HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${agent_version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="support@mongodb.com"
15+
16+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
17+
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/
18+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
19+
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl openldap openssl xz-libs
20+
# Dependencies for the Agent
21+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
22+
net-snmp \
23+
net-snmp-agent-libs
24+
RUN microdnf install -y --disableplugin=subscription-manager curl \
25+
hostname tar gzip procps jq \
26+
&& microdnf upgrade -y \
27+
&& rm -rf /var/lib/apt/lists/*
28+
29+
RUN mkdir -p /agent \
30+
&& mkdir -p /var/lib/mongodb-mms-automation \
31+
&& mkdir -p /var/log/mongodb-mms-automation/ \
32+
&& chmod -R +wr /var/log/mongodb-mms-automation/ \
33+
# ensure that the agent user can write the logs in OpenShift
34+
&& touch /var/log/mongodb-mms-automation/readiness.log \
35+
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log
36+
37+
38+
COPY --from=base /data/mongodb-agent.tar.gz /agent
39+
COPY --from=base /data/mongodb-tools.tgz /agent
40+
COPY --from=base /data/LICENSE /licenses/LICENSE
41+
42+
RUN tar xfz /agent/mongodb-agent.tar.gz \
43+
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \
44+
&& chmod +x /agent/mongodb-agent \
45+
&& mkdir -p /var/lib/automation/config \
46+
&& chmod -R +r /var/lib/automation/config \
47+
&& rm /agent/mongodb-agent.tar.gz \
48+
&& rm -r mongodb-mms-automation-agent-*
49+
50+
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz
51+
52+
USER 2000
53+
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"]

0 commit comments

Comments
 (0)