Files
feedc0de 3264cfb68d
Validate and deploy CoreDNS scheduling / validate (push) Successful in 11s
Validate and deploy CoreDNS scheduling / deploy (push) Successful in 17s
Introduce CI/CD
2026-09-05 15:47:46 +02:00

13 lines
759 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
sh -n "$dir/install.sh"
bash -n "$dir/create-ci-kubeconfig.sh" "$dir/test.sh"
grep -Fq 'namespace: kube-system' "$dir/coredns-scheduling-patch.yaml"
grep -Fq 'odroid-h3' "$dir/coredns-scheduling-patch.yaml"
grep -Fq 'requiredDuringSchedulingIgnoredDuringExecution' "$dir/coredns-scheduling-patch.yaml"
image=ghcr.io/yannh/kubeconform:v0.7.0@sha256:85dbef6b4b312b99133decc9c6fc9495e9fc5f92293d4ff3b7e1b30f5611823c
docker run --rm -i "$image" -strict -exit-on-error -summary < "$dir/coredns-pdb.yaml"
docker run --rm -i "$image" -strict -exit-on-error -summary < "$dir/ci-deployer.yaml"
echo 'CoreDNS scheduling manifests and least-privilege CI resources are valid.'