Files
Cedric Lamoriniere 8884cab443 fix daemonset generation if datadog.securityContext==nil (#23146)
If the `datadog.securityContext` value is set to `nil` instead of `{}`
when a user want to remove the default `securityContext`, helm is not
able to generate the Daemonset manifest.

To support this configuration we have change how we test the value.
With the new `{{ if ...}}` check we don't check the second comparison
if the first already return false.

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2020-07-10 02:49:48 -07:00

7 lines
181 B
YAML

# Test the support of `securitContext` set to `nil`
datadog:
apiKey: "00000000000000000000000000000000"
appKey: "0000000000000000000000000000000000000000"
securityContext: