This repository has been archived on 2024-12-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
onechart/Makefile
T
2021-02-24 10:46:19 +01:00

48 lines
1.5 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-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