Hi team helm install i am getting this error
# all-things-deployment
c
Hi team helm install i am getting this error
helm install datahub datahub/datahub --values ./charts/datahub/values.yaml coalesce.go220 warning: cannot overwrite table with non table for datahub.global.datahub.metadata_service_authentication.provisionSecrets (map[autoGenerate:true enabled:true]) coalesce.go220 warning: cannot overwrite table with non table for datahub.global.datahub.encryptionKey.provisionSecret (map[autoGenerate:true enabled:true]) coalesce.go220 warning: cannot overwrite table with non table for datahub.global.datahub.encryptionKey.provisionSecret (map[autoGenerate:true enabled:true]) coalesce.go220 warning: cannot overwrite table with non table for datahub.global.datahub.metadata_service_authentication.provisionSecrets (map[autoGenerate:true enabled:true]) coalesce.go220 warning: cannot overwrite table with non table for datahub.datahub.encryptionKey.provisionSecret (map[autoGenerate:true enabled:true]) coalesce.go220 warning: cannot overwrite table with non table for datahub.datahub.metadata_service_authentication.provisionSecrets (map[autoGenerate:true enabled:true]) coalesce.go220 warning: cannot overwrite table with non table for datahub.datahub.metadata_service_authentication.provisionSecrets (map[autoGenerate:true enabled:true]) coalesce.go220 warning: cannot overwrite table with non table for datahub.datahub.encryptionKey.provisionSecret (map[autoGenerate:true enabled:true]) coalesce.go220 warning: cannot overwrite table with non table for datahub.datahub.metadata_service_authentication.provisionSecrets (map[autoGenerate:true enabled:true]) coalesce.go220 warning: cannot overwrite table with non table for datahub.datahub.encryptionKey.provisionSecret (map[autoGenerate:true enabled:true]) Error: INSTALLATION FAILED: template: datahub/templates/datahub-encryption-secrets.yml57: executing “datahub/templates/datahub-encryption-secrets.yml” at <.enabled>: can’t evaluate field enabled in type bool
b
hey, could you share the relevant part from the values.yaml?
c
Copy code
{{- $secret := lookup "v1" "Secret" .Release.Namespace "datahub-encryption-secrets" -}}
{{- $data := $secret.data | default dict -}}
{{- if .Values.global.datahub.encryptionKey.provisionSecret -}}
apiVersion: v1
kind: Secret
metadata:
  name: "datahub-encryption-secrets"
type: Opaque
data: 
  encryption_key_secret: {{ index $data "encryption_key_secret" | default (randAlphaNum 20 | b64enc | quote) }}
{{- end -}}
i am not able to understand why it is throwing from there
in values.yaml
Copy code
encryptionKey:
      secretRef: "datahub-encryption-secrets"
      secretKey: "encryption_key_secret"
      # Set to false if you'd like to provide your own secret.
      provisionSecret: true
@bulky-electrician-72362 did u find anything what is going wrong
b
so I just checked: the template you link is not the one you are using. I checkout the master branch and the file
Copy code
{{- $secret := lookup "v1" "Secret" .Release.Namespace "datahub-encryption-secrets" -}}
{{- $data := $secret.data | default dict -}}
{{- with .Values.global.datahub.encryptionKey.provisionSecret }}

{{- if .enabled }}
apiVersion: v1
kind: Secret
metadata:
  name: "datahub-encryption-secrets"
type: Opaque
data: 
  {{- if .autoGenerate }}
  encryption_key_secret: {{ get $data "encryption_key_secret" | default (randAlphaNum 20 | b64enc | quote) }}
  {{- else }}
  encryption_key_secret: {{ .secretValues.encryptionKey | b64enc | quote }}
  {{- end }}

{{- end }}
{{- end -}}
line 5 alines with your error:
Error: INSTALLATION FAILED: template: datahub/templates/datahub-encryption-secrets.yml:5:7: executing "datahub/templates/datahub-encryption-secrets.yml" at <.enabled>: can't evaluate field enabled in type bool
Copy code
encryptionKey:
      secretRef: "datahub-encryption-secrets"
      secretKey: "encryption_key_secret"
      # Set to false if you'd like to provide your own secret.
      provisionSecret:
         enabled: true
this should be in your values.yaml
c
so how can i refer to old template