disabling TLS support in the chart is tricky #87
Labels
area/dev-productivity
Developer productivity related (how to improve development)
exp/beginner
Issue that requires only basic skills
needs/second-opinion
Needs second review by someone else
platform/all
priority/3
Priority (lower number equals higher priority)
We previously discussed about using the
tls
field as a toggle to turn on/off the tls support in #59 (comment)Now while we're moving from our internal chart to this one, we realised disabling TLS is quite tricky. Given that helm will merge dictionaries, that actually makes it hard to simply remove a field inside an override file:
805b0ab#diff-f18d9ef27be2f36a73a018900706456eR42
Deploying the chart with a values file with
tls: {}
content wont overwrite the field in the default values file since helm uses merge strategy for dicts.So I can see several options here:
tls
key in the chart's default values.yaml to{}
and comment out anything under the key.I personally prefer to go with the 2nd option since it's a well known pattern in most charts, and also chart will work as is without any explicit parameters, for now people have to generate certs and create secrets before being able to use the chart. But i don't have a strong opinion for either way.
Reproduce issue
Here is an example about how it can impact the non-tls scenario:
Workaround
For now we applied the workaround to assign an empty string to the
tls
key in our override (so we usetls: ""
in our values file). Here is our workaround:The text was updated successfully, but these errors were encountered: