forked from helm/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix daemonset generation if
datadog.securityContext==nil
(helm#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 <[email protected]> Signed-off-by: Adrien Loiseau <[email protected]>
- Loading branch information
1 parent
79841ac
commit f74a5a0
Showing
4 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Test the support of `securitContext` set to `nil` | ||
datadog: | ||
apiKey: "00000000000000000000000000000000" | ||
appKey: "0000000000000000000000000000000000000000" | ||
|
||
securityContext: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters