feat: add helm-diff and kustomize in ci matrix (#434)
* feat: add helm-diff and kustomize in ci matrix Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
ffce09a35f
commit
bdaafdff67
|
|
@ -57,26 +57,36 @@ jobs:
|
||||||
# That's why we cover only 2 Helm minor versions in this matrix.
|
# That's why we cover only 2 Helm minor versions in this matrix.
|
||||||
# See https://github.com/helmfile/helmfile/pull/286#issuecomment-1250161182 for more context.
|
# See https://github.com/helmfile/helmfile/pull/286#issuecomment-1250161182 for more context.
|
||||||
- helm-version: v3.9.4
|
- helm-version: v3.9.4
|
||||||
|
kustomize-version: v4.4.1
|
||||||
plugin-secrets-version: 3.15.0
|
plugin-secrets-version: 3.15.0
|
||||||
|
plugin-diff-version: 3.5.0
|
||||||
extra-helmfile-flags:
|
extra-helmfile-flags:
|
||||||
- helm-version: v3.9.4
|
- helm-version: v3.9.4
|
||||||
|
kustomize-version: v4.5.7
|
||||||
# We assume that the helm-secrets plugin is supposed to
|
# We assume that the helm-secrets plugin is supposed to
|
||||||
# work with the two most recent helm minor versions.
|
# work with the two most recent helm minor versions.
|
||||||
# Once it turned out to be not practically true,
|
# Once it turned out to be not practically true,
|
||||||
# we will mark this combination as failable,
|
# we will mark this combination as failable,
|
||||||
# and instruct users to upgrade helm and helm-secrets at once.
|
# and instruct users to upgrade helm and helm-secrets at once.
|
||||||
plugin-secrets-version: 4.0.0
|
plugin-secrets-version: 4.0.0
|
||||||
|
plugin-diff-version: 3.6.0
|
||||||
extra-helmfile-flags:
|
extra-helmfile-flags:
|
||||||
- helm-version: v3.10.0
|
- helm-version: v3.10.1
|
||||||
|
kustomize-version: v4.4.1
|
||||||
plugin-secrets-version: 3.15.0
|
plugin-secrets-version: 3.15.0
|
||||||
|
plugin-diff-version: 3.5.0
|
||||||
extra-helmfile-flags:
|
extra-helmfile-flags:
|
||||||
- helm-version: v3.10.0
|
- helm-version: v3.10.1
|
||||||
|
kustomize-version: v4.5.7
|
||||||
plugin-secrets-version: 4.0.0
|
plugin-secrets-version: 4.0.0
|
||||||
|
plugin-diff-version: 3.6.0
|
||||||
extra-helmfile-flags:
|
extra-helmfile-flags:
|
||||||
# In case you need to test some optional helmfile features,
|
# In case you need to test some optional helmfile features,
|
||||||
# enable it via extra-helmfile-flags below.
|
# enable it via extra-helmfile-flags below.
|
||||||
- helm-version: v3.10.0
|
- helm-version: v3.10.1
|
||||||
|
kustomize-version: v4.5.7
|
||||||
plugin-secrets-version: 4.0.0
|
plugin-secrets-version: 4.0.0
|
||||||
|
plugin-diff-version: 3.6.0
|
||||||
extra-helmfile-flags: "--enable-live-output"
|
extra-helmfile-flags: "--enable-live-output"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
@ -110,12 +120,14 @@ jobs:
|
||||||
- name: Install test dependencies
|
- name: Install test dependencies
|
||||||
env:
|
env:
|
||||||
HELM_VERSION: ${{ matrix.helm-version }}
|
HELM_VERSION: ${{ matrix.helm-version }}
|
||||||
|
KUSTOMIZE_VERSION: ${{ matrix.kustomize-version }}
|
||||||
run: make -C .github/workflows helm vault sops kustomize
|
run: make -C .github/workflows helm vault sops kustomize
|
||||||
- name: Start minikube
|
- name: Start minikube
|
||||||
uses: medyagh/setup-minikube@master
|
uses: medyagh/setup-minikube@master
|
||||||
- name: Execute integration tests
|
- name: Execute integration tests
|
||||||
env:
|
env:
|
||||||
HELM_SECRETS_VERSION: ${{ matrix.plugin-secrets-version }}
|
HELM_SECRETS_VERSION: ${{ matrix.plugin-secrets-version }}
|
||||||
|
HELM_DIFF_VERSION: ${{ matrix.plugin-diff-version }}
|
||||||
HELMFILE_HELM3: 1
|
HELMFILE_HELM3: 1
|
||||||
TERM: xterm
|
TERM: xterm
|
||||||
EXTRA_HELMFILE_FLAGS: ${{ matrix.extra-helmfile-flags }}
|
EXTRA_HELMFILE_FLAGS: ${{ matrix.extra-helmfile-flags }}
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,8 @@ export HELM_DATA_HOME="${helm_dir}/data"
|
||||||
export HELM_HOME="${HELM_DATA_HOME}"
|
export HELM_HOME="${HELM_DATA_HOME}"
|
||||||
export HELM_PLUGINS="${HELM_DATA_HOME}/plugins"
|
export HELM_PLUGINS="${HELM_DATA_HOME}/plugins"
|
||||||
export HELM_CONFIG_HOME="${helm_dir}/config"
|
export HELM_CONFIG_HOME="${helm_dir}/config"
|
||||||
HELM_DIFF_VERSION=3.5.0
|
HELM_DIFF_VERSION="${HELM_DIFF_VERSION:-3.6.0}"
|
||||||
HELM_SECRETS_DEFAULT_VERSION=3.15.0
|
HELM_SECRETS_VERSION="${HELM_SECRETS_VERSION:-3.15.0}"
|
||||||
HELM_SECRETS_VERSION="${HELM_SECRETS_VERSION:-$HELM_SECRETS_DEFAULT_VERSION}"
|
|
||||||
export GNUPGHOME="${PWD}/${dir}/.gnupg"
|
export GNUPGHOME="${PWD}/${dir}/.gnupg"
|
||||||
export SOPS_PGP_FP="B2D6D7BBEC03B2E66571C8C00AD18E16CFDEF700"
|
export SOPS_PGP_FP="B2D6D7BBEC03B2E66571C8C00AD18E16CFDEF700"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue