Skip to content

Commit

Permalink
change kubectl to uds zarf tools kubectl (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: zamaz <71521611+zachariahmiller@users.noreply.github.com>
  • Loading branch information
ericwyles and zachariahmiller authored Feb 23, 2024
1 parent 668cf25 commit f995554
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ components:
actions:
onDeploy:
before:
- cmd: kubectl get secret gitlab-gitlab-runner-secret -n gitlab -o=jsonpath={.data.runner-registration-token} | base64 -d
- cmd: uds zarf tools kubectl get secret gitlab-gitlab-runner-secret -n gitlab -o=jsonpath={.data.runner-registration-token} | base64 -d
setVariables:
- name: RUNNER_REGISTRATION_TOKEN
- cmd: kubectl create namespace gitlab-runner || true
- cmd: kubectl create secret generic gitlab-gitlab-runner-secret --namespace=gitlab-runner --from-literal=runner-registration-token="${ZARF_VAR_RUNNER_REGISTRATION_TOKEN}" --from-literal=runner-token="" --v=9 || true
- cmd: uds zarf tools kubectl create namespace gitlab-runner || true
- cmd: uds zarf tools kubectl create secret generic gitlab-gitlab-runner-secret --namespace=gitlab-runner --from-literal=runner-registration-token="${ZARF_VAR_RUNNER_REGISTRATION_TOKEN}" --from-literal=runner-token="" --v=9 || true

- name: gitlab-runner
required: true
Expand Down

0 comments on commit f995554

Please sign in to comment.