Skip to content

chore(container): update ghcr.io/budimanjojo/kubernetes-schemas-web:latest docker digest to bfa8f68 #11201

chore(container): update ghcr.io/budimanjojo/kubernetes-schemas-web:latest docker digest to bfa8f68

chore(container): update ghcr.io/budimanjojo/kubernetes-schemas-web:latest docker digest to bfa8f68 #11201

---
name: Manifest validate
on:
workflow_dispatch:
push:
branches: ['*']
paths: ['cluster/**']
pull_request:
branches: ['*']
paths: ['cluster/**']
env:
KUBERNETES_DIR: ./cluster
SCHEMA_DIR: /home/runner/.datree/crdSchemas
KUBE_VERSION: 1.26.0
jobs:
manifest-validate:
runs-on: ubuntu-latest
container: ghcr.io/budimanjojo/kubernetes-toolbox:latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Download CRDs
run: |
mkdir -p ${{ env.SCHEMA_DIR }}
flux pull artifact oci://ghcr.io/budimanjojo/kubernetes-schemas-oci:latest \
--output=${{ env.SCHEMA_DIR }}
- name: Validate Kubernetes Manifests
run: |
#!/usr/bin/env bash
set -o errexit
kustomize_config="kustomization.yaml"
find ${{ env.KUBERNETES_DIR }} -type f -name $kustomize_config -print0 | while IFS= read -r -d $'\0' file;
do
echo "== Validating kustomization ${file/%$kustomize_config} =="
kustomize build "$(dirname $file)" | kubeconform \
-strict \
-ignore-missing-schemas \
-kubernetes-version ${{ env.KUBE_VERSION }} \
-skip Secret,CustomResourceDefinition \
-schema-location default \
-schema-location ${{ env.SCHEMA_DIR }}/\{\{.Group\}\}/\{\{.ResourceKind\}\}_\{\{.ResourceAPIVersion\}\}.json \
-verbose
done