helm consul toegevoegd ma nie als submodule?

This commit is contained in:
2020-03-09 12:27:10 +01:00
parent 31368e50b2
commit 3432492589
157 changed files with 14508 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
#!/usr/bin/env bats
load _helpers
@test "tlsInitCleanup/ClusterRoleBinding: disabled by default" {
cd `chart_dir`
local actual=$(helm template \
-x templates/tls-init-cleanup-clusterrolebinding.yaml \
. | tee /dev/stderr |
yq 'length > 0' | tee /dev/stderr)
[ "${actual}" = "false" ]
}
@test "tlsInitCleanup/ClusterRoleBinding: disabled with global.enabled=false" {
cd `chart_dir`
local actual=$(helm template \
-x templates/tls-init-cleanup-clusterrolebinding.yaml \
--set 'global.tls.enabled=true' \
--set 'global.enabled=false' \
. | tee /dev/stderr |
yq 'length > 0' | tee /dev/stderr)
[ "${actual}" = "false" ]
}
@test "tlsInitCleanup/ClusterRoleBinding: enabled with global.tls.enabled" {
cd `chart_dir`
local actual=$(helm template \
-x templates/tls-init-cleanup-clusterrolebinding.yaml \
--set 'global.tls.enabled=true' \
. | tee /dev/stderr |
yq 'length > 0' | tee /dev/stderr)
[ "${actual}" = "true" ]
}
@test "tlsInitCleanup/ClusterRoleBinding: disabled when server.enabled=false" {
cd `chart_dir`
local actual=$(helm template \
-x templates/tls-init-cleanup-clusterrolebinding.yaml \
--set 'global.tls.enabled=true' \
--set 'server.enabled=false' \
. | tee /dev/stderr |
yq 'length > 0' | tee /dev/stderr)
[ "${actual}" = "false" ]
}
@test "tlsInitCleanup/ClusterRoleBinding: enabled when global.tls.enabled=true and server.enabled=true" {
cd `chart_dir`
local actual=$(helm template \
-x templates/tls-init-cleanup-clusterrolebinding.yaml \
--set 'global.tls.enabled=true' \
--set 'server.enabled=true' \
. | tee /dev/stderr |
yq 'length > 0' | tee /dev/stderr)
[ "${actual}" = "true" ]
}