diff --git a/environments/coffeeshop-dev/services/barista-kafka/base/config/service-binding-request.yaml b/environments/coffeeshop-dev/services/barista-kafka/base/config/service-binding-request.yaml index 2397ee1..eeca664 100644 --- a/environments/coffeeshop-dev/services/barista-kafka/base/config/service-binding-request.yaml +++ b/environments/coffeeshop-dev/services/barista-kafka/base/config/service-binding-request.yaml @@ -3,23 +3,18 @@ kind: ServiceBindingRequest metadata: name: barista-kafka spec: - # applicationSelector isn't needed anymore once https://github.com/redhat-developer/service-binding-operator/issues/296 is implemented - applicationSelector: - group: apps - resource: deployments - resourceRef: barista-kafka - version: v1 # Service Binding Operator doesn't support binding across namespaces until https://github.com/redhat-developer/service-binding-operator/issues/314 is implemented. # Assumption: Kafka and the application are deployed to the same namespace - backingServiceSelector: - group: kafka.strimzi.io + backingServiceSelectors: + - group: kafka.strimzi.io kind: Kafka resourceRef: my-cluster version: v1beta1 + id: mycluster customEnvVar: - name: KAFKA_BOOTSTRAP_SERVERS value: |- - {{- range .status.listeners -}} + {{- range .mycluster.status.listeners -}} {{- if eq .type "plain" -}} {{ .bootstrapServers }} {{- end -}} diff --git a/environments/coffeeshop-dev/services/coffeeshop-ui/base/config/service-binding-request.yaml b/environments/coffeeshop-dev/services/coffeeshop-ui/base/config/service-binding-request.yaml index 1f338c8..0b4c30f 100644 --- a/environments/coffeeshop-dev/services/coffeeshop-ui/base/config/service-binding-request.yaml +++ b/environments/coffeeshop-dev/services/coffeeshop-ui/base/config/service-binding-request.yaml @@ -3,23 +3,18 @@ kind: ServiceBindingRequest metadata: name: coffeeshop-ui-kafka spec: - # applicationSelector isn't needed anymore once https://github.com/redhat-developer/service-binding-operator/issues/296 is implemented - applicationSelector: - group: apps - resource: deployments - resourceRef: coffeeshop-ui - version: v1 # Service Binding Operator doesn't support binding across namespaces until https://github.com/redhat-developer/service-binding-operator/issues/314 is implemented. # Assumption: Kafka and the application are deployed to the same namespace - backingServiceSelector: - group: kafka.strimzi.io + backingServiceSelectors: + - group: kafka.strimzi.io kind: Kafka resourceRef: my-cluster version: v1beta1 + id: mycluster customEnvVar: - name: MP_MESSAGING_CONNECTOR_LIBERTY_KAFKA_BOOTSTRAP_SERVERS value: |- - {{- range .status.listeners -}} + {{- range .mycluster.status.listeners -}} {{- if eq .type "plain" -}} {{ .bootstrapServers }} {{- end -}}