This repository has been archived on 2024-09-11. You can view files and clone it, but cannot push or open issues or pull requests.
k8s-cluster-config/.woodpecker/.helmfile.yml

45 lines
1015 B
YAML
Raw Normal View History

2023-10-20 19:55:21 +00:00
when:
event: push
2024-02-11 07:39:37 +00:00
.k8s-limits: &k8s-limits
backend_options:
kubernetes:
resources:
requests:
2024-02-11 08:00:05 +00:00
memory: 1024Mi
2024-02-11 07:57:07 +00:00
cpu: 1000m
limits:
2024-02-11 08:00:05 +00:00
memory: 1512Mi
2024-02-11 07:57:07 +00:00
cpu: 1500m
2024-02-11 07:39:37 +00:00
2023-10-20 19:55:21 +00:00
matrix:
ENVIRONMENT:
- badhouseplants
- etersoft
steps:
diff:
2024-02-11 07:39:37 +00:00
<<: *k8s-limits
2023-10-20 19:55:21 +00:00
image: ghcr.io/helmfile/helmfile:canary
secrets: [sops_age_key, kubeconfig_content]
when:
- branch:
exclude:
- main
commands:
- mkdir $HOME/.kube
- echo "$KUBECONFIG_CONTENT" > $HOME/.kube/config && chmod 0600 $HOME/.kube/config
- helmfile -e $ENVIRONMENT diff --suppress-secrets
2023-11-04 18:57:56 +00:00
apply:
2024-02-11 07:39:37 +00:00
<<: *k8s-limits
2023-10-20 19:55:21 +00:00
image: ghcr.io/helmfile/helmfile:canary
secrets: [sops_age_key, kubeconfig_content]
when:
- branch:
include:
- main
commands:
- mkdir $HOME/.kube
- echo "$KUBECONFIG_CONTENT" > $HOME/.kube/config && chmod 0600 $HOME/.kube/config
2023-11-04 18:57:56 +00:00
- helmfile -e $ENVIRONMENT apply