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}" \