"name": "o-ran-sc/ric-app-mc",
"tag": "1.0.2"
},
- "command": "/playpen/bin/container_start.sh"
+ "command": ["/bin/sh"],
+ "args": ["-c", "/playpen/bin/container_start.sh"]
}
],
"livenessProbe": {
},
"command": {
"$id": "#/properties/containers/items/properties/command",
- "type": "string",
- "title": "Command To Run The xApp Container",
- "default": "command",
- "examples": [
- "command"
+ "type": "array",
+ "items": [
+ {
+ "$id": "#/properties/containers/items/properties/command/item",
+ "type": "string",
+ "title": "The Command Item",
+ "default": "/bin/sh",
+ "examples": [
+ "/bin/sh"
+ ]
+ }
+ ]
+ },
+ "args": {
+ "$id": "#/properties/containers/items/properties/args",
+ "type": "array",
+ "items": [
+ {
+ "$id": "#/properties/containers/items/properties/args/item",
+ "type": "string",
+ "title": "The Command Arguement Item",
+ "default": "-c",
+ "examples": [
+ "-c"
+ ]
+ }
]
}
}
- name: {{ $container.name }}
image: "{{ $container.image.registry }}/{{ $container.image.name }}:{{ $container.image.tag }}"
{{- if $container.command }}
- command: [{{ $container.command }}]
+ command: [
+ {{- range $command := $container.command -}}
+ {{- $command | quote -}}
+ {{- if ne $command (last $container.command) }}
+ {{- print ", " -}}
+ {{- end -}}
+ {{- end -}}
+ {{- print "]" -}}
+ {{- end}}
+ {{- if $container.args }}
+ args: [
+ {{- range $arg := $container.args -}}
+ {{- $arg | quote -}}
+ {{- if ne $arg (last $container.args) }}
+ {{- print ", " -}}
+ {{- end -}}
+ {{- end -}}
+ {{- print "]" -}}
{{- end}}
imagePullPolicy: {{ $.Values.image_pull_policy }}
{{- if $portlist }}