Skip to content

Commit 47fa091

Browse files
Kubernetes Enterprise Operator Release 1.20.1 (#254)
* Updated * Added missing dockerfiles and github workflow files * Removed invalid dockerfiles * Added 1.20.1 dockerfile --------- Co-authored-by: Łukasz Sierant <lukasz.sierant@mongodb.com>
1 parent 2f12615 commit 47fa091

File tree

36 files changed

+4065
-82
lines changed

36 files changed

+4065
-82
lines changed

.github/workflows/release-multicluster-cli.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Go
1515
uses: actions/setup-go@v3
1616
with:
17-
go-version: 1.19
17+
go-version: 1.20
1818
- name: Run GoReleaser
1919
uses: goreleaser/goreleaser-action@v4
2020
with:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea
2+
*.iml

crds.yaml

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ spec:
6161
x-kubernetes-preserve-unknown-fields: true
6262
agent:
6363
properties:
64+
logLevel:
65+
type: string
66+
maxLogFileDurationHours:
67+
type: integer
6468
startupOptions:
6569
additionalProperties:
6670
type: string
@@ -215,6 +219,10 @@ spec:
215219
x-kubernetes-preserve-unknown-fields: true
216220
agent:
217221
properties:
222+
logLevel:
223+
type: string
224+
maxLogFileDurationHours:
225+
type: integer
218226
startupOptions:
219227
additionalProperties:
220228
type: string
@@ -360,6 +368,10 @@ spec:
360368
x-kubernetes-preserve-unknown-fields: true
361369
agent:
362370
properties:
371+
logLevel:
372+
type: string
373+
maxLogFileDurationHours:
374+
type: integer
363375
startupOptions:
364376
additionalProperties:
365377
type: string
@@ -736,6 +748,10 @@ spec:
736748
x-kubernetes-preserve-unknown-fields: true
737749
agent:
738750
properties:
751+
logLevel:
752+
type: string
753+
maxLogFileDurationHours:
754+
type: integer
739755
startupOptions:
740756
additionalProperties:
741757
type: string
@@ -1008,6 +1024,10 @@ spec:
10081024
x-kubernetes-preserve-unknown-fields: true
10091025
agent:
10101026
properties:
1027+
logLevel:
1028+
type: string
1029+
maxLogFileDurationHours:
1030+
type: integer
10111031
startupOptions:
10121032
additionalProperties:
10131033
type: string
@@ -1947,6 +1967,10 @@ spec:
19471967
description: specify startup flags for the AutomationAgent and
19481968
MonitoringAgent
19491969
properties:
1970+
logLevel:
1971+
type: string
1972+
maxLogFileDurationHours:
1973+
type: integer
19501974
startupOptions:
19511975
additionalProperties:
19521976
type: string
@@ -2018,6 +2042,20 @@ spec:
20182042
- ERROR
20192043
- FATAL
20202044
type: string
2045+
memberConfig:
2046+
description: MemberConfig
2047+
items:
2048+
properties:
2049+
priority:
2050+
type: string
2051+
tags:
2052+
additionalProperties:
2053+
type: string
2054+
type: object
2055+
votes:
2056+
type: integer
2057+
type: object
2058+
type: array
20212059
members:
20222060
description: Amount of members for this MongoDB Replica Set
20232061
maximum: 50
@@ -2027,6 +2065,10 @@ spec:
20272065
description: specify startup flags for just the MonitoringAgent.
20282066
These take precedence over the flags set in AutomationAgent
20292067
properties:
2068+
logLevel:
2069+
type: string
2070+
maxLogFileDurationHours:
2071+
type: integer
20302072
startupOptions:
20312073
additionalProperties:
20322074
type: string
@@ -2104,10 +2146,6 @@ spec:
21042146
type: object
21052147
x-kubernetes-preserve-unknown-fields: true
21062148
type: object
2107-
project:
2108-
description: 'Deprecated: This has been replaced by the PrivateCloudConfig
2109-
which should be used instead'
2110-
type: string
21112149
prometheus:
21122150
description: Enables Prometheus integration on the AppDB.
21132151
properties:
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG agent_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 curl \
17+
hostname nss_wrapper tar gzip procps\
18+
&& microdnf upgrade -y \
19+
&& rm -rf /var/lib/apt/lists/*
20+
21+
RUN mkdir -p /agent \
22+
&& mkdir -p /var/lib/mongodb-mms-automation \
23+
&& mkdir -p /var/log/mongodb-mms-automation/ \
24+
&& chmod -R +wr /var/log/mongodb-mms-automation/ \
25+
# ensure that the agent user can write the logs in OpenShift
26+
&& touch /var/log/mongodb-mms-automation/readiness.log \
27+
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log
28+
29+
30+
COPY --from=base /data/mongodb-agent.tar.gz /agent
31+
COPY --from=base /data/mongodb-tools.tgz /agent
32+
COPY --from=base /data/LICENSE /licenses/LICENSE
33+
34+
RUN tar xfz /agent/mongodb-agent.tar.gz \
35+
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \
36+
&& chmod +x /agent/mongodb-agent \
37+
&& mkdir -p /var/lib/automation/config \
38+
&& chmod -R +r /var/lib/automation/config \
39+
&& rm /agent/mongodb-agent.tar.gz \
40+
&& rm -r mongodb-mms-automation-agent-*
41+
42+
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz
43+
44+
USER 2000
45+
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"]
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG agent_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 curl \
17+
hostname nss_wrapper tar gzip procps\
18+
&& microdnf upgrade -y \
19+
&& rm -rf /var/lib/apt/lists/*
20+
21+
RUN mkdir -p /agent \
22+
&& mkdir -p /var/lib/mongodb-mms-automation \
23+
&& mkdir -p /var/log/mongodb-mms-automation/ \
24+
&& chmod -R +wr /var/log/mongodb-mms-automation/ \
25+
# ensure that the agent user can write the logs in OpenShift
26+
&& touch /var/log/mongodb-mms-automation/readiness.log \
27+
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log
28+
29+
30+
COPY --from=base /data/mongodb-agent.tar.gz /agent
31+
COPY --from=base /data/mongodb-tools.tgz /agent
32+
COPY --from=base /data/LICENSE /licenses/LICENSE
33+
34+
RUN tar xfz /agent/mongodb-agent.tar.gz \
35+
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \
36+
&& chmod +x /agent/mongodb-agent \
37+
&& mkdir -p /var/lib/automation/config \
38+
&& chmod -R +r /var/lib/automation/config \
39+
&& rm /agent/mongodb-agent.tar.gz \
40+
&& rm -r mongodb-mms-automation-agent-*
41+
42+
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz
43+
44+
USER 2000
45+
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"]
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
LABEL name="MongoDB Enterprise Init AppDB" \
8+
version="mongodb-enterprise-init-appdb-${version}" \
9+
summary="MongoDB Enterprise AppDB Init Image" \
10+
description="Startup Scripts for MongoDB Enterprise Application Database for Ops Manager" \
11+
release="1" \
12+
vendor="MongoDB" \
13+
maintainer="support@mongodb.com"
14+
15+
COPY --from=base /data/readinessprobe /probes/readinessprobe
16+
COPY --from=base /data/probe.sh /probes/probe.sh
17+
COPY --from=base /data/scripts/ /scripts/
18+
COPY --from=base /data/licenses /licenses/
19+
COPY --from=base /data/version-upgrade-hook /probes/version-upgrade-hook
20+
21+
22+
RUN microdnf update --nodocs \
23+
&& microdnf -y install --nodocs tar gzip \
24+
&& microdnf clean all
25+
26+
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
27+
28+
29+
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \
30+
&& rm /tools/mongodb_tools.tgz
31+
32+
USER 2000
33+
ENTRYPOINT [ "/bin/cp", "-f", "-r", "/scripts/agent-launcher.sh", "/scripts/agent-launcher-lib.sh", "/probes/readinessprobe", "/probes/probe.sh", "/tools", "/opt/scripts/" ]
34+
35+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
LABEL name="MongoDB Enterprise Init AppDB" \
8+
version="mongodb-enterprise-init-appdb-${version}" \
9+
summary="MongoDB Enterprise AppDB Init Image" \
10+
description="Startup Scripts for MongoDB Enterprise Application Database for Ops Manager" \
11+
release="1" \
12+
vendor="MongoDB" \
13+
maintainer="support@mongodb.com"
14+
15+
COPY --from=base /data/readinessprobe /probes/readinessprobe
16+
COPY --from=base /data/probe.sh /probes/probe.sh
17+
COPY --from=base /data/scripts/ /scripts/
18+
COPY --from=base /data/licenses /licenses/
19+
COPY --from=base /data/version-upgrade-hook /probes/version-upgrade-hook
20+
21+
22+
RUN microdnf update --nodocs \
23+
&& microdnf -y install --nodocs tar gzip \
24+
&& microdnf clean all
25+
26+
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
27+
28+
29+
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \
30+
&& rm /tools/mongodb_tools.tgz
31+
32+
USER 2000
33+
ENTRYPOINT [ "/bin/cp", "-f", "-r", "/scripts/agent-launcher.sh", "/scripts/agent-launcher-lib.sh", "/probes/readinessprobe", "/probes/probe.sh", "/tools", "/opt/scripts/" ]
34+
35+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
LABEL name="MongoDB Enterprise Init Database" \
8+
version="mongodb-enterprise-init-database-${version}" \
9+
summary="MongoDB Enterprise Database Init Image" \
10+
description="Startup Scripts for MongoDB Enterprise Database" \
11+
release="1" \
12+
vendor="MongoDB" \
13+
maintainer="support@mongodb.com"
14+
15+
COPY --from=base /data/readinessprobe /probes/readinessprobe
16+
COPY --from=base /data/probe.sh /probes/probe.sh
17+
COPY --from=base /data/scripts/ /scripts/
18+
COPY --from=base /data/licenses /licenses/
19+
20+
21+
RUN microdnf update --nodocs \
22+
&& microdnf -y install --nodocs tar gzip \
23+
&& microdnf clean all
24+
25+
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
26+
27+
28+
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \
29+
&& rm /tools/mongodb_tools.tgz
30+
31+
USER 2000
32+
ENTRYPOINT [ "/bin/cp", "-f", "-r", "/scripts/agent-launcher.sh", "/scripts/agent-launcher-lib.sh", "/probes/readinessprobe", "/probes/probe.sh", "/tools", "/opt/scripts/" ]
33+
34+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
LABEL name="MongoDB Enterprise Init Database" \
8+
version="mongodb-enterprise-init-database-${version}" \
9+
summary="MongoDB Enterprise Database Init Image" \
10+
description="Startup Scripts for MongoDB Enterprise Database" \
11+
release="1" \
12+
vendor="MongoDB" \
13+
maintainer="support@mongodb.com"
14+
15+
COPY --from=base /data/readinessprobe /probes/readinessprobe
16+
COPY --from=base /data/probe.sh /probes/probe.sh
17+
COPY --from=base /data/scripts/ /scripts/
18+
COPY --from=base /data/licenses /licenses/
19+
20+
21+
RUN microdnf update --nodocs \
22+
&& microdnf -y install --nodocs tar gzip \
23+
&& microdnf clean all
24+
25+
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
26+
27+
28+
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \
29+
&& rm /tools/mongodb_tools.tgz
30+
31+
USER 2000
32+
ENTRYPOINT [ "/bin/cp", "-f", "-r", "/scripts/agent-launcher.sh", "/scripts/agent-launcher-lib.sh", "/probes/readinessprobe", "/probes/probe.sh", "/tools", "/opt/scripts/" ]
33+
34+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
LABEL name="MongoDB Enterprise Ops Manager Init" \
7+
maintainer="support@mongodb.com" \
8+
vendor="MongoDB" \
9+
version="mongodb-enterprise-init-ops-manager-1.0.11" \
10+
release="1" \
11+
summary="MongoDB Enterprise Ops Manager Init Image" \
12+
description="Startup Scripts for MongoDB Enterprise Ops Manager"
13+
14+
15+
COPY --from=base /data/scripts /scripts
16+
COPY --from=base /data/licenses /licenses
17+
18+
19+
RUN microdnf update --nodocs \
20+
&& microdnf clean all
21+
22+
23+
USER 2000
24+
ENTRYPOINT [ "/bin/cp", "-f", "/scripts/docker-entry-point.sh", "/scripts/backup-daemon-liveness-probe.sh", "/scripts/mmsconfiguration", "/scripts/backup-daemon-readiness-probe", "/opt/scripts/" ]
25+
26+

0 commit comments

Comments
 (0)