This repository was archived by the owner on Mar 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 1.21 KB
/
Makefile
File metadata and controls
35 lines (27 loc) · 1.21 KB
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
26
27
28
29
30
31
32
33
34
35
K8S_VERSION=v1.26
# Build package configuration
build: package
cd package && kctrl package init
# Prepare cluster for development workflow
prepare: test/setup
ytt -f test/setup/assets/namespace.yml | kapp deploy -a ns -f- -y
ytt -f test/setup/assets/rbac.yml | kapp deploy -a rbac -f- -y
kubectl config set-context --current --namespace=tests
# Inner development loop
dev: package
cd package && kctrl dev -f package-resources.yml --local -y
# Clean development environment
clean:
cd package && kctrl dev -f package-resources.yml --local -y --delete
# Process the configuration manifests with ytt
ytt:
ytt -f package/config --data-values-file test/unit/config/values.yml
# Use ytt to generate an OpenAPI specification
schema:
ytt -f package/config/values-schema.yml --data-values-schema-inspect -o openapi-v3 > schema-openapi.yml
# Check the ytt-annotated Kubernetes configuration and its validation
test-config:
ytt -f package/config --data-values-file test/unit/config/values.yml | kubeconform -ignore-missing-schemas -summary
# Run package integration tests
test-integration: test/integration
kubectl kuttl test --config test/integration/kuttl-test.yml --kind-config test/setup/kind/$(K8S_VERSION)/kind-config.yml