Skip to content

Commit

Permalink
Change the output of the azure-event-hubs overrides file to adapt to …
Browse files Browse the repository at this point in the history
…the new Chart structure (kyma-project#2198)
  • Loading branch information
montaro authored Apr 4, 2020
1 parent 7508139 commit 0725d0a
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ EVENTHUB_NAMESPACE_SHARED_ACCESS_KEY="RootManageSharedAccessKey"
K8S_SECRET_NAME="${EVENTHUB_NAMESPACE_NAME}-overrides"
K8S_SECRET_NAMESPACE="kyma-installer"
K8S_SECRET_USERNAME="\$ConnectionString"
K8S_SECRET_BROKER=""
K8S_SECRET_PASSWORD=""

KAFKA_BROKER_PORT="9093"
K8S_SECRET_BROKER_HOSTNAME=""
K8S_SECRET_BROKER_PORT="9093"

#
#Utility Functions To Make The Actual Cmd Line Calls
Expand Down Expand Up @@ -174,7 +174,7 @@ loadAuthorizationKey() {
primaryConnectionString=$(cmdNamespacePrimaryConnectionString)

#Populate the Kubernetes Secret Broker / Password Values
K8S_SECRET_BROKER=$(echo "${primaryConnectionString}" | sed -e "s/^Endpoint=.*sb:\/\/\(.*\)\/;.*$/\1:${KAFKA_BROKER_PORT}/")
K8S_SECRET_BROKER_HOSTNAME=$(echo "${primaryConnectionString}" | sed -e "s/^Endpoint=.*sb:\/\/\(.*\)\/;.*$/\1/")
K8S_SECRET_PASSWORD=${primaryConnectionString}
}

Expand All @@ -196,7 +196,8 @@ metadata:
component: knative-eventing-channel-kafka
kyma-project.io/installation: ""
stringData:
kafka.brokers: ${K8S_SECRET_BROKER}
kafka.brokers.hostname: ${K8S_SECRET_BROKER_HOSTNAME}
kafka.brokers.port: ${K8S_SECRET_BROKER_PORT}
kafka.namespace: ${EVENTHUB_NAMESPACE_NAME}
kafka.password: ${K8S_SECRET_PASSWORD}
kafka.username: ${K8S_SECRET_USERNAME}
Expand Down

0 comments on commit 0725d0a

Please sign in to comment.