Uploaded image for project: 'Service Binding'
  1. Service Binding
  2. APPSVC-276

Associate binding secret to a custom schema path in the workload

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • OpenShift 4.5
    • None
    • Service Binding
    • None
    • App Services Sprint 184, Sprint 185, Sprint 189

      Why

      Today, we support binding a secret only to podSpec compliant types. However, many types including KafkaSource which are not podSpec compliant.

      We would like to support an optional field to let the user specify where to inject the binding secret's reference name the way we do in `envFrom` today.

      Acceptance Criteria

      Support a new attribute called bindingSecretPath in the CRD. A User should be able to provide where the secret is being bound instead of the default podSpec path.

      
      apiVersion: apps.openshift.io/v1alpha1
      kind: ServiceBindingRequest
      
      metadata: 
        name: eventsource-binding-foo-bar
        namespace: service-binding-demo
      
      spec: 
        applicationSelector: 
          bindingPath:      customSecretPath: spec.eventSourceSecret # <--- In  KafkaSource
          group: sources.eventing.knative.dev
          resource: kafkasources
          resourceRef: my-kafka-source
          version: v1alpha1
      
        backingServiceSelectors:                                                                                                         
          - group: kafka.strimzi.io
            version: v1beta1
            kind: KafkaTopic
            resourceRef: my-kafka-topic 
          - group: kafka.strimzi.io
            version: v1beta1
            kind: Kafka
            resourceRef: my-kafka-cluster
      
       
      apiVersion: sources.eventing.knative.dev/v1alpha1
       kind: KafkaSource
       metadata:
        name: my-kafka-source
       spec:
        consumerGroup: knative-group
        eventSourceSecret: eventsource-binding-foo-bar-binding-secret <--- Associated made by service binding operator
        sink:
          ref:
            apiVersion: serving.knative.dev/v1alpha1
            kind: Service
            name: event-display
      

              bmuthuka Baiju Muthukadan
              rh-ee-ssadeghi Siamak Sadeghianfar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: