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

BUG: unable to set podLabels #174

Open
rayanebel opened this issue Jul 19, 2022 · 0 comments
Open

BUG: unable to set podLabels #174

rayanebel opened this issue Jul 19, 2022 · 0 comments

Comments

@rayanebel
Copy link

Hi,

We are not able to set podLabels in the clamav helm chart. After a quick search this bug is due to the usage of indent function instead of nindent

You can see this here

To reproduce the bug:

values.yaml

podLabels:
  test: test
helm template wiremind/clamav -f values.yaml --debug

Error: YAML parse error on clamav/templates/statefulset.yaml: error converting YAML to JSON: yaml: line 23: mapping values are not allowed in this context
helm.go:84: [debug] error converting YAML to JSON: yaml: line 23: mapping values are not allowed in this context

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: release-name-clamav
  labels:
    app.kubernetes.io/name: clamav
    helm.sh/chart: clamav-2.4.1
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/version: "1.9"
    app.kubernetes.io/managed-by: Helm
spec:
  replicas: 1
  serviceName: release-name-clamav
  selector:
    matchLabels:
      app.kubernetes.io/name: clamav
      app.kubernetes.io/instance: release-name
  template:
    metadata:
      labels:
        app.kubernetes.io/name: clamav
        app.kubernetes.io/instance: release-name
                test: test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant