Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CY-5073] Is there any way of excluding non {{ssm variables? #45

Closed
catalinpan opened this issue Oct 2, 2021 · 3 comments
Closed

[CY-5073] Is there any way of excluding non {{ssm variables? #45

catalinpan opened this issue Oct 2, 2021 · 3 comments
Labels
jira-issue Issue tracked on JIRA

Comments

@catalinpan
Copy link

Hi,

I'm trying to deploy a chart which contains more variables passed as config.
I get the error:

failed exit status 1: Error: template: ssmtpl:78: function "include" not defined

Is there any way in helm-ssm to force the parsing only for "{{ssm ....}}"?

>>Here<< is an example.

hub:
  image:
    registry: docker.io
  configuration: |
    Chart:
      Name: {{ .Chart.Name }}
      Version: {{ .Chart.Version }}
    Release:
      Name: {{ .Release.Name }}
      Namespace: {{ .Release.Namespace }}
      Service: {{ .Release.Service }}
    hub:
      config:
        JupyterHub:
          ...................
          Authenticator:
            admin_users:
              - {{ .Values.hub.adminUser }}
      ....................
      db:
        type: postgres
        url: postgresql://{{ ternary .Values.postgresql.postgresqlUsername .Values.externalDatabase.user .Values.postgresql.enabled }}@{{ ternary (include "jupyterhub.postgresql.fullname" .) .Values.externalDatabase.host .Values.postgresql.enabled }}:{{ ternary "5432" .Values.externalDatabase.port .Values.postgresql.enabled }}/{{ ternary .Values.postgresql.postgresqlDatabase .Values.externalDatabase.database .Values.postgresql.enabled }}
      ........................
    singleuser:
      podNameTemplate: {{ include "common.names.fullname" . }}-jupyter-{username}
      {{- if .Values.singleuser.tolerations }}
      extraTolerations: {{- include "common.tplvalues.render" ( dict "value" .Values.singleuser.tolerations "context" $) | nindent 4 }}
      {{- end }}
      {{- if .Values.singleuser.nodeSelector }}
      nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.singleuser.nodeSelector "context" $) | nindent 4 }}
      {{- end }}

Many thanks

@github-actions github-actions bot changed the title Is there any way of excluding non {{ssm variables? [CY-5073] Is there any way of excluding non {{ssm variables? Oct 2, 2021
@github-actions github-actions bot added the jira-issue Issue tracked on JIRA label Oct 2, 2021
@github-actions
Copy link

github-actions bot commented Oct 2, 2021

Internal ticket created : CY-5073

@sankhyan
Copy link

Internal ticket created : CY-5073

i got this same issue, can i have a solution for this please

@hanzov69
Copy link

I too am running in to this issue - disappointing, we've been using it for a bunch of our charts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-issue Issue tracked on JIRA
Projects
None yet
Development

No branches or pull requests

3 participants