Commit 17f6d92
authored
Fixes security context rendering of empty object value. (#2007)
This will allow to render `securityContext: {}` and `containerSecurityContext: {}.
In Openshift leaving security context as an empty object sets the right values to the pods and containers to be in compliance with the Security Context Constrains (SCC) in the namespace.
https://docs.openshift.com/container-platform/4.15/authentication/managing-security-context-constraints.html
Signed-off-by: pjuarezd <pjuarezd@users.noreply.github.com>1 parent 4b5381b commit 17f6d92
1 file changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | | - | |
| 73 | + | |
72 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
73 | 78 | | |
74 | | - | |
| 79 | + | |
| 80 | + | |
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
| |||
175 | 181 | | |
176 | 182 | | |
177 | 183 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
183 | 190 | | |
184 | 191 | | |
0 commit comments