Start using CDH (#42)
Reviewed-on: https://git.badhouseplants.net/badhouseplants/k8s-cluster-config/pulls/42
This commit is contained in:
parent
a6f49a084f
commit
a2bd88b8b0
112
.drone.yml
112
.drone.yml
@ -11,32 +11,32 @@ trigger:
|
|||||||
exclude:
|
exclude:
|
||||||
- main
|
- main
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Diff badhouseplants
|
- name: Diff badhouseplants
|
||||||
image: ghcr.io/helmfile/helmfile:canary
|
image: ghcr.io/helmfile/helmfile:canary
|
||||||
environment:
|
environment:
|
||||||
KUBECONFIG_CONTENT:
|
KUBECONFIG_CONTENT:
|
||||||
from_secret: KUBECONFIG_CONTENT
|
from_secret: KUBECONFIG_CONTENT
|
||||||
SOPS_AGE_KEY:
|
SOPS_AGE_KEY:
|
||||||
from_secret: SOPS_AGE_KEY
|
from_secret: SOPS_AGE_KEY
|
||||||
commands:
|
commands:
|
||||||
- mkdir $HOME/.kube
|
- mkdir $HOME/.kube
|
||||||
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
||||||
- helmfile -e badhouseplants diff --suppress-secrets
|
- helmfile -e badhouseplants diff --suppress-secrets
|
||||||
|
|
||||||
- name: Diff eterosoft
|
- name: Diff eterosoft
|
||||||
image: ghcr.io/helmfile/helmfile:canary
|
image: ghcr.io/helmfile/helmfile:canary
|
||||||
environment:
|
environment:
|
||||||
SOPS_AGE_KEY:
|
SOPS_AGE_KEY:
|
||||||
from_secret: SOPS_AGE_KEY
|
from_secret: SOPS_AGE_KEY
|
||||||
KUBECONFIG_CONTENT:
|
KUBECONFIG_CONTENT:
|
||||||
from_secret: KUBECONFIG_CONTENT
|
from_secret: KUBECONFIG_CONTENT
|
||||||
commands:
|
commands:
|
||||||
- mkdir $HOME/.kube
|
- mkdir $HOME/.kube
|
||||||
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
||||||
- helmfile -e etersoft diff --suppress-secrets
|
- helmfile -e etersoft diff --suppress-secrets
|
||||||
|
|
||||||
---
|
---
|
||||||
# ----------------------------------------------
|
# ----------------------------------------------
|
||||||
@ -50,30 +50,50 @@ trigger:
|
|||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Apply badhouseplants
|
- name: Apply badhouseplants
|
||||||
image: ghcr.io/helmfile/helmfile:canary
|
image: ghcr.io/helmfile/helmfile:canary
|
||||||
environment:
|
environment:
|
||||||
KUBECONFIG_CONTENT:
|
KUBECONFIG_CONTENT:
|
||||||
from_secret: KUBECONFIG_CONTENT
|
from_secret: KUBECONFIG_CONTENT
|
||||||
SOPS_AGE_KEY:
|
SOPS_AGE_KEY:
|
||||||
from_secret: SOPS_AGE_KEY
|
from_secret: SOPS_AGE_KEY
|
||||||
commands:
|
commands:
|
||||||
- mkdir $HOME/.kube
|
- mkdir $HOME/.kube
|
||||||
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
||||||
- helmfile -e badhouseplants apply --suppress-secrets
|
- helmfile -e badhouseplants apply --suppress-secrets
|
||||||
|
|
||||||
- name: Apply eterosoft
|
- name: Apply eterosoft
|
||||||
image: ghcr.io/helmfile/helmfile:canary
|
image: ghcr.io/helmfile/helmfile:canary
|
||||||
environment:
|
environment:
|
||||||
KUBECONFIG_CONTENT:
|
KUBECONFIG_CONTENT:
|
||||||
from_secret: KUBECONFIG_CONTENT
|
from_secret: KUBECONFIG_CONTENT
|
||||||
SOPS_AGE_KEY:
|
SOPS_AGE_KEY:
|
||||||
from_secret: SOPS_AGE_KEY
|
from_secret: SOPS_AGE_KEY
|
||||||
commands:
|
commands:
|
||||||
- mkdir $HOME/.kube
|
- mkdir $HOME/.kube
|
||||||
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
||||||
- helmfile -e etersoft apply --suppress-secrets
|
- helmfile -e etersoft apply --suppress-secrets
|
||||||
|
|
||||||
|
---
|
||||||
|
# ----------------------------------------------
|
||||||
|
# -- Check da helm pipeline
|
||||||
|
# ----------------------------------------------
|
||||||
|
kind: pipeline
|
||||||
|
type: kubernetes
|
||||||
|
name: Check helmfiles
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- cron
|
||||||
|
cron:
|
||||||
|
- daily
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check badhouseplants
|
||||||
|
image: ghcr.io/allanger/check-da-helm-helmfile:stable
|
||||||
|
environment:
|
||||||
|
RUST_LOG: info
|
||||||
|
commands:
|
||||||
|
- cdh --kind helmfile -p $DRONE_WORKSPACE/helmfile.yaml --helmfile-environment badhouseplants -o
|
||||||
|
Reference in New Issue
Block a user