forked from stevehipwell/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
taskfile.yaml
28 lines (23 loc) · 977 Bytes
/
taskfile.yaml
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
version: "3"
vars:
K8s_VERSION: 1.30.0
tasks:
docs:
cmds:
- helm-docs --template-files=./_templates.gotmpl --template-files=./_chart-readme.md.gotmpl
deps-*:
vars:
CHART: "{{index .MATCH 0}}"
cmds:
- helm dependency update ./charts/{{.CHART}}
template-*:
vars:
CHART: "{{index .MATCH 0}}"
cmds:
- helm template --kube-version {{.K8s_VERSION}} {{.CHART}} ./charts/{{.CHART}} {{.CLI_ARGS}}
kubeconform-*:
vars:
CHART: "{{index .MATCH 0}}"
cmds:
- helm template --kube-version {{.K8s_VERSION}} {{.CHART}} ./charts/{{.CHART}} --values ./charts/{{.CHART}}/ci/kubeconform.yaml | kubeconform --kubernetes-version {{.K8s_VERSION}} --schema-location default --schema-location {{`'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json'`}} --strict --summary
# yq e '[.. | select(has("image")) | .image]' .\charts\node-config\values.yaml