chore: add test
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
3bc32140ff
commit
669e213de2
|
|
@ -28,6 +28,7 @@ export HELM_HOME="${HELM_DATA_HOME}"
|
|||
export HELM_PLUGINS="${HELM_DATA_HOME}/plugins"
|
||||
export HELM_CONFIG_HOME="${helm_dir}/config"
|
||||
HELM_DIFF_VERSION="${HELM_DIFF_VERSION:-3.9.14}"
|
||||
HELM_GIT_VERSION="${HELM_GIT_VERSION:-1.3.0}"
|
||||
HELM_SECRETS_VERSION="${HELM_SECRETS_VERSION:-3.15.0}"
|
||||
export GNUPGHOME="${PWD}/${dir}/.gnupg"
|
||||
export SOPS_PGP_FP="B2D6D7BBEC03B2E66571C8C00AD18E16CFDEF700"
|
||||
|
|
@ -70,7 +71,8 @@ set -e
|
|||
trap cleanup EXIT
|
||||
info "Using namespace: ${test_ns}"
|
||||
info "Using Helm version:" $(${helm} version --short | grep -o 'v[0-9.]\+')
|
||||
${helm} plugin ls | grep diff || ${helm} plugin install https://github.com/databus23/helm-diff --version v${HELM_DIFF_VERSION}
|
||||
${helm} plugin ls | grep "^diff" || ${helm} plugin install https://github.com/databus23/helm-diff --version v${HELM_DIFF_VERSION}
|
||||
${helm} plugin ls | grep "^helm-git" || ${helm} plugin install https://github.com/aslafy-z/helm-git --version v${HELM_GIT_VERSION}
|
||||
info "Using Kustomize version: $(kustomize version --short | grep -o 'v[0-9.]\+')"
|
||||
${kubectl} get namespace ${test_ns} &> /dev/null && warn "Namespace ${test_ns} exists, from a previous test run?"
|
||||
${kubectl} create namespace ${test_ns} || fail "Could not create namespace ${test_ns}"
|
||||
|
|
@ -98,6 +100,7 @@ ${kubectl} create namespace ${test_ns} || fail "Could not create namespace ${tes
|
|||
. ${dir}/test-cases/deps-kustomization-i-1402.sh
|
||||
. ${dir}/test-cases/hcl-secrets.sh
|
||||
. ${dir}/test-cases/issue-1749.sh
|
||||
. ${dir}/test-cases/issue-1893.sh
|
||||
|
||||
# ALL DONE -----------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
issue_1893_input_dir="${cases_dir}/issue-1893/input"
|
||||
helmfile_real="$(pwd)/${helmfile}"
|
||||
|
||||
test_start "issue 1893 helmfile template"
|
||||
cd "${issue_1893_input_dir}"
|
||||
${helmfile_real} template || fail "\"issue 1893 helmfile template shouldn't fail"
|
||||
cd -
|
||||
test_pass "issue 1893 helmfile template"
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
repositories:
|
||||
- name: chartify-testdata
|
||||
url: git+https://github.com/helmfile/chartify@testdata/charts/importvalues?ref=master
|
||||
|
||||
releases:
|
||||
- name: importvalues
|
||||
chart: chartify-testdata/importvalues
|
||||
version: 0.1.0
|
||||
transformers:
|
||||
- apiVersion: builtin
|
||||
kind: ValueAddTransformer
|
||||
metadata:
|
||||
name: add-annotation-issue
|
||||
targets:
|
||||
- fieldPath: metadata/annotations/issue
|
||||
selector:
|
||||
kind: ConfigMap
|
||||
name: importvalues-imported-values
|
||||
value: "1893"
|
||||
Loading…
Reference in New Issue