Try adding a ClusterRoleBinding within CI #6

Merged
allanger merged 8 commits from refs/pull/6/head into main 2023-02-19 09:59:20 +00:00
Showing only changes of commit 74560616e2 - Show all commits

View File

@ -22,7 +22,6 @@ steps:
commands:
- mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- kubectl config get-contexts
- helmfile -e badhouseplants diff
- name: Diff eterosoft
@ -58,7 +57,9 @@ steps:
commands:
- mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- kubectl create clusterrolebinding $DRONE_COMMIT --clusterrole=cluster-admin --serviceaccount=drone-service:default
- helmfile -e badhouseplants apply
- kubectl delete clusterrolebinding $DRONE_COMMIT
- name: Apply eterosoft
image: ghcr.io/helmfile/helmfile:canary