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