mittwald / kube-httpcache

Varnish Reverse Proxy on Kubernetes
MIT License
298 stars 73 forks source link

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

Open olivermack opened 1 year ago

olivermack commented 1 year ago

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

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: