diff --git a/hack/noobaa-kafka-connection-setup.sh b/hack/noobaa-kafka-connection-setup.sh index 7266de6..e1c7966 100755 --- a/hack/noobaa-kafka-connection-setup.sh +++ b/hack/noobaa-kafka-connection-setup.sh @@ -5,6 +5,7 @@ # Prerequisites: # - OpenShift Data Foundation installed in `openshift-storage` # - Strimzi Kafka cluster `my-cluster` running in `kafka` namespace +# - Kafka configured for SASL/plain on port :9095 # # Before running this script, install the CRD and the objectbucket-notifications-adapter from this repo: # make install @@ -13,7 +14,7 @@ set -Eeuxo pipefail mcg_adapter_topic="mcg-adapter-notifications" -mcg_adapter_namespace="objectbucket-notifications-adapter-system" +mcg_adapter_namespace="openshift-operators" kafka_namespace="kafka" kafka_cluster="my-cluster" connection_name="mcg-adapter-connection" @@ -154,3 +155,23 @@ oc create secret generic objectbucket-notifications-adapter-user -n "${mcg_adapt --from-literal=sasl.mechanism=SCRAM-SHA-512 \ --from-literal=user=objectbucket-notifications-adapter-user \ --from-literal=password="${adapter_password}" + +# Update the objectbucket-notifications ConfigMap +oc apply -f - <