-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add helm unit tests and abitlity to mount arbitrary secrets as …
…env variables or files (#30) * feat: add helm unit tests and abitlity to mount arbitrary secrets as env variables or files * bump charts versions
- Loading branch information
Showing
24 changed files
with
536 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
#### What this PR does / why we need it: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,10 @@ | |
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
# Custom | ||
qqq.* | ||
abc.* | ||
*.qqq | ||
*.abc | ||
*.vim | ||
Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
.PHONY: all dep list test | ||
|
||
CHART_NAME?=$(shell cat Chart.yaml | awk 'BEGIN { FS=": " } $$0~/^name:/ { gsub(/['\'',]/, ""); print $$2; }') | ||
VERSION_TAG?=$(shell cat Chart.yaml | awk 'BEGIN { FS=": " } $$0~/^version/ { gsub(/['\'',]/, ""); print $$2; }') | ||
|
||
SHELL=/bin/bash | ||
|
||
## all: run all test targets | ||
all: echo lint test validate | ||
|
||
## versions: show currently installed tool versions | ||
versions: | ||
helm version ; echo | ||
helm plugin list | grep unittest ; echo | ||
kubeval --version | ||
@echo '--------------------' | ||
|
||
## echo: print chart information | ||
echo: | ||
@echo '-=-=-=-=-=-=-=-=-=-=- "${CHART_NAME}" version: "${VERSION_TAG}" -=-=-=-=-=-=-=-=-=-=-' | ||
|
||
## test: run unittests | ||
test: | ||
helm unittest --color . | ||
@echo '--------------------' | ||
|
||
## lint: lint helm chart | ||
lint: | ||
helm lint . | ||
@echo '--------------------' | ||
|
||
## validate: validate rendered chart templates using 'kubeval' | ||
validate: | ||
helm template . | kubeval --ignore-missing-schemas --force-color - | ||
@echo '--------------------' | ||
|
||
## docs: generate chart documentation to stdout, if firgate is installed | ||
docs: | ||
frigate gen . | ||
|
||
.PHONY: help | ||
## help: prints this help message | ||
help: | ||
@echo "Usage:" | ||
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,10 @@ | |
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
# Custom | ||
qqq.* | ||
abc.* | ||
*.qqq | ||
*.abc | ||
*.vim | ||
Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
.PHONY: all dep list test | ||
|
||
CHART_NAME?=$(shell cat Chart.yaml | awk 'BEGIN { FS=": " } $$0~/^name:/ { gsub(/['\'',]/, ""); print $$2; }') | ||
VERSION_TAG?=$(shell cat Chart.yaml | awk 'BEGIN { FS=": " } $$0~/^version/ { gsub(/['\'',]/, ""); print $$2; }') | ||
|
||
SHELL=/bin/bash | ||
|
||
## all: run all test targets | ||
all: echo lint test validate | ||
|
||
## versions: show currently installed tool versions | ||
versions: | ||
helm version ; echo | ||
helm plugin list | grep unittest ; echo | ||
kubeval --version | ||
@echo '--------------------' | ||
|
||
## echo: print chart information | ||
echo: | ||
@echo '-=-=-=-=-=-=-=-=-=-=- "${CHART_NAME}" version: "${VERSION_TAG}" -=-=-=-=-=-=-=-=-=-=-' | ||
|
||
## test: run unittests | ||
test: | ||
helm unittest --helm3 --color . | ||
@echo '--------------------' | ||
|
||
## lint: lint helm chart | ||
lint: | ||
helm lint . | ||
@echo '--------------------' | ||
|
||
## validate: validate rendered chart templates using 'kubeval' | ||
validate: | ||
helm template . | kubeval --ignore-missing-schemas --force-color - | ||
@echo '--------------------' | ||
|
||
## docs: generate chart documentation to stdout, if firgate is installed | ||
docs: | ||
frigate gen . | ||
|
||
.PHONY: help | ||
## help: prints this help message | ||
help: | ||
@echo "Usage:" | ||
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.