-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (21 loc) · 848 Bytes
/
Makefile
File metadata and controls
25 lines (21 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.PHONY: unit-test lint validate install-kubeconform
unit-test:
cd charts/frankenphp; helm unittest .
lint:
helm lint charts/frankenphp
install-kubeconform:
@VERSION=v0.6.4; \
OS=$$(uname | tr '[:upper:]' '[:lower:]'); \
ARCH=$$(uname -m); \
[ "$$ARCH" = "x86_64" ] && ARCH="amd64"; \
[ "$$ARCH" = "aarch64" ] && ARCH="arm64"; \
URL="https://github.com/yannh/kubeconform/releases/download/$$VERSION/kubeconform-$$OS-$$ARCH.tar.gz"; \
echo "Installing kubeconform from $$URL..."; \
curl -L $$URL | tar xz kubeconform; \
chmod +x kubeconform; \
sudo mv kubeconform /usr/local/bin/
validate:
@for file in examples/*.yaml; do \
echo "Validating $$file with kubeconform..."; \
helm template frankenphp ./charts/frankenphp -f $$file | kubeconform -summary -strict -ignore-missing-schemas -kubernetes-version 1.29.0 || exit 1; \
done