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

cacheExtraArgs suggests string but is initialized as map cannot overwrite table with non table for SNIP.cacheExtraArgs (map[])) #136

Open
olivermack opened this issue Nov 23, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@olivermack
Copy link

Describe the bug
The default values suggest to define a string for cacheExtraArgs - but due to the initialization as map Helm complains about a type mismatch:

cannot overwrite table with non table for {{SNIP}}.kube-httpcache.cacheExtraArgs (map[]))

ref: https://github.com/mittwald/kube-httpcache/blob/v0.7.0/chart/values.yaml#L50-L53

To Reproduce

  • add kube-httpcache as dependency of another helm chart
  • override the values / essentially comment in the sample values:
kube-httpcache:
  cacheExtraArgs: |
    - -v=8
    - -varnish-additional-parameters=vcc_allow_inline_c=on

https://github.com/mittwald/kube-httpcache/blob/v0.7.0/chart/values.yaml#L50-L53

Expected behavior

The chart should apply the extra args

Actual behavior

Applying the chart causes Helm to complain with a message like this:

coalesce.go:220: warning: cannot overwrite table with non table for {{SNIP}}.kube-httpcache.cacheExtraArgs (map[])

Environment:

  • Kubernetes version: 1.24.6
  • kube-httpcache version: v0.7.0
@olivermack olivermack added the bug Something isn't working label Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant