Commit 4afb61d
authored
feat(atlantis): allow restartPolicy on containers for native sidecars (#563)
The bundled values.schema.json carries an older k8s Container definition (additionalProperties: false) that predates the restartPolicy field added to Container in k8s 1.28. This rejected init containers declared as native sidecars (an initContainers entry with restartPolicy: Always):
at '/initContainers/0': additional properties 'restartPolicy' not allowed
Add restartPolicy to the Container definition so initContainers and extraContainers can declare native sidecars. Additive and renders nothing differently by default. Adds a statefulset unittest covering the case.
Signed-off-by: DrFaust92 <ilia.lazebnik@placer.ai>1 parent f543305 commit 4afb61d
3 files changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
261 | 275 | | |
262 | 276 | | |
263 | 277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1620 | 1620 | | |
1621 | 1621 | | |
1622 | 1622 | | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
1623 | 1627 | | |
1624 | 1628 | | |
1625 | 1629 | | |
| |||
0 commit comments