mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 00:27:04 +02:00
feat(common): Release v4.1.2 (#430)
Signed-off-by: Dan Manners <daniel.a.manners@gmail.com> Co-authored-by: Daniel Manners <daniel.a.manners@gmail.com>
This commit is contained in:
parent
de383dc580
commit
42354af45b
69 changed files with 1431 additions and 668 deletions
|
@ -28,14 +28,15 @@ tasks:
|
|||
desc: Test chart [CHART=required]
|
||||
preconditions:
|
||||
# Requires https://github.com/kstasik/schema-tools
|
||||
- which helm schematools yq
|
||||
- which helm schematools-cli yq
|
||||
- test -d "{{.CHART_DIR}}"
|
||||
- test -d "{{.CHART_TEST_DIR}}"
|
||||
requires:
|
||||
vars:
|
||||
- CHART
|
||||
vars:
|
||||
GLOB: "{{.GLOB | default \"**/*_test.yaml\"}}"
|
||||
GLOB: >-
|
||||
{{.GLOB | default "**/*_test.yaml"}}
|
||||
CHART_DIR: "{{.PROJECT_DIR}}/charts/{{.CHART}}"
|
||||
CHART_TYPE:
|
||||
sh: yq eval '.type // "application"' {{.PROJECT_DIR}}/charts/{{.CHART}}/Chart.yaml
|
||||
|
@ -43,17 +44,17 @@ tasks:
|
|||
{{.CHART_DIR}}{{- if eq .CHART_TYPE "library" -}}/test-chart{{- end -}}
|
||||
dir: "{{.CHART_TEST_DIR}}"
|
||||
cmds:
|
||||
- cp "{{.CHART_DIR}}/values.schema.json" "{{.CHART_DIR}}/values.schema.bak"
|
||||
- schematools process dereference "{{.CHART_DIR}}/values.schema.json" --to-file "{{.CHART_DIR}}/values.schema.json"
|
||||
- defer: mv "{{.CHART_DIR}}/values.schema.bak" "{{.CHART_DIR}}/values.schema.json"
|
||||
- helm dep update
|
||||
- helm unittest --color -f "unittests/{{.GLOB}}" .
|
||||
- cp "{{.CHART_DIR}}/values.schema.json" "{{.CHART_DIR}}/values.schema.bak"
|
||||
- schematools-cli process dereference "{{.CHART_DIR}}/values.schema.json" --to-file "{{.CHART_DIR}}/values.schema.json"
|
||||
- defer: mv "{{.CHART_DIR}}/values.schema.bak" "{{.CHART_DIR}}/values.schema.json"
|
||||
- helm dep update
|
||||
- helm unittest --color -f "unittests/{{.GLOB}}" .
|
||||
silent: true
|
||||
|
||||
dependency-cleanup:
|
||||
desc: clean up chart dependencies
|
||||
dir: "{{.PROJECT_DIR}}/charts"
|
||||
cmds:
|
||||
- find {{.PROJECT_DIR}}/charts/ -mindepth 1 -type f -name 'Chart.lock' -print0 | xargs -r -0 rm
|
||||
- find {{.PROJECT_DIR}}/charts/ -mindepth 1 -type d -name 'charts' -print0 | xargs -r -0 rm -rf
|
||||
- find {{.PROJECT_DIR}}/charts/ -mindepth 1 -type f -name 'Chart.lock' -print0 | xargs -r -0 rm
|
||||
- find {{.PROJECT_DIR}}/charts/ -mindepth 1 -type d -name 'charts' -print0 | xargs -r -0 rm -rf
|
||||
silent: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue