Charts: [stable/concourse] AWS SSM Syntax Error

Created on 12 Nov 2018  路  4Comments  路  Source: helm/charts

Is this a BUG REPORT

The credentialManager references in web-deployment.yaml#L291 and web-deployment.yaml#L295 cause a Go Templating syntax error. I does not matter if the values are specified or not. This issue is a simple typo in the web-deployment.yaml file.

            {{- if .Values.credentialManager.awsSsm.pipelineSecretTemplate }}
            - name: CONCOURSE_AWS_SSM_PIPELINE_SECRET_TEMPLATE
              value: {{ .Values.credentialManager.awsSsm.pipelineSecretTemplate | quote }}
            {{- end }}
            {{- if .Values.credentialManager.awsSsm.teamSecretTemplate }}
            - name: CONCOURSE_AWS_SSM_TEAM_SECRET_TEMPLATE
              value: {{ .Values.credentialManager.awsSsm.teamSecretTemplate | quote }}
            {{- end }}

The error message while trying to install the Helm Concourse Chart using the Helm provider is:

* helm_release.concourse: rpc error: code = Unknown desc = render error in "concourse/templates/web-deployment.yaml": template: concourse/templates/web-deployment.yaml:289:26: executing "concourse/templates/web-deployment.yaml" at <.Values.credentialMa...>: can't evaluate field awsSsm in type interface {}

Version of Helm and Kubernetes:

Kubernetes 1.10 (AWS EKS)

Helm v2.11.0
Tiller v2.11.0

Which chart:

Helm Chart Concourse v3.x (Concourse 4).

What happened:

Unable to use Helm Chart Concourse v3.x (Concourse 4) together with the AWS SSM Parameter Store

What you expected to happen:

Able to use AWS SSM Parameter Store together with Helm Chart Concourse v3.x (Concourse 4).

How to reproduce it (as minimally and precisely as possible):

Insert the desired configuration in to use the awsSsm values in the values.yaml for the Concourse chart and try to deploy it.

...
concourse:
  web:

    awsSsm:
      # Enable the use of AWS SSM.
      #
      enabled: true

      ## AWS region to use when reading from SSM
      ##
      region: "us-east-1"
...
secrets:
  awsSsmAccessKey: "<your-aws-access-key>"
  awsSsmSecretKey: "<your-aws-secret-key>"
...

The awsSsmAccessKey and awsSsmSecretKey are normal AWS API Credentials.

Anything else we need to know:

This issue was not fixed with: https://github.com/helm/charts/pull/8423

Most helpful comment

I would benefit from this being fixed - please team look into this.

All 4 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

This is still an issue.

I would benefit from this being fixed - please team look into this.

Issue has been open for almost 2 months, the PR is simply fixing the typo so we can use SSM with Concourse. Please team can we get this merged in.

Was this page helpful?
0 / 5 - 0 ratings