From 698a3ce4d0a1b0106ba76650c354e5a06d4675a6 Mon Sep 17 00:00:00 2001 From: Silvester Wainaina Date: Mon, 20 Jun 2022 20:20:18 +0000 Subject: [PATCH] fix: update `kubectl --dry-run=client` as `--dry-run` is deprecated --- src/bin/auto-deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/auto-deploy b/src/bin/auto-deploy index cd5de11..999b82d 100755 --- a/src/bin/auto-deploy +++ b/src/bin/auto-deploy @@ -145,7 +145,7 @@ function create_secret() { --docker-username="${CI_DEPLOY_USER:-$CI_REGISTRY_USER}" \ --docker-password="${CI_DEPLOY_PASSWORD:-$CI_REGISTRY_PASSWORD}" \ --docker-email="$GITLAB_USER_EMAIL" \ - -o yaml --dry-run | kubectl replace -n "$KUBE_NAMESPACE" --force -f - + -o yaml --dry-run=client | kubectl replace -n "$KUBE_NAMESPACE" --force -f - } # shellcheck disable=SC2086 -- GitLab