Check whether parameter.cmd is nill for sidecar trait (#1575)

This commit is contained in:
白联
2021-04-28 14:48:25 +08:00
committed by GitHub
parent fd44069a21
commit b76a3f3f42
2 changed files with 10 additions and 6 deletions
+5 -3
View File
@@ -1,9 +1,11 @@
patch: {
// +patchKey=name
spec: template: spec: containers: [{
name: parameter.name
image: parameter.image
command: parameter.cmd
name: parameter.name
image: parameter.image
if parameter.cmd != _|_ {
command: parameter.cmd
}
if parameter["volumes"] != _|_ {
volumeMounts: [ for v in parameter.volumes {
{