Uploaded image for project: 'Red Hat OpenBridge'
  1. Red Hat OpenBridge
  2. MGDOBR-1036

The Shard should read configuration from a Secret on start-up.

XMLWordPrintable

    • False
    • None
    • False
    • MGDOBR - Sprint 224

      Issue Description: 

      Currently we rely on the envFrom directive to configure the Deployment of the Shard e.g:

       envFrom:
        - configMapRef:
            name: event-bridge-shard-operator-config
        - secretRef:
            name: event-bridge-shard-operator-secrets

      This poses a particular challenge in the AddOn model of deployment in that if the Configuration is changed, the Shard does not reload. We also see this in our own dev/stable environments with MGDOBR-229.

      Instead, the Shard could read it's configuration from a well-known location on start-up and then setup a Watch on the configuration. If the configuration is changed at any point, the Shard could simply "reload" the configuration.

      This is the exact pattern followed in RHOSAK, see the following examples:

       

      Acceptance Criteria: 

      • Use the https://quarkus.io/guides/kubernetes-config extension to have the Shard read a well-defined secret on start-up for it's configuration
      • Create the ability for the Shard to "reload" it's configuration if it is changed
      • Remove the envFrom directive from our kustomize configuration for the Shard.

       

              vajain Vaibhav Jain
              rblake@redhat.com Rob Blake
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: