mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
33 lines
610 B
CUE
33 lines
610 B
CUE
patch: {
|
|
// +patchKey=name
|
|
spec: template: spec: containers: [{
|
|
name: parameter.name
|
|
image: parameter.image
|
|
command: parameter.cmd
|
|
if parameter["volumes"] != _|_ {
|
|
volumeMounts: [ for v in parameter.volumes {
|
|
{
|
|
mountPath: v.path
|
|
name: v.name
|
|
}
|
|
}]
|
|
}
|
|
}]
|
|
}
|
|
parameter: {
|
|
// +usage=Specify the name of sidecar container
|
|
name: string
|
|
|
|
// +usage=Specify the image of sidecar container
|
|
image: string
|
|
|
|
// +usage=Specify the commands run in the sidecar
|
|
cmd?: [...string]
|
|
|
|
// +usage=Specify the shared volume path
|
|
volumes?: [...{
|
|
name: string
|
|
path: string
|
|
}]
|
|
}
|