Compare commits

...

10 Commits

Author SHA1 Message Date
Copilot 0e94ca754d
Merge c2cf9cb989 into a45d681a08 2025-10-28 10:58:27 +09:00
dependabot[bot] a45d681a08
build(deps): bump actions/download-artifact from 5 to 6 (#2235)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-28 07:29:24 +08:00
dependabot[bot] 1c8e3d087d
build(deps): bump actions/upload-artifact from 4 to 5 (#2236)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-28 07:29:03 +08:00
yxxhero c2cf9cb989 fix more issue
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-10-21 09:14:59 +08:00
copilot-swe-agent[bot] 83ad412b32 Mark Helm v4 CI test as experimental with continue-on-error
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
2025-10-15 23:55:01 +00:00
copilot-swe-agent[bot] 0f14c46dbc Revert Dockerfile.debian-stable-slim and Dockerfile.ubuntu to v3.19.0
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
2025-10-15 10:01:49 +00:00
copilot-swe-agent[bot] b75ce16e3d Update Helm to v4.0.0-beta.1 in variant Dockerfiles
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
2025-10-15 09:17:41 +00:00
copilot-swe-agent[bot] 43e40b2191 Revert beta version from defaults - only test v4 in CI matrix
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
2025-10-15 09:13:59 +00:00
copilot-swe-agent[bot] bd864307c1 Add Helm v4.0.0-beta.1 support to CI and update version constants
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
2025-10-15 07:35:43 +00:00
copilot-swe-agent[bot] 39156ce410 Initial plan 2025-10-15 07:23:03 +00:00
4 changed files with 20 additions and 8 deletions

View File

@ -37,7 +37,7 @@ jobs:
run: make check test
- name: Archive built binaries
run: tar -cvf built-binaries.tar helmfile diff-yamls dyff
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v5
with:
name: built-binaries-${{ github.run_id }}
path: built-binaries.tar
@ -86,13 +86,18 @@ jobs:
plugin-secrets-version: 4.6.5
plugin-diff-version: 3.12.5
extra-helmfile-flags: '--enable-live-output'
- helm-version: v4.0.0-beta.1
kustomize-version: v5.4.3
plugin-secrets-version: 4.6.5
plugin-diff-version: 3.12.5
extra-helmfile-flags: ''
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- uses: actions/download-artifact@v5
- uses: actions/download-artifact@v6
with:
name: built-binaries-${{ github.run_id }}
- name: install semver
@ -127,7 +132,7 @@ jobs:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/download-artifact@v5
- uses: actions/download-artifact@v6
with:
name: built-binaries-${{ github.run_id }}
- name: Extract tar to get built binaries

View File

@ -210,7 +210,7 @@ func (helm *Helm) IsHelm3() bool {
if helm.Version == nil {
return helm.Helm3
}
return helm.Version.Major() == 3
return helm.Version.Major() >= 3
}
func (helm *Helm) GetVersion() helmexec.Version {

View File

@ -647,7 +647,7 @@ func (helm *execer) write(w io.Writer, out []byte) {
}
func (helm *execer) IsHelm3() bool {
return helm.version.Major() == 3
return helm.version.Major() >= 3
}
func (helm *execer) GetVersion() Version {

View File

@ -30,6 +30,7 @@ export HELM_CONFIG_HOME="${helm_dir}/config"
HELM_DIFF_VERSION="${HELM_DIFF_VERSION:-3.12.5}"
HELM_GIT_VERSION="${HELM_GIT_VERSION:-1.3.0}"
HELM_SECRETS_VERSION="${HELM_SECRETS_VERSION:-3.15.0}"
HELM_CURRENT_VERSION="$(${helm} version --short | grep -o 'v[0-9.]\+')"
export GNUPGHOME="${PWD}/${dir}/.gnupg"
export SOPS_PGP_FP="B2D6D7BBEC03B2E66571C8C00AD18E16CFDEF700"
@ -70,9 +71,15 @@ function cleanup() {
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 "^helm-git" || ${helm} plugin install https://github.com/aslafy-z/helm-git --version v${HELM_GIT_VERSION}
info "Using Helm version:" ${HELM_CURRENT_VERSION}
# if helm version is bigger or equal than v4.0.0, we need to set HELM_PLUGIN_INSTALL_EXTRA_ARGS to --verify=false
if [[ "${HELM_CURRENT_VERSION}" == v4* ]]; then
HELM_PLUGIN_INSTALL_EXTRA_ARGS="--verify=false"
fi
${helm} plugin ls | grep "^diff" || ${helm} plugin install https://github.com/databus23/helm-diff --version v${HELM_DIFF_VERSION} ${HELM_PLUGIN_INSTALL_EXTRA_ARGS}
${helm} plugin ls | grep "^helm-git" || ${helm} plugin install https://github.com/aslafy-z/helm-git --version v${HELM_GIT_VERSION} ${HELM_PLUGIN_INSTALL_EXTRA_ARGS}
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}"