Skip to content
New issue

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

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

Already on GitHub? # to your account

Unleaseh chart service template generates invalid indent for annotations #187

Open
sshort opened this issue Feb 6, 2025 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@sshort
Copy link

sshort commented Feb 6, 2025

Describe the bug

Setting values for the service.annotations yields an indent of 8 characters which is invalid yaml. This is because it is using the indent function instead of the nindent function.

Service template:

  {{- with .Values.service.annotations }}
  annotations:
    {{ toYaml . | indent 4 }}
  {{- end }}

Compare with the deployment template

  {{- with .Values.deploymentAnnotations }}
  annotations:
    {{- toYaml . | nindent 4 }}
  {{- end }}

Steps to reproduce the bug

No response

Expected behavior

No response

Logs, error output, etc.

Screenshots

No response

Additional context

No response

Unleash version

No response

Subscription type

None

Hosting type

None

SDK information (language and version)

No response

@sshort sshort added the bug Something isn't working label Feb 6, 2025
@chriswk chriswk self-assigned this Feb 11, 2025
@chriswk chriswk moved this from New to Todo in Issues and PRs Feb 11, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants