Uploaded image for project: 'ONAP Operations Manager'
  1. ONAP Operations Manager
  2. OOM-2761

common.secretFast does not work with genericKV

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • Istanbul Release
    • None
    • None
    • Hide

      SUMMARY

      secretFast is not working with genericKV

      OS / ENVIRONMENT

      • Kubernetes version: 1.20 (using minikube)
      • Helm version: 3

      OOM VERSION

      master

       

      STEPS TO REPRODUCE

      define a secret with type genericKV

      secrets:
        - uid: 'cds-api-creds'
          type: genericKV
          externalSecret: '{{ tpl (default "" .Values.config.authCredentialsExternalSecret) . }}'
          envs:
            - name: basicAuth
              value: "Basic XYZ"
      

      EXPECTED RESULTS

      Secret generated

      ACTUAL RESULTS

      Fails to render chart

      executing "common.secret.getSecretNameFast" at <include "common.secret.buildCache" $global>: error calling include: template: cds-sdc-listener/charts/common/templates/_secret.tpl:197:54: executing "common.secret.buildCache" at <$key>: wrong type for value; expected string; got []interface {}

      Show
      SUMMARY secretFast is not working with genericKV OS / ENVIRONMENT Kubernetes version: 1.20 (using minikube) Helm version: 3 OOM VERSION master   STEPS TO REPRODUCE define a secret with type genericKV secrets: - uid: 'cds-api-creds' type: genericKV externalSecret: '{{ tpl ( default "" .Values.config.authCredentialsExternalSecret) . }}' envs: - name: basicAuth value: "Basic XYZ" EXPECTED RESULTS Secret generated ACTUAL RESULTS Fails to render chart executing "common.secret.getSecretNameFast" at <include "common.secret.buildCache" $global>: error calling include: template: cds-sdc-listener/charts/common/templates/_secret.tpl:197:54: executing "common.secret.buildCache" at <$key>: wrong type for value; expected string; got []interface {}

          jozsef jozsef
          jozsef jozsef
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

            Created:
            Updated:
            Resolved: