2023-02-18 17:46:04 +00:00
|
|
|
---
|
|
|
|
# ----------------------------------------------
|
|
|
|
# -- Helmfile diff changes
|
|
|
|
# ----------------------------------------------
|
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: Show helmfile diffs
|
2023-02-19 10:45:25 +00:00
|
|
|
environment:
|
|
|
|
HELM_SECRETS_VERSION: v4.3.0
|
2023-02-18 17:46:04 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Diff badhouseplants
|
|
|
|
image: ghcr.io/helmfile/helmfile:canary
|
|
|
|
environment:
|
|
|
|
KUBECONFIG_CONTENT:
|
|
|
|
from_secret: KUBECONFIG_CONTENT
|
|
|
|
commands:
|
2023-02-19 10:45:25 +00:00
|
|
|
- helm plugin install https://github.com/jkroepke/helm-secrets --version $HELM_SECRETS_VERSION
|
2023-02-18 17:46:04 +00:00
|
|
|
- mkdir $HOME/.kube
|
|
|
|
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
|
|
|
- helmfile -e badhouseplants diff
|
|
|
|
|
|
|
|
- name: Diff eterosoft
|
|
|
|
image: ghcr.io/helmfile/helmfile:canary
|
|
|
|
environment:
|
|
|
|
KUBECONFIG_CONTENT:
|
|
|
|
from_secret: KUBECONFIG_CONTENT
|
|
|
|
commands:
|
2023-02-19 10:45:25 +00:00
|
|
|
- helm plugin install https://github.com/jkroepke/helm-secrets --version $HELM_SECRETS_VERSION
|
2023-02-18 17:46:04 +00:00
|
|
|
- mkdir $HOME/.kube
|
|
|
|
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
|
|
|
- helmfile -e etersoft diff
|
|
|
|
|
|
|
|
---
|
|
|
|
# ----------------------------------------------
|
|
|
|
# -- Helmfile apply changes
|
|
|
|
# ----------------------------------------------
|
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: Apply helmfile changes
|
2023-02-19 10:45:25 +00:00
|
|
|
environment:
|
|
|
|
HELM_SECRETS_VERSION: v4.3.0
|
2023-02-18 17:46:04 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
steps:
|
2023-02-18 17:48:59 +00:00
|
|
|
- name: Apply badhouseplants
|
2023-02-18 17:46:04 +00:00
|
|
|
image: ghcr.io/helmfile/helmfile:canary
|
|
|
|
environment:
|
|
|
|
KUBECONFIG_CONTENT:
|
|
|
|
from_secret: KUBECONFIG_CONTENT
|
|
|
|
commands:
|
2023-02-19 10:45:25 +00:00
|
|
|
- helm plugin install https://github.com/jkroepke/helm-secrets --version $HELM_SECRETS_VERSION
|
2023-02-18 17:46:04 +00:00
|
|
|
- mkdir $HOME/.kube
|
|
|
|
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
|
|
|
- helmfile -e badhouseplants apply
|
|
|
|
|
2023-02-18 17:48:59 +00:00
|
|
|
- name: Apply eterosoft
|
2023-02-18 17:46:04 +00:00
|
|
|
image: ghcr.io/helmfile/helmfile:canary
|
|
|
|
environment:
|
|
|
|
KUBECONFIG_CONTENT:
|
|
|
|
from_secret: KUBECONFIG_CONTENT
|
|
|
|
commands:
|
2023-02-19 10:45:25 +00:00
|
|
|
- helm plugin install https://github.com/jkroepke/helm-secrets --version $HELM_SECRETS_VERSION
|
2023-02-18 17:46:04 +00:00
|
|
|
- mkdir $HOME/.kube
|
|
|
|
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
|
|
|
|
- helmfile -e etersoft apply
|
|
|
|
|