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

Helm: support for complex values #2400

Closed
manusa opened this issue Sep 28, 2023 · 0 comments · Fixed by #2407
Closed

Helm: support for complex values #2400

manusa opened this issue Sep 28, 2023 · 0 comments · Fixed by #2407
Assignees
Milestone

Comments

@manusa
Copy link
Member

manusa commented Sep 28, 2023

Description

Follow up on #2200
Requires #2402

Be able to provide through Helm values fragments complex values such as annotations or arrays.

# values.helm.yaml
annotations:
  example.org/one: one
  example.org/two: two

With a fragment such that

# deployment.yaml
metadata:
  annotations:
    ${annotations}

Can be processed by providing a Helm parameter:

// build.gradle
kubernetes {
  helm {
    parameters = [{
      name = 'annotations'
      value = '{{- toYaml .Values.annotations | nindent 4 }}'
    }]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant