From 3161c67e6f3736502c858b607e6f2aecd1aaa784 Mon Sep 17 00:00:00 2001 From: Stephen Adams Date: Wed, 10 Jan 2024 12:10:59 -0500 Subject: [PATCH] fix: make command an array in tls test Signed-off-by: Stephen Adams --- .../test-tls-web-services/01-assert.yaml | 48 ++++++++++--------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/tests/kuttl/test-tls-web-services/01-assert.yaml b/tests/kuttl/test-tls-web-services/01-assert.yaml index d4b14880b..18b2342f5 100644 --- a/tests/kuttl/test-tls-web-services/01-assert.yaml +++ b/tests/kuttl/test-tls-web-services/01-assert.yaml @@ -21,7 +21,8 @@ spec: template: spec: initContainers: - - volumeMounts: + - name: initContainer + volumeMounts: - mountPath: /cdapp/ name: config-secret - mountPath: /cdapp/certs @@ -29,34 +30,35 @@ spec: readOnly: true containers: - env: - - name: ENV_VAR_1 - value: "env_var_1" - - name: ENV_VAR_2 - value: "env_var_2" - - name: ACG_CONFIG - value: /cdapp/cdappconfig.json - command: /usr/bin/caddy + - name: ENV_VAR_1 + value: "env_var_1" + - name: ENV_VAR_2 + value: "env_var_2" + - name: ACG_CONFIG + value: /cdapp/cdappconfig.json + command: + - /usr/bin/caddy args: - - run - - --config - - /etc/caddy/caddy.json + - run + - --config + - /etc/caddy/caddy.json image: quay.io/cloudservices/caddy-ubi:latest imagePullPolicy: IfNotPresent name: caddy-tls ports: - - containerPort: 8800 - name: tls - protocol: TCP - - containerPort: 18800 - name: tls-private - protocol: TCP + - containerPort: 8800 + name: tls + protocol: TCP + - containerPort: 18800 + name: tls-private + protocol: TCP volumeMounts: - - mountPath: /certs - name: caddy-tls - readOnly: true - - mountPath: /etc/caddy - name: caddy-config - readOnly: true + - mountPath: /certs + name: caddy-tls + readOnly: true + - mountPath: /etc/caddy + name: caddy-config + readOnly: true volumes: - name: config-secret secret: