X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=xapp_onboarder%2Fxapp_onboarder%2Fresources%2Fxapp-std%2Ftemplates%2Fdeployment.yaml;h=9d4de1ed4268bc5d9b0692657c3ddf23705daa03;hb=7a302bb842b42e74c9bfd1b81cca1b8af754be9e;hp=defb6b408596b9b54e114e387bf0bd62bffbb22b;hpb=cd4b9aaa9aa6f3f0bfef09c4808315f10a385310;p=it%2Fdev.git diff --git a/xapp_onboarder/xapp_onboarder/resources/xapp-std/templates/deployment.yaml b/xapp_onboarder/xapp_onboarder/resources/xapp-std/templates/deployment.yaml index defb6b4..9d4de1e 100644 --- a/xapp_onboarder/xapp_onboarder/resources/xapp-std/templates/deployment.yaml +++ b/xapp_onboarder/xapp_onboarder/resources/xapp-std/templates/deployment.yaml @@ -56,7 +56,24 @@ spec: - 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 }}