51 lines
1.6 KiB
Makefile
51 lines
1.6 KiB
Makefile
|
|
all: lint kubeval test package
|
|
|
|
lint:
|
|
helm lint charts/onechart/
|
|
helm lint charts/cron-job/
|
|
helm lint charts/namespaces/
|
|
|
|
kubeval:
|
|
rm -rf manifests && true
|
|
mkdir manifests
|
|
helm template charts/onechart --output-dir manifests
|
|
find manifests/ -name '*.yaml' | xargs kubeval --ignore-missing-schemas -v 1.13.0
|
|
find manifests/ -name '*.yaml' | xargs kubeval --ignore-missing-schemas -v 1.18.0
|
|
|
|
rm -rf manifests && true
|
|
mkdir manifests
|
|
helm template charts/cron-job --output-dir manifests
|
|
find manifests/ -name '*.yaml' | xargs kubeval --ignore-missing-schemas -v 1.13.0
|
|
find manifests/ -name '*.yaml' | xargs kubeval --ignore-missing-schemas -v 1.18.0
|
|
|
|
rm -rf manifests && true
|
|
mkdir manifests
|
|
helm template charts/namespaces --output-dir manifests
|
|
find manifests/ -name '*.yaml' | xargs kubeval --ignore-missing-schemas -v 1.13.0
|
|
find manifests/ -name '*.yaml' | xargs kubeval --ignore-missing-schemas -v 1.18.0
|
|
|
|
test:
|
|
helm unittest charts/onechart
|
|
helm unittest charts/cron-job
|
|
helm unittest charts/namespaces
|
|
|
|
package:
|
|
helm package charts/onechart
|
|
mv onechart*.tgz docs
|
|
|
|
helm package charts/cron-job
|
|
mv cron-job*.tgz docs
|
|
|
|
helm package charts/namespaces
|
|
mv namespaces*.tgz docs
|
|
|
|
helm repo index docs --url https://chart.onechart.dev
|
|
|
|
debug:
|
|
helm template charts/onechart/ -f values.yaml --debug
|
|
|
|
debug-ui:
|
|
#gimlet chart configure -s charts/onechart/values.schema.json -u charts/onechart/helm-ui.json onechart/onechart
|
|
/home/laszlo/projects/gimlet-cli/build/gimlet chart configure -s charts/onechart/values.schema.json -u charts/onechart/helm-ui.json onechart/onechart
|