🚨(helm) fix helmfile lint
Latest release of helmfile is applying the change related before as a warning. Environnements must be before releases but not in the same document of repositories.
This commit is contained in:
4
.github/workflows/helmfile-linter.yaml
vendored
4
.github/workflows/helmfile-linter.yaml
vendored
@@ -11,7 +11,7 @@ jobs:
|
|||||||
helmfile-lint:
|
helmfile-lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/helmfile/helmfile:latest
|
image: ghcr.io/helmfile/helmfile:v0.171.0
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout repository
|
name: Checkout repository
|
||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
HELMFILE=src/helm/helmfile.yaml
|
HELMFILE=src/helm/helmfile.yaml
|
||||||
environments=$(awk '/environments:/ {flag=1; next} flag && NF {print} !NF {flag=0}' "$HELMFILE" | grep -E '^[[:space:]]{2}[a-zA-Z]+' | sed 's/^[[:space:]]*//;s/:.*//')
|
environments=$(awk 'BEGIN {in_env=0} /^environments:/ {in_env=1; next} /^---/ {in_env=0} in_env && /^ [^ ]/ {gsub(/^ /,""); gsub(/:.*$/,""); print}' "$HELMFILE")
|
||||||
for env in $environments; do
|
for env in $environments; do
|
||||||
echo "################### $env lint ###################"
|
echo "################### $env lint ###################"
|
||||||
helmfile -e $env -f $HELMFILE lint || exit 1
|
helmfile -e $env -f $HELMFILE lint || exit 1
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ and this project adheres to
|
|||||||
- 🐛(backend) refactor to fix filtering on children
|
- 🐛(backend) refactor to fix filtering on children
|
||||||
and descendants views #695
|
and descendants views #695
|
||||||
- 🐛(action) fix notify-argocd workflow #713
|
- 🐛(action) fix notify-argocd workflow #713
|
||||||
|
- 🚨(helm) fix helmfile lint #736
|
||||||
|
|
||||||
|
|
||||||
## [2.4.0] - 2025-03-06
|
## [2.4.0] - 2025-03-06
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
|
environments:
|
||||||
|
dev:
|
||||||
|
values:
|
||||||
|
- version: 2.4.0
|
||||||
|
---
|
||||||
repositories:
|
repositories:
|
||||||
- name: bitnami
|
- name: bitnami
|
||||||
url: registry-1.docker.io/bitnamicharts
|
url: registry-1.docker.io/bitnamicharts
|
||||||
oci: true
|
oci: true
|
||||||
|
---
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
- name: keycloak
|
- name: keycloak
|
||||||
@@ -89,8 +95,3 @@ releases:
|
|||||||
chart: ./impress
|
chart: ./impress
|
||||||
values:
|
values:
|
||||||
- env.d/{{ .Environment.Name }}/values.impress.yaml.gotmpl
|
- env.d/{{ .Environment.Name }}/values.impress.yaml.gotmpl
|
||||||
|
|
||||||
environments:
|
|
||||||
dev:
|
|
||||||
values:
|
|
||||||
- version: 2.4.0
|
|
||||||
|
|||||||
Reference in New Issue
Block a user