ci: validate Renovate manifests with kubeconform
This commit is contained in:
1 parent
592d24ce96
commit
18167e7bc3
1 file changed
+10
-3
@@ -30,9 +30,16 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
for manifest in renovate/k8s/namespace.yaml renovate/k8s/configmap.yaml renovate/k8s/cronjob.yaml; do
|
||||
kubectl apply --dry-run=client --validate=false -f "$manifest" >/dev/null
|
||||
done
|
||||
docker run --rm \
|
||||
-v "$PWD:/work" \
|
||||
-w /work \
|
||||
ghcr.io/yannh/kubeconform:latest \
|
||||
-strict \
|
||||
-ignore-missing-schemas \
|
||||
-summary \
|
||||
renovate/k8s/namespace.yaml \
|
||||
renovate/k8s/configmap.yaml \
|
||||
renovate/k8s/cronjob.yaml
|
||||
|
||||
- name: Validate Renovate repository config
|
||||
shell: bash
|
||||
|
||||
Reference in new issue
Block a user