Skip to content

Commit

Permalink
Merge pull request #2785 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…2773-to-release-4.17

[release-4.17] update deps bundle images
  • Loading branch information
openshift-merge-bot[bot] authored Sep 4, 2024
2 parents 3f33b1f + 2e4513c commit 211e5d3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,9 @@ spec:
- name: CEPH_IMAGE
value: quay.io/ceph/ceph:v18.2.0
- name: NOOBAA_CORE_IMAGE
value: quay.io/noobaa/noobaa-core:master-20240820
value: quay.io/noobaa/noobaa-core:master-20240901
- name: NOOBAA_DB_IMAGE
value: docker.io/centos/postgresql-12-centos8
value: quay.io/sclorg/postgresql-15-c9s
- name: PROVIDER_API_SERVER_IMAGE
value: quay.io/ocs-dev/ocs-operator:latest
- name: ONBOARDING_VALIDATION_KEYS_GENERATOR_IMAGE
Expand Down
11 changes: 6 additions & 5 deletions hack/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ OCS_CSV="$OUTDIR_TEMPLATES/ocs-operator.csv.yaml.in"
# and we should continue to use dowsntream image only due to few
# downstream only changes present in rook downstream fork.
LATEST_ROOK_IMAGE="quay.io/ocs-dev/rook-ceph:vrelease-4.17-91cc5780b"
LATEST_NOOBAA_CORE_IMAGE="quay.io/noobaa/noobaa-core:master-20240820"
LATEST_NOOBAA_DB_IMAGE="docker.io/centos/postgresql-12-centos8"
LATEST_NOOBAA_CORE_IMAGE="quay.io/noobaa/noobaa-core:master-20240901"
LATEST_NOOBAA_DB_IMAGE="quay.io/sclorg/postgresql-15-c9s"
LATEST_CEPH_IMAGE="quay.io/ceph/ceph:v18.2.0"
# TODO: change image once the quay repo is changed
LATEST_MUST_GATHER_IMAGE="quay.io/ocs-dev/ocs-must-gather:latest"
Expand Down Expand Up @@ -88,9 +88,10 @@ FILE_BASED_CATALOG_FULL_IMAGE_NAME="${FILE_BASED_CATALOG_FULL_IMAGE_NAME:-${DEFA
METRICS_EXPORTER_FULL_IMAGE_NAME="${METRICS_EXPORTER_FULL_IMAGE_NAME:-${DEFAULT_METRICS_EXPORTER_FULL_IMAGE_NAME}}"
UX_BACKEND_OAUTH_FULL_IMAGE_NAME="${UX_BACKEND_OAUTH_FULL_IMAGE_NAME:-${DEFAULT_UX_BACKEND_OAUTH_FULL_IMAGE_NAME}}"

CSI_ADDONS_BUNDLE_FULL_IMAGE_NAME="quay.io/csiaddons/k8s-bundle:v0.8.0"
OCS_CLIENT_BUNDLE_FULL_IMAGE_NAME="quay.io/ocs-dev/ocs-client-operator-bundle:release-4.16-7c5526d"
NOOBAA_BUNDLE_FULL_IMAGE_NAME="quay.io/noobaa/noobaa-operator-bundle:master-20240725"
CSI_ADDONS_BUNDLE_FULL_IMAGE_NAME="quay.io/csiaddons/k8s-bundle:v0.9.1"
CEPH_CSI_BUNDLE_FULL_IMAGE_NAME="quay.io/ocs-dev/cephcsi-operator-bundle:release-4.17-fb535da"
OCS_CLIENT_BUNDLE_FULL_IMAGE_NAME="quay.io/ocs-dev/ocs-client-operator-bundle:main-5595a28"
NOOBAA_BUNDLE_FULL_IMAGE_NAME="quay.io/noobaa/noobaa-operator-bundle:master-20240901"
ROOK_BUNDLE_FULL_IMAGE_NAME="quay.io/ocs-dev/rook-ceph-operator-bundle:release-4.17-91cc5780b"
KUBE_RBAC_PROXY_FULL_IMAGE_NAME="gcr.io/kubebuilder/kube-rbac-proxy:v0.13.0"

Expand Down
37 changes: 24 additions & 13 deletions hack/install-ocs-operator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,39 @@ data:
EOF


# Ensure position independent make targets in release CI, explicitly setting the values ensures client-op doesn't deploy CSI
# when storagecluster is configured for remoteconsumers, controllers set this value to "true"
cat <<EOF | oc create -f -
apiVersion: v1
kind: ConfigMap
metadata:
name: ocs-client-operator-config
namespace: openshift-storage
data:
DEPLOY_CSI: "false"
EOF
patch_ocs_client_operator_config_configmap() {
while true; do
if oc get cm ocs-client-operator-config -n openshift-storage; then
oc patch cm ocs-client-operator-config -n openshift-storage --type merge -p '{"data":{"DEPLOY_CSI":"false"}}'
sleep 10
value=$(oc get cm ocs-client-operator-config -n openshift-storage -o custom-columns=:data.DEPLOY_CSI --no-headers)
if [[ "$value" == "false" ]]; then
break
fi
fi
sleep 10
done
}


"$OPERATOR_SDK" run bundle "$ROOK_BUNDLE_FULL_IMAGE_NAME" --timeout=10m --security-context-config restricted -n "$INSTALL_NAMESPACE"
"$OPERATOR_SDK" run bundle "$CSI_ADDONS_BUNDLE_FULL_IMAGE_NAME" --timeout=10m --security-context-config restricted -n "$INSTALL_NAMESPACE"
"$OPERATOR_SDK" run bundle "$CEPH_CSI_BUNDLE_FULL_IMAGE_NAME" --timeout=10m --security-context-config restricted -n "$INSTALL_NAMESPACE"
# Patch the ConfigMap in the background because an empty ConfigMap is initially created by the OLM as it is part of the ocs-client-operator bundle.
# Patching is done in the background to ensure that it happens immediately after creation, preventing the operator from running with the default
# configuration and deploying the CSI. This approach allows us to stop the CSI deployment by patching the ConfigMap as soon as it's created.
# We cannot create the ConfigMap early in the process because OLM overwrites it with an empty one later in the cycle.
patch_ocs_client_operator_config_configmap &
"$OPERATOR_SDK" run bundle "$OCS_CLIENT_BUNDLE_FULL_IMAGE_NAME" --timeout=10m --security-context-config restricted -n "$INSTALL_NAMESPACE"
"$OPERATOR_SDK" run bundle "$NOOBAA_BUNDLE_FULL_IMAGE_NAME" --timeout=10m --security-context-config restricted -n "$INSTALL_NAMESPACE"
"$OPERATOR_SDK" run bundle "$BUNDLE_FULL_IMAGE_NAME" --timeout=10m --security-context-config restricted -n "$INSTALL_NAMESPACE"

oc wait --timeout=5m --for condition=Available -n "$INSTALL_NAMESPACE" deployment \
rook-ceph-operator \
ceph-csi-controller-manager \
csi-addons-controller-manager \
ocs-client-operator-controller-manager \
noobaa-operator \
ocs-client-operator-console \
ocs-client-operator-controller-manager \
ocs-operator \
rook-ceph-operator \
ux-backend-server

0 comments on commit 211e5d3

Please sign in to comment.