Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
serviceAccountName: mongodb-kubernetes-operator
containers:
- name: mongodb-kubernetes-operator
image: "quay.io/mongodb/mongodb-kubernetes:1.5.0"
image: "quay.io/mongodb/mongodb-kubernetes:1.6.0"
imagePullPolicy: Always
args:
- -watch-resource=mongodb
Expand Down Expand Up @@ -69,21 +69,21 @@ spec:
- name: INIT_DATABASE_IMAGE_REPOSITORY
value: quay.io/mongodb/mongodb-kubernetes-init-database
- name: INIT_DATABASE_VERSION
value: "1.5.0"
value: "1.6.0"
- name: DATABASE_VERSION
value: "1.5.0"
value: "1.6.0"
# Ops Manager
- name: OPS_MANAGER_IMAGE_REPOSITORY
value: quay.io/mongodb/mongodb-enterprise-ops-manager-ubi
- name: INIT_OPS_MANAGER_IMAGE_REPOSITORY
value: quay.io/mongodb/mongodb-kubernetes-init-ops-manager
- name: INIT_OPS_MANAGER_VERSION
value: "1.5.0"
value: "1.6.0"
# AppDB
- name: INIT_APPDB_IMAGE_REPOSITORY
value: quay.io/mongodb/mongodb-kubernetes-init-appdb
- name: INIT_APPDB_VERSION
value: "1.5.0"
value: "1.6.0"
- name: OPS_MANAGER_IMAGE_PULL_POLICY
value: Always
- name: AGENT_IMAGE
Expand Down Expand Up @@ -122,14 +122,14 @@ spec:
- name: MDB_COMMUNITY_IMAGE_TYPE
value: "ubi8"
# Community Env Vars End
- name: RELATED_IMAGE_MONGODB_ENTERPRISE_DATABASE_IMAGE_1_5_0
value: "quay.io/mongodb/mongodb-kubernetes-database:1.5.0"
- name: RELATED_IMAGE_INIT_DATABASE_IMAGE_REPOSITORY_1_5_0
value: "quay.io/mongodb/mongodb-kubernetes-init-database:1.5.0"
- name: RELATED_IMAGE_INIT_OPS_MANAGER_IMAGE_REPOSITORY_1_5_0
value: "quay.io/mongodb/mongodb-kubernetes-init-ops-manager:1.5.0"
- name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_5_0
value: "quay.io/mongodb/mongodb-kubernetes-init-appdb:1.5.0"
- name: RELATED_IMAGE_MONGODB_ENTERPRISE_DATABASE_IMAGE_1_6_0
value: "quay.io/mongodb/mongodb-kubernetes-database:1.6.0"
- name: RELATED_IMAGE_INIT_DATABASE_IMAGE_REPOSITORY_1_6_0
value: "quay.io/mongodb/mongodb-kubernetes-init-database:1.6.0"
- name: RELATED_IMAGE_INIT_OPS_MANAGER_IMAGE_REPOSITORY_1_6_0
value: "quay.io/mongodb/mongodb-kubernetes-init-ops-manager:1.6.0"
- name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_6_0
value: "quay.io/mongodb/mongodb-kubernetes-init-appdb:1.6.0"
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_12_8669_1
value: "quay.io/mongodb/mongodb-agent:107.0.12.8669-1"
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_13_8702_1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
capabilities: Deep Insights
categories: Database
certified: "true"
containerImage: quay.io/mongodb/mongodb-kubernetes:1.5.0
containerImage: quay.io/mongodb/mongodb-kubernetes:1.6.0
createdAt: ""
description: The MongoDB Controllers for Kubernetes enable easy deploys of
MongoDB into Kubernetes clusters, using our management, monitoring and
Expand Down Expand Up @@ -462,5 +462,5 @@ spec:
maturity: stable
provider:
name: MongoDB, Inc
replaces: mongodb-kubernetes.v1.4.0
replaces: mongodb-kubernetes.v1.5.0
version: 0.0.0
2 changes: 1 addition & 1 deletion helm_chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: |
MongoDB Controllers for Kubernetes translate the human knowledge of
creating a MongoDB instance into a scalable, repeatable, and standardized
method.
version: 1.5.0
version: 1.6.0
kubeVersion: '>=1.16-0'
type: application
keywords:
Expand Down
2 changes: 1 addition & 1 deletion helm_chart/values-openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ operator:
# Environment variables prefixed with RELATED_IMAGE_ are used by operator-sdk to generate relatedImages section
# with sha256 digests pinning for the certified operator bundle with disconnected environment feature enabled.
# https://docs.openshift.com/container-platform/4.14/operators/operator_sdk/osdk-generating-csvs.html#olm-enabling-operator-for-restricted-network_osdk-generating-csvs
version: 1.5.0
version: 1.6.0
relatedImages:
opsManager:
- 6.0.26
Expand Down
10 changes: 5 additions & 5 deletions helm_chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ operator:
deployment_name: mongodb-kubernetes-operator

# Version of mongodb-kubernetes-operator
version: 1.5.0
version: 1.6.0

# The Custom Resources that will be watched by the Operator. Needs to be changed if only some of the CRDs are installed
watchedResources:
Expand Down Expand Up @@ -129,24 +129,24 @@ operator:
## Database
database:
name: mongodb-kubernetes-database
version: 1.5.0
version: 1.6.0

initDatabase:
name: mongodb-kubernetes-init-database
version: 1.5.0
version: 1.6.0

## Ops Manager
opsManager:
name: mongodb-enterprise-ops-manager-ubi

initOpsManager:
name: mongodb-kubernetes-init-ops-manager
version: 1.5.0
version: 1.6.0

## Application Database
initAppDb:
name: mongodb-kubernetes-init-appdb
version: 1.5.0
version: 1.6.0

agent:
name: mongodb-agent
Expand Down
113 changes: 113 additions & 0 deletions public/dockerfiles/mongodb-agent/107.0.19.8805-1/ubi/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
FROM --platform=${BUILDPLATFORM} registry.access.redhat.com/ubi9/ubi-minimal AS tools_downloader

ARG TARGETPLATFORM
ARG mongodb_tools_url
ARG mongodb_tools_version_s390x
ARG mongodb_tools_version_ppc64le
ARG mongodb_tools_version_amd64
ARG mongodb_tools_version_arm64

RUN microdnf -y update --nodocs \
&& microdnf -y install --nodocs tar gzip \
&& microdnf clean all

RUN case ${TARGETPLATFORM} in \
"linux/amd64") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_amd64} ;; \
"linux/arm64") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_arm64} ;; \
"linux/s390x") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_s390x} ;; \
"linux/ppc64le") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_ppc64le} ;; \
esac \
&& mkdir -p /tools \
&& curl -o /tools/mongodb_tools.tgz "${mongodb_tools_url}/${MONGODB_TOOLS_VERSION}"

RUN tar xfz /tools/mongodb_tools.tgz \
&& mv mongodb-database-tools-*/bin/* /tools \
&& chmod +x /tools/* \
&& rm /tools/mongodb_tools.tgz \
&& rm -r mongodb-database-tools-*

FROM --platform=${BUILDPLATFORM} registry.access.redhat.com/ubi9/ubi-minimal AS agent_downloader

ARG TARGETPLATFORM
ARG mongodb_agent_url
ARG mongodb_agent_version_s390x
ARG mongodb_agent_version_ppc64le
ARG mongodb_agent_version_amd64
ARG mongodb_agent_version_arm64

RUN microdnf -y update --nodocs \
&& microdnf -y install --nodocs tar gzip \
&& microdnf clean all

RUN case ${TARGETPLATFORM} in \
"linux/amd64") export MONGODB_AGENT_VERSION=${mongodb_agent_version_amd64} ;; \
"linux/arm64") export MONGODB_AGENT_VERSION=${mongodb_agent_version_arm64} ;; \
"linux/s390x") export MONGODB_AGENT_VERSION=${mongodb_agent_version_s390x} ;; \
"linux/ppc64le") export MONGODB_AGENT_VERSION=${mongodb_agent_version_ppc64le} ;; \
esac \
&& mkdir -p /agent \
&& curl -o /agent/mongodb_agent.tgz "${mongodb_agent_url}/${MONGODB_AGENT_VERSION}"

RUN tar xfz /agent/mongodb_agent.tgz \
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \
&& chmod +x /agent/mongodb-agent \
&& rm /agent/mongodb_agent.tgz \
&& rm -r mongodb-mms-automation-agent-*

FROM registry.access.redhat.com/ubi9/ubi-minimal

# Replace libcurl-minimal and curl-minimal with the full versions
# https://bugzilla.redhat.com/show_bug.cgi?id=1994521
RUN microdnf install -y libssh libpsl libbrotli \
&& microdnf download curl libcurl \
&& rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \
&& microdnf remove -y libcurl-minimal curl-minimal

RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/
RUN microdnf install -y --disableplugin=subscription-manager \
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs
# Dependencies for the Agent
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
net-snmp \
net-snmp-agent-libs
RUN microdnf install -y --disableplugin=subscription-manager \
hostname tar gzip procps jq \
&& microdnf upgrade -y \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p /agent \
&& mkdir -p /var/lib/mongodb-mms-automation \
&& mkdir -p /var/log/mongodb-mms-automation/ \
&& chmod -R +wr /var/log/mongodb-mms-automation/ \
# ensure that the agent user can write the logs in OpenShift
&& touch /var/log/mongodb-mms-automation/readiness.log \
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log

# Copy scripts to a safe location that won't be overwritten by volume mount
COPY ./docker/mongodb-kubernetes-init-database/content/LICENSE /licenses/LICENSE
COPY ./docker/mongodb-agent/agent-launcher-shim.sh /usr/local/bin/agent-launcher-shim.sh
COPY ./docker/mongodb-agent/setup-agent-files.sh /usr/local/bin/setup-agent-files.sh
COPY ./docker/mongodb-agent/dummy-probe.sh /usr/local/bin/dummy-probe.sh
COPY ./docker/mongodb-agent/dummy-readinessprobe /usr/local/bin/dummy-readinessprobe

RUN mkdir -p /var/lib/automation/config \
&& chmod -R +r /var/lib/automation/config

RUN mkdir -p /tools /agent

COPY --from=tools_downloader "/tools/" /tools/
COPY --from=agent_downloader "/agent/" /agent/

ARG version

LABEL name="MongoDB Agent" \
version="${version}" \
summary="MongoDB Agent" \
description="MongoDB Agent" \
vendor="MongoDB" \
release="1" \
maintainer="support@mongodb.com"

USER 2000
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"]
113 changes: 113 additions & 0 deletions public/dockerfiles/mongodb-agent/108.0.15.8888-1/ubi/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
FROM --platform=${BUILDPLATFORM} registry.access.redhat.com/ubi9/ubi-minimal AS tools_downloader

ARG TARGETPLATFORM
ARG mongodb_tools_url
ARG mongodb_tools_version_s390x
ARG mongodb_tools_version_ppc64le
ARG mongodb_tools_version_amd64
ARG mongodb_tools_version_arm64

RUN microdnf -y update --nodocs \
&& microdnf -y install --nodocs tar gzip \
&& microdnf clean all

RUN case ${TARGETPLATFORM} in \
"linux/amd64") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_amd64} ;; \
"linux/arm64") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_arm64} ;; \
"linux/s390x") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_s390x} ;; \
"linux/ppc64le") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_ppc64le} ;; \
esac \
&& mkdir -p /tools \
&& curl -o /tools/mongodb_tools.tgz "${mongodb_tools_url}/${MONGODB_TOOLS_VERSION}"

RUN tar xfz /tools/mongodb_tools.tgz \
&& mv mongodb-database-tools-*/bin/* /tools \
&& chmod +x /tools/* \
&& rm /tools/mongodb_tools.tgz \
&& rm -r mongodb-database-tools-*

FROM --platform=${BUILDPLATFORM} registry.access.redhat.com/ubi9/ubi-minimal AS agent_downloader

ARG TARGETPLATFORM
ARG mongodb_agent_url
ARG mongodb_agent_version_s390x
ARG mongodb_agent_version_ppc64le
ARG mongodb_agent_version_amd64
ARG mongodb_agent_version_arm64

RUN microdnf -y update --nodocs \
&& microdnf -y install --nodocs tar gzip \
&& microdnf clean all

RUN case ${TARGETPLATFORM} in \
"linux/amd64") export MONGODB_AGENT_VERSION=${mongodb_agent_version_amd64} ;; \
"linux/arm64") export MONGODB_AGENT_VERSION=${mongodb_agent_version_arm64} ;; \
"linux/s390x") export MONGODB_AGENT_VERSION=${mongodb_agent_version_s390x} ;; \
"linux/ppc64le") export MONGODB_AGENT_VERSION=${mongodb_agent_version_ppc64le} ;; \
esac \
&& mkdir -p /agent \
&& curl -o /agent/mongodb_agent.tgz "${mongodb_agent_url}/${MONGODB_AGENT_VERSION}"

RUN tar xfz /agent/mongodb_agent.tgz \
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \
&& chmod +x /agent/mongodb-agent \
&& rm /agent/mongodb_agent.tgz \
&& rm -r mongodb-mms-automation-agent-*

FROM registry.access.redhat.com/ubi9/ubi-minimal

# Replace libcurl-minimal and curl-minimal with the full versions
# https://bugzilla.redhat.com/show_bug.cgi?id=1994521
RUN microdnf install -y libssh libpsl libbrotli \
&& microdnf download curl libcurl \
&& rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \
&& microdnf remove -y libcurl-minimal curl-minimal

RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/
RUN microdnf install -y --disableplugin=subscription-manager \
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs
# Dependencies for the Agent
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
net-snmp \
net-snmp-agent-libs
RUN microdnf install -y --disableplugin=subscription-manager \
hostname tar gzip procps jq \
&& microdnf upgrade -y \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p /agent \
&& mkdir -p /var/lib/mongodb-mms-automation \
&& mkdir -p /var/log/mongodb-mms-automation/ \
&& chmod -R +wr /var/log/mongodb-mms-automation/ \
# ensure that the agent user can write the logs in OpenShift
&& touch /var/log/mongodb-mms-automation/readiness.log \
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log

# Copy scripts to a safe location that won't be overwritten by volume mount
COPY ./docker/mongodb-kubernetes-init-database/content/LICENSE /licenses/LICENSE
COPY ./docker/mongodb-agent/agent-launcher-shim.sh /usr/local/bin/agent-launcher-shim.sh
COPY ./docker/mongodb-agent/setup-agent-files.sh /usr/local/bin/setup-agent-files.sh
COPY ./docker/mongodb-agent/dummy-probe.sh /usr/local/bin/dummy-probe.sh
COPY ./docker/mongodb-agent/dummy-readinessprobe /usr/local/bin/dummy-readinessprobe

RUN mkdir -p /var/lib/automation/config \
&& chmod -R +r /var/lib/automation/config

RUN mkdir -p /tools /agent

COPY --from=tools_downloader "/tools/" /tools/
COPY --from=agent_downloader "/agent/" /agent/

ARG version

LABEL name="MongoDB Agent" \
version="${version}" \
summary="MongoDB Agent" \
description="MongoDB Agent" \
vendor="MongoDB" \
release="1" \
maintainer="support@mongodb.com"

USER 2000
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"]
Loading