From ac53bd3ea085b1ae79a49885451f0ddbdbcb336c Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Fri, 28 Oct 2022 16:00:05 +0200 Subject: [PATCH] [GitHub Actions] Fix secret. --- scripts/deploy-gh-runners.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/deploy-gh-runners.sh b/scripts/deploy-gh-runners.sh index 1e3bc2d6..6971318c 100755 --- a/scripts/deploy-gh-runners.sh +++ b/scripts/deploy-gh-runners.sh @@ -44,16 +44,16 @@ export SVC=controller-manager $SCDIR/ensure-ns.sh $NS kubectl apply -f $SCDIR/k8s/pod-priorities.yaml kubectl apply -f $SCDIR/k8s/pod-priorities.yaml --namespace $NS -echo "Create secret $SVC in $NS" -$SCDIR/delete-secret.sh $SVC $NS +echo "Create secret controller-manager-secret in $NS" +$SCDIR/delete-secret.sh controller-manager-secret $NS if [ "$GH_ARC_PAT" != "" ]; then echo "Using GH_ARC_PAT as github_token" - kubectl create secret generic "$SVC" \ + kubectl create secret generic controller-manager-secret \ --namespace $NS \ --from-literal=github_token="$GH_ARC_PAT" else echo "Using GitHub App $GH_ARC_APP_ID / $GH_ARC_INSTALLATION_ID" - kubectl create secret generic "$SVC" \ + kubectl create secret generic controller-manager-secret \ --namespace $NS \ --from-literal=github_app_id="${GH_ARC_APP_ID}" \ --from-literal=github_app_installation_id="${GH_ARC_INSTALLATION_ID}" \