Install helm-secrets plugin

This commit is contained in:
Nikolai Rodionov 2023-02-19 11:45:25 +01:00
parent 932a0183f5
commit e5e856741c

View File

@ -5,6 +5,8 @@
kind: pipeline
type: kubernetes
name: Show helmfile diffs
environment:
HELM_SECRETS_VERSION: v4.3.0
trigger:
branch:
@ -20,6 +22,7 @@ steps:
KUBECONFIG_CONTENT:
from_secret: KUBECONFIG_CONTENT
commands:
- helm plugin install https://github.com/jkroepke/helm-secrets --version $HELM_SECRETS_VERSION
- mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- helmfile -e badhouseplants diff
@ -30,6 +33,7 @@ steps:
KUBECONFIG_CONTENT:
from_secret: KUBECONFIG_CONTENT
commands:
- helm plugin install https://github.com/jkroepke/helm-secrets --version $HELM_SECRETS_VERSION
- mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- helmfile -e etersoft diff
@ -41,6 +45,8 @@ steps:
kind: pipeline
type: kubernetes
name: Apply helmfile changes
environment:
HELM_SECRETS_VERSION: v4.3.0
trigger:
branch:
@ -55,6 +61,7 @@ steps:
KUBECONFIG_CONTENT:
from_secret: KUBECONFIG_CONTENT
commands:
- helm plugin install https://github.com/jkroepke/helm-secrets --version $HELM_SECRETS_VERSION
- mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- helmfile -e badhouseplants apply
@ -65,6 +72,7 @@ steps:
KUBECONFIG_CONTENT:
from_secret: KUBECONFIG_CONTENT
commands:
- helm plugin install https://github.com/jkroepke/helm-secrets --version $HELM_SECRETS_VERSION
- mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- helmfile -e etersoft apply