From 5a6842a33b4c2430580b5e8e7d9763db8bd384d4 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Wed, 1 Nov 2023 10:08:48 +0200 Subject: [PATCH] kinder: fix missing quotes in super-admin-tasks.yaml Without the quotes these (CMD) commands cannot be expanded properly. --- .../templates/workflows/super-admin-tasks.yaml | 12 ++++++------ kinder/ci/workflows/super-admin-tasks.yaml | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/kinder/ci/tools/update-workflows/templates/workflows/super-admin-tasks.yaml b/kinder/ci/tools/update-workflows/templates/workflows/super-admin-tasks.yaml index 04853d30..32bf6591 100644 --- a/kinder/ci/tools/update-workflows/templates/workflows/super-admin-tasks.yaml +++ b/kinder/ci/tools/update-workflows/templates/workflows/super-admin-tasks.yaml @@ -56,7 +56,7 @@ tasks: - -c - | set -x - CMD=docker exec {{ .vars.clusterName }}-control-plane-1 + CMD="docker exec {{ .vars.clusterName }}-control-plane-1" # Generate CA, and kubeconfig files ${CMD} kubeadm init phase certs ca || exit 1 @@ -109,7 +109,7 @@ tasks: - -c - | set -x - CMD=docker exec {{ .vars.clusterName }}-control-plane-1 + CMD="docker exec {{ .vars.clusterName }}-control-plane-1" # Both admin.conf and super-admin.conf must exist ${CMD} test -f /etc/kubernetes/admin.conf || exit 1 @@ -145,7 +145,7 @@ tasks: - -c - | set -x - CMD=docker exec {{ .vars.clusterName }}-control-plane-2 + CMD="docker exec {{ .vars.clusterName }}-control-plane-2" # admin.conf must exist ${CMD} test -f /etc/kubernetes/admin.conf || exit 1 @@ -182,7 +182,7 @@ tasks: - -c - | set -x - CMD=docker exec {{ .vars.clusterName }}-control-plane-1 + CMD="docker exec {{ .vars.clusterName }}-control-plane-1" # Both admin.conf and super-admin.conf must exist ${CMD} test -f /etc/kubernetes/admin.conf || exit 1 @@ -206,7 +206,7 @@ tasks: - -c - | set -x - CMD=docker exec {{ .vars.clusterName }}-control-plane-2 + CMD="docker exec {{ .vars.clusterName }}-control-plane-2" # admin.conf must exist ${CMD} test -f /etc/kubernetes/admin.conf || exit 1 @@ -278,7 +278,7 @@ tasks: - -c - | set -x - CMD=docker exec {{ .vars.clusterName }}-control-plane-1 + CMD="docker exec {{ .vars.clusterName }}-control-plane-1" # Both admin.conf and super-admin.conf must not exist after reset ${CMD} test -f /etc/kubernetes/admin.conf && exit 1 diff --git a/kinder/ci/workflows/super-admin-tasks.yaml b/kinder/ci/workflows/super-admin-tasks.yaml index 43f64aef..d6631f82 100644 --- a/kinder/ci/workflows/super-admin-tasks.yaml +++ b/kinder/ci/workflows/super-admin-tasks.yaml @@ -57,7 +57,7 @@ tasks: - -c - | set -x - CMD=docker exec {{ .vars.clusterName }}-control-plane-1 + CMD="docker exec {{ .vars.clusterName }}-control-plane-1" # Generate CA, and kubeconfig files ${CMD} kubeadm init phase certs ca || exit 1 @@ -110,7 +110,7 @@ tasks: - -c - | set -x - CMD=docker exec {{ .vars.clusterName }}-control-plane-1 + CMD="docker exec {{ .vars.clusterName }}-control-plane-1" # Both admin.conf and super-admin.conf must exist ${CMD} test -f /etc/kubernetes/admin.conf || exit 1 @@ -146,7 +146,7 @@ tasks: - -c - | set -x - CMD=docker exec {{ .vars.clusterName }}-control-plane-2 + CMD="docker exec {{ .vars.clusterName }}-control-plane-2" # admin.conf must exist ${CMD} test -f /etc/kubernetes/admin.conf || exit 1 @@ -183,7 +183,7 @@ tasks: - -c - | set -x - CMD=docker exec {{ .vars.clusterName }}-control-plane-1 + CMD="docker exec {{ .vars.clusterName }}-control-plane-1" # Both admin.conf and super-admin.conf must exist ${CMD} test -f /etc/kubernetes/admin.conf || exit 1 @@ -207,7 +207,7 @@ tasks: - -c - | set -x - CMD=docker exec {{ .vars.clusterName }}-control-plane-2 + CMD="docker exec {{ .vars.clusterName }}-control-plane-2" # admin.conf must exist ${CMD} test -f /etc/kubernetes/admin.conf || exit 1 @@ -279,7 +279,7 @@ tasks: - -c - | set -x - CMD=docker exec {{ .vars.clusterName }}-control-plane-1 + CMD="docker exec {{ .vars.clusterName }}-control-plane-1" # Both admin.conf and super-admin.conf must not exist after reset ${CMD} test -f /etc/kubernetes/admin.conf && exit 1