Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package helmfile for openSUSE:Factory checked in at 2026-11-28 23:25:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/helmfile (Old) and /work/SRC/openSUSE:Factory/.helmfile.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "helmfile" Sat Nov 28 23:25:27 2026 rev:108 rq:1401278 version:1.8.6 Changes: -------- --- /work/SRC/openSUSE:Factory/helmfile/helmfile.changes 2026-11-25 16:16:52.354337161 +0100 +++ /work/SRC/openSUSE:Factory/.helmfile.new.1340718/helmfile.changes 2026-11-28 23:27:08.656301623 +0100 @@ -1,0 +2,22 @@ +Sat Nov 28 09:33:28 UTC 2026 - Manfred Hollstein <[email protected]> + +- Update to version 1.8.6: + * chore: Update kubectl to v1.35.10 by @pathob in #2909 + * chore: Update Ubuntu image to LTS version 26.04 by @pathob in + #2908 + * fix: avoid a nil Process panic in helmexec.Output on cancel by + @Cayan in #2910 + * build(deps): bump github.com/aws/aws-sdk-go-v2/config from + 1.33.19 to 1.33.21 by @dependabot[bot] in #2906 + * fix: apply --set overrides in write-values by @pcbeingused333 + in #2911 + * build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from + 1.114.10 to 1.116.0 by @dependabot[bot] in #2907 + * fix: follow the rest of the path after a map[string]string key + in get by @spicysharkco in #2912 + * build(deps): bump github.com/sashabaranov/go-openai from 1.43.0 + to 1.44.0 by @dependabot[bot] in #2913 + * perf(state): use helm history instead of helm list for the + post-sync version probe by @toms-place in #2914 + +------------------------------------------------------------------- Old: ---- helmfile-1.8.5.tar.gz New: ---- helmfile-1.8.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ helmfile.spec ++++++ --- /var/tmp/diff_new_pack.8HU8eJ/_old 2026-11-28 23:27:10.330371545 +0100 +++ /var/tmp/diff_new_pack.8HU8eJ/_new 2026-11-28 23:27:10.334371712 +0100 @@ -17,9 +17,9 @@ # -%define git_commit 4918d48847eecf4e52e9c03791902044f6a55887 +%define git_commit b900a7ef21ed24739688a46f9d68457b6929ddee Name: helmfile -Version: 1.8.5 +Version: 1.8.6 Release: 0 Summary: Deploy Kubernetes Helm Charts License: MIT ++++++ _service ++++++ --- /var/tmp/diff_new_pack.8HU8eJ/_old 2026-11-28 23:27:10.371373257 +0100 +++ /var/tmp/diff_new_pack.8HU8eJ/_new 2026-11-28 23:27:10.374373382 +0100 @@ -5,7 +5,7 @@ <param name="exclude">.git</param> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> - <param name="revision">v1.8.5</param> + <param name="revision">v1.8.6</param> <param name="changesgenerate">disable</param> </service> <service name="recompress" mode="manual"> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.8HU8eJ/_old 2026-11-28 23:27:10.398374385 +0100 +++ /var/tmp/diff_new_pack.8HU8eJ/_new 2026-11-28 23:27:10.401374510 +0100 @@ -1,7 +1,7 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/helmfile/helmfile.git</param> - <param name="changesrevision">4918d48847eecf4e52e9c03791902044f6a55887</param> + <param name="changesrevision">b900a7ef21ed24739688a46f9d68457b6929ddee</param> </service> </servicedata> ++++++ helmfile-1.8.5.tar.gz -> helmfile-1.8.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/CHANGELOG.md new/helmfile-1.8.6/CHANGELOG.md --- old/helmfile-1.8.5/CHANGELOG.md 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/CHANGELOG.md 2026-11-28 04:54:43.000000000 +0100 @@ -4,6 +4,7 @@ - `helmfile apply` now always reruns `helm upgrade` for releases that exist in the cluster but are not in the `deployed` state (e.g. `failed` or `pending`), even when helm-diff reports no changes. Previously an unchanged failed release was silently skipped, giving the false impression of a successful deployment. `helmfile diff --detailed-exitcode` likewise reports such releases as changed (exit code 2); a plain `helmfile diff` is unaffected. Releases checked through the `HELMFILE_USE_HELM_STATUS_TO_CHECK_RELEASE_EXISTENCE` environment variable keep the previous behavior, because `helm status` cannot distinguish release states (#1043) - `helm list` is now invoked with `-o yaml` and its output is parsed into a structured release description instead of tab-separated text (#1043) +- `helmfile sync` and `helmfile apply` now read the deployed chart version for the end-of-run summary via `helm history <release> --max 1` instead of a namespace-wide `helm list --filter ^<release>$` scan, which listed every release in the namespace after each installed release and slowed runs with many or history-heavy releases (#2915) ### Added diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/Dockerfile new/helmfile-1.8.6/Dockerfile --- old/helmfile-1.8.5/Dockerfile 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/Dockerfile 2026-11-28 04:54:43.000000000 +0100 @@ -51,12 +51,12 @@ # using the install documentation found at https://kubernetes.io/docs/tasks/tools/install-kubectl/ # for now but in a future version of alpine (in the testing version at the time of writing) # we should be able to install using apk add. -ENV KUBECTL_VERSION="v1.34.13" +ENV KUBECTL_VERSION="v1.35.10" RUN set -x && \ curl --retry 5 --retry-connrefused -LO "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl" && \ case ${TARGETPLATFORM} in \ - "linux/amd64") KUBECTL_SHA256="b4bb494e9466a7a94bb851414548bc0d3e2f8da90757e6eccc3371e648648591" ;; \ - "linux/arm64") KUBECTL_SHA256="66e8283d52d9bc1f9c0e9daade7c971cd20db5a379306862897dfb25395f3e03" ;; \ + "linux/amd64") KUBECTL_SHA256="c49a28f1f4efc4d475ed05f47f2ce8e563bf7bef69ed77fe1b924ea6d83b6327" ;; \ + "linux/arm64") KUBECTL_SHA256="283f1be6a46b3695b625e25030106b8ffe18bd0d3a900f5b65c259ca407f04f5" ;; \ esac && \ echo "${KUBECTL_SHA256} kubectl" | sha256sum -c && \ chmod +x kubectl && \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/Dockerfile.debian-stable-slim new/helmfile-1.8.6/Dockerfile.debian-stable-slim --- old/helmfile-1.8.5/Dockerfile.debian-stable-slim 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/Dockerfile.debian-stable-slim 2026-11-28 04:54:43.000000000 +0100 @@ -59,13 +59,13 @@ # using the install documentation found at https://kubernetes.io/docs/tasks/tools/install-kubectl/ # for now but in a future version of alpine (in the testing version at the time of writing) # we should be able to install using apk add. -ENV KUBECTL_VERSION="v1.34.13" +ENV KUBECTL_VERSION="v1.35.10" RUN set -x && \ curl --retry 5 --retry-connrefused -LO "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl" && \ case ${TARGETPLATFORM} in \ # checksums are available at https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl.sha256 - "linux/amd64") KUBECTL_SHA256="b4bb494e9466a7a94bb851414548bc0d3e2f8da90757e6eccc3371e648648591" ;; \ - "linux/arm64") KUBECTL_SHA256="66e8283d52d9bc1f9c0e9daade7c971cd20db5a379306862897dfb25395f3e03" ;; \ + "linux/amd64") KUBECTL_SHA256="c49a28f1f4efc4d475ed05f47f2ce8e563bf7bef69ed77fe1b924ea6d83b6327" ;; \ + "linux/arm64") KUBECTL_SHA256="283f1be6a46b3695b625e25030106b8ffe18bd0d3a900f5b65c259ca407f04f5" ;; \ esac && \ echo "${KUBECTL_SHA256} kubectl" | sha256sum -c && \ chmod +x kubectl && \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/Dockerfile.ubuntu new/helmfile-1.8.6/Dockerfile.ubuntu --- old/helmfile-1.8.5/Dockerfile.ubuntu 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/Dockerfile.ubuntu 2026-11-28 04:54:43.000000000 +0100 @@ -12,7 +12,7 @@ # ----------------------------------------------------------------------------- -FROM ubuntu:24.04 +FROM ubuntu:26.04 LABEL org.opencontainers.image.source=https://github.com/helmfile/helmfile @@ -59,13 +59,13 @@ # using the install documentation found at https://kubernetes.io/docs/tasks/tools/install-kubectl/ # for now but in a future version of alpine (in the testing version at the time of writing) # we should be able to install using apk add. -ENV KUBECTL_VERSION="v1.34.13" +ENV KUBECTL_VERSION="v1.35.10" RUN set -x && \ curl --retry 5 --retry-connrefused -LO "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl" && \ case ${TARGETPLATFORM} in \ # checksums are available at https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl.sha256 - "linux/amd64") KUBECTL_SHA256="b4bb494e9466a7a94bb851414548bc0d3e2f8da90757e6eccc3371e648648591" ;; \ - "linux/arm64") KUBECTL_SHA256="66e8283d52d9bc1f9c0e9daade7c971cd20db5a379306862897dfb25395f3e03" ;; \ + "linux/amd64") KUBECTL_SHA256="c49a28f1f4efc4d475ed05f47f2ce8e563bf7bef69ed77fe1b924ea6d83b6327" ;; \ + "linux/arm64") KUBECTL_SHA256="283f1be6a46b3695b625e25030106b8ffe18bd0d3a900f5b65c259ca407f04f5" ;; \ esac && \ echo "${KUBECTL_SHA256} kubectl" | sha256sum -c && \ chmod +x kubectl && \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/docs/cli.md new/helmfile-1.8.6/docs/cli.md --- old/helmfile-1.8.5/docs/cli.md 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/docs/cli.md 2026-11-28 04:54:43.000000000 +0100 @@ -576,6 +576,11 @@ helmfile print-env -e production ``` +### write-values + +Use `helmfile write-values --set replicas=2` to override values in the generated YAML. +The command applies `--set` overrides after merging the release values and any files passed with `--values`. + ### status The `helmfile status` sub-command retrieves the status of releases in the state file by running `helm status` for each release. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/go.mod new/helmfile-1.8.6/go.mod --- old/helmfile-1.8.5/go.mod 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/go.mod 2026-11-28 04:54:43.000000000 +0100 @@ -6,8 +6,8 @@ dario.cat/mergo v1.0.2 github.com/Masterminds/semver/v3 v3.5.0 github.com/Masterminds/sprig/v3 v3.3.0 - github.com/aws/aws-sdk-go-v2/config v1.33.19 - github.com/aws/aws-sdk-go-v2/service/s3 v1.114.10 + github.com/aws/aws-sdk-go-v2/config v1.33.21 + github.com/aws/aws-sdk-go-v2/service/s3 v1.116.0 github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc github.com/fatih/color v1.19.0 github.com/go-test/deep v1.1.2 @@ -24,7 +24,7 @@ github.com/mattn/go-runewidth v0.0.31 github.com/otiai10/copy v1.14.1 github.com/pkg/errors v0.9.1 - github.com/sashabaranov/go-openai v1.43.0 + github.com/sashabaranov/go-openai v1.44.0 github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.1.0 github.com/stretchr/testify v1.12.1 @@ -131,7 +131,7 @@ github.com/avelino/slugify v0.0.0-20180501145920-855f152bd774 // indirect github.com/aws/aws-sdk-go-v2 v1.48.0 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.27 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.21.1 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.21.3 // indirect github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.9 // indirect github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.22.34 // indirect github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.12 // indirect @@ -143,11 +143,11 @@ github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.12 // indirect github.com/aws/aws-sdk-go-v2/service/kms v1.61.4 // indirect github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.50.4 // indirect - github.com/aws/aws-sdk-go-v2/service/signin v1.13.1 // indirect + github.com/aws/aws-sdk-go-v2/service/signin v1.14.0 // indirect github.com/aws/aws-sdk-go-v2/service/ssm v1.76.0 // indirect github.com/aws/aws-sdk-go-v2/service/sso v1.39.5 // indirect github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.5 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.52.0 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.53.0 // indirect github.com/aws/smithy-go v1.28.9 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect github.com/beorn7/perks v1.0.1 // indirect diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/go.sum new/helmfile-1.8.6/go.sum --- old/helmfile-1.8.5/go.sum 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/go.sum 2026-11-28 04:54:43.000000000 +0100 @@ -165,10 +165,10 @@ github.com/aws/aws-sdk-go-v2 v1.48.0/go.mod h1:oeKU5p+TQBnpeLmU42WZLWvzv+ORLn+74n4QVLnm/Z0= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.27 h1:3dMP9eEmHVosFN1QiD24IJBKVY8m6iUfVYXqRCT118Q= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.27/go.mod h1:KH4PKcqtjy1m0656eqQV2v53xE04ddJzuNloEKqlHkI= -github.com/aws/aws-sdk-go-v2/config v1.33.19 h1:M0aPu5EdAMR6lGYN2GvM76WY0yqTyDi+gxV7s7Cdnr8= -github.com/aws/aws-sdk-go-v2/config v1.33.19/go.mod h1:FSZkRx5fOaq82bZkGZrK+dXFgWvI4iIE0Y6ADmEKDag= -github.com/aws/aws-sdk-go-v2/credentials v1.21.1 h1:4iuMmYSa42WMeClXjzE+HoZIeBud6o/bd00BN6WM9H4= -github.com/aws/aws-sdk-go-v2/credentials v1.21.1/go.mod h1:OffaVQod3fyZzhZJyPtw11WpHPF1uIHADc+/MYlXmbA= +github.com/aws/aws-sdk-go-v2/config v1.33.21 h1:NY1d3yXmplUSYnUAue0sR88svD+SJiaI+YJGp8TxSNg= +github.com/aws/aws-sdk-go-v2/config v1.33.21/go.mod h1:pVJNXUXaCLu9a/4/liTklg9zR3yO0xm/XBEQhgg5nzc= +github.com/aws/aws-sdk-go-v2/credentials v1.21.3 h1:bh+9VoJ4eDzJVEY6jfdNTBa0Dx7tdr+lWSPNovU1vXc= +github.com/aws/aws-sdk-go-v2/credentials v1.21.3/go.mod h1:4CNs0EBvjDEpyaXSYCdNeNRhFjHFX2Y373tFUaeTYXA= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.9 h1:oH1E0tjN0g+ZRusbX1dsuat4FJ0z05l8hWaycSbDuNc= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.9/go.mod h1:3ZaQGigIoaS45x9HgnLZ4sP475Fs7QoxU3IsZX/J3h4= github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.22.34 h1:Pn7OsMwBLbkZ6OnCxWHAjf0L/22H8cnhxZC0uPwtMtg= @@ -189,20 +189,20 @@ github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.12/go.mod h1:YuJJNxaOjnknLIrscBmkLhIpnmg9LzHd25sQRKUboGU= github.com/aws/aws-sdk-go-v2/service/kms v1.61.4 h1:vW7497x7W6ucLJAqDt96jIdO4+IWLMB3p98UubwjdqM= github.com/aws/aws-sdk-go-v2/service/kms v1.61.4/go.mod h1:Vz59N7x42VGLXZ5dGL9b10QhrU4GQv7MqnO7wc8bl9U= -github.com/aws/aws-sdk-go-v2/service/s3 v1.114.10 h1:WBJb2VxRzzKnuN94YWqZPiu5a5zc3IleFqgZnmVCyvU= -github.com/aws/aws-sdk-go-v2/service/s3 v1.114.10/go.mod h1:8NhAIBVYkVHq0hIbbzujdoou0VkKwMdG+De9e5oX6qI= +github.com/aws/aws-sdk-go-v2/service/s3 v1.116.0 h1:0/glEMW6lLpeGOq7tDKn3314ookbLSvzRs71Oknt6gA= +github.com/aws/aws-sdk-go-v2/service/s3 v1.116.0/go.mod h1:8NhAIBVYkVHq0hIbbzujdoou0VkKwMdG+De9e5oX6qI= github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.50.4 h1:+qOKY5eW7mwAEUWoIEtNR2qj351eOWMo+nglB+AhCQU= github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.50.4/go.mod h1:1C6Uc76IPws0N2nYeWJKxNoabSXbTdkDpAUnqAz4VCI= -github.com/aws/aws-sdk-go-v2/service/signin v1.13.1 h1:ssrDA6AKfXEc3h0Pf4EI4vQ8sN5Zd136SrU9Tjr0XPc= -github.com/aws/aws-sdk-go-v2/service/signin v1.13.1/go.mod h1:LdwHjKqPE9VCC7sTlWcOAizZx3ZJYjmfwC/EW2tIIAE= +github.com/aws/aws-sdk-go-v2/service/signin v1.14.0 h1:bIEk1HfTd3MGzvDa5YOQUodGr96D9+UTnmBLBB8ZJ10= +github.com/aws/aws-sdk-go-v2/service/signin v1.14.0/go.mod h1:LdwHjKqPE9VCC7sTlWcOAizZx3ZJYjmfwC/EW2tIIAE= github.com/aws/aws-sdk-go-v2/service/ssm v1.76.0 h1:hdrI7EQp8HQzmxSwsXsWhjo7AwcVsw8rC/5AOCiDwQ4= github.com/aws/aws-sdk-go-v2/service/ssm v1.76.0/go.mod h1:l+OkBEbZ5r0XEHQ+R7c27Zw3LO89fau+FBxsDoAW1TU= github.com/aws/aws-sdk-go-v2/service/sso v1.39.5 h1:ANAoa+qt3/9kXnvQVgUyxcTzhzZf4DqaBS+M2DQrELU= github.com/aws/aws-sdk-go-v2/service/sso v1.39.5/go.mod h1:vsMi+SSR7xGQXtV430LVi49qbv/R+U+upHHSp1W/+QI= github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.5 h1:uIOBLMhef4N16WguadoHKuBy9etdz+RKTeqzchXErAI= github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.5/go.mod h1:NwWmkFLtsTVyXQpbzPOlYLwEoANkdCFjJRtrNcbg/vY= -github.com/aws/aws-sdk-go-v2/service/sts v1.52.0 h1:IaBLmJWiIEtKkjXMgMbYGZk7WKXbYA8148wCMCXq9hU= -github.com/aws/aws-sdk-go-v2/service/sts v1.52.0/go.mod h1:MG6N8U9+lY4LqchrlHPqCOSr7hyxw70XU0Et2YR3eNA= +github.com/aws/aws-sdk-go-v2/service/sts v1.53.0 h1:my9Y6lxcqvPV5k4OTqnxr8XbiTDDRos1leEh050Z93U= +github.com/aws/aws-sdk-go-v2/service/sts v1.53.0/go.mod h1:MG6N8U9+lY4LqchrlHPqCOSr7hyxw70XU0Et2YR3eNA= github.com/aws/smithy-go v1.28.9 h1:zkZ058OpNX0iGTK24b+ZUEQSMc11CBA6oO7xtKZfzkY= github.com/aws/smithy-go v1.28.9/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc= github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= @@ -744,8 +744,8 @@ github.com/samber/lo v1.39.0/go.mod h1:+m/ZKRl6ClXCE2Lgf3MsQlWfh4bn1bz6CXEOxnEXnEA= github.com/santhosh-tekuri/jsonschema/v6 v6.0.3 h1:1EYB5IzjZawrrnELUi78f9fPu57HuXjmddZPjrls/28= github.com/santhosh-tekuri/jsonschema/v6 v6.0.3/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU= -github.com/sashabaranov/go-openai v1.43.0 h1:HNRpO8TAQ01ssO7aPXO/68QRlcCCYQQ5GfHbFceRZcY= -github.com/sashabaranov/go-openai v1.43.0/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg= +github.com/sashabaranov/go-openai v1.44.0 h1:wC3U/UMuaeuHSwQ4I1dg2oQJAx2NFUJ82th3NOAjIvc= +github.com/sashabaranov/go-openai v1.44.0/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg= github.com/scaleway/scaleway-sdk-go v1.0.0-beta.37 h1:1Q6K8D0BagYYEnCTkT9fn3YHUFb06bS1OvIHWcc3JQM= github.com/scaleway/scaleway-sdk-go v1.0.0-beta.37/go.mod h1:Rtb4r3WZ5x4AqmL3t/wiF/DmQi+7GlU/nCRdqFbClV4= github.com/scylladb/termtables v0.0.0-20191203121021-c4c0b6d42ff4/go.mod h1:C1a7PQSMz9NShzorzCiG2fk9+xuCgLkPeCvMHYR2OWg= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/pkg/helmexec/exec.go new/helmfile-1.8.6/pkg/helmexec/exec.go --- old/helmfile-1.8.5/pkg/helmexec/exec.go 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/pkg/helmexec/exec.go 2026-11-28 04:54:43.000000000 +0100 @@ -717,6 +717,58 @@ return release, nil } +// helmHistoryEntry is one entry of `helm history -o yaml` output. Unlike +// `helm list`, helm emits the revision as an integer here. +type helmHistoryEntry struct { + Revision int `yaml:"revision"` + Updated string `yaml:"updated"` + Status string `yaml:"status"` + Chart string `yaml:"chart"` + AppVersion string `yaml:"app_version"` +} + +// LatestRevision implements ReleaseHistoryReader. It runs +// `helm history <name> --max 1 -o yaml` and returns the latest revision. +// A missing release is not an error: the zero HelmReleaseOutput is returned, +// mirroring List. +func (helm *execer) LatestRevision(context HelmContext, name string, flags ...string) (HelmReleaseOutput, error) { + helm.logger.Infof("Getting latest revision of %v", name) + env := make(map[string]string) + args := []string{"history", name, "--max", "1", "-o", "yaml"} + + enableLiveOutput := false + out, err := helm.execWithContext(context.Ctx, append(args, flags...), env, &enableLiveOutput) + if err != nil { + if strings.Contains(err.Error(), "release: not found") { + return HelmReleaseOutput{}, nil + } + return HelmReleaseOutput{}, err + } + + var entries []helmHistoryEntry + if err := yaml.Unmarshal(out, &entries); err != nil { + return HelmReleaseOutput{}, fmt.Errorf("parsing `helm history` output: %w", err) + } + if len(entries) == 0 { + return HelmReleaseOutput{}, nil + } + + // helm prints history in ascending revision order; with --max 1 there is + // a single entry, but take the last one in case a helm version ignores it. + latest := entries[len(entries)-1] + release := HelmReleaseOutput{ + Name: name, + Revision: strconv.Itoa(latest.Revision), + Updated: latest.Updated, + Status: latest.Status, + Chart: latest.Chart, + AppVersion: latest.AppVersion, + } + helm.info([]byte(fmt.Sprintf("%s\t%s\t%s\t%s\t%s\t%s", + release.Name, release.Revision, release.Updated, release.Status, release.Chart, release.AppVersion))) + return release, nil +} + func (helm *execer) DecryptSecret(context HelmContext, name string, flags ...string) (string, error) { absPath, err := filepath.Abs(name) if err != nil { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/pkg/helmexec/exec_test.go new/helmfile-1.8.6/pkg/helmexec/exec_test.go --- old/helmfile-1.8.5/pkg/helmexec/exec_test.go 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/pkg/helmexec/exec_test.go 2026-11-28 04:54:43.000000000 +0100 @@ -2286,3 +2286,102 @@ }) } } + +func Test_LatestRevision(t *testing.T) { + tests := []struct { + name string + output string + err error + want HelmReleaseOutput + wantErr bool + }{ + { + name: "single revision with integer revision field", + output: `- revision: 42 + updated: 2026-11-03T10:00:00Z + status: deployed + chart: foo-1.0.0 + app_version: 1.0.0 + description: Upgrade complete +`, + want: HelmReleaseOutput{ + Name: "foo", + Revision: "42", + Updated: "2026-11-03T10:00:00Z", + Status: "deployed", + Chart: "foo-1.0.0", + AppVersion: "1.0.0", + }, + }, + { + name: "multiple revisions uses the latest", + output: `- revision: 1 + status: superseded + chart: foo-1.0.0 +- revision: 2 + status: failed + chart: foo-2.0.0 +`, + want: HelmReleaseOutput{Name: "foo", Revision: "2", Status: "failed", Chart: "foo-2.0.0"}, + }, + { + name: "no revisions", + output: "[]\n", + want: HelmReleaseOutput{}, + }, + { + name: "release not found is not an error", + err: fmt.Errorf("Error: release: not found"), + want: HelmReleaseOutput{}, + }, + { + name: "malformed yaml output is an error", + output: "not: [valid\n", + wantErr: true, + }, + { + name: "other errors are returned", + err: fmt.Errorf("Error: Kubernetes cluster unreachable"), + wantErr: true, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + var buffer bytes.Buffer + logger := NewLogger(&buffer, "debug") + runner := &mockRunner{ + versionOutput: []byte("v4.0.1+g12500dd"), + output: []byte(tt.output), + err: tt.err, + } + helm, err := New("helm", HelmExecOptions{}, logger, "config", "dev", runner) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + + got, err := helm.LatestRevision(HelmContext{}, "foo", "--namespace", "ns") + if tt.wantErr { + if err == nil { + t.Fatalf("expected error, got %+v", got) + } + return + } + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + if got != tt.want { + t.Errorf("LatestRevision() = %+v, want %+v", got, tt.want) + } + + wantArgs := []string{"--kubeconfig", "config", "--kube-context", "dev", "history", "foo", "--max", "1", "-o", "yaml", "--namespace", "ns"} + if len(runner.execArgs) != 1 || !reflect.DeepEqual(runner.execArgs[0], wantArgs) { + t.Errorf("helm args = %q, want %q", runner.execArgs, wantArgs) + } + }) + } +} + +// The concrete execer must satisfy the capability interface, otherwise +// HelmState silently falls back to the namespace-wide `helm list`. +var _ ReleaseHistoryReader = (*execer)(nil) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/pkg/helmexec/helmexec.go new/helmfile-1.8.6/pkg/helmexec/helmexec.go --- old/helmfile-1.8.5/pkg/helmexec/helmexec.go 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/pkg/helmexec/helmexec.go 2026-11-28 04:54:43.000000000 +0100 @@ -61,3 +61,21 @@ // OCI registry to a concrete semver. ShowChartWithFlags(chart string, flags ...string) (chart.Metadata, error) } + +// ReleaseHistoryReader is a capability interface exposing the latest revision +// of a single release via `helm history`. It is implemented by helmexec's +// concrete execer. Callers should type-assert Interface to ReleaseHistoryReader +// and fall back to List when the implementation does not satisfy it, so that +// third-party implementations of helmexec.Interface keep compiling. +// +// Unlike `helm list --filter`, which makes helm's storage driver fetch and +// decode every release record in the namespace before filtering client-side, +// `helm history <name>` queries only the records of that release (a +// label-selected request), so its cost does not grow with the number of +// releases in the namespace. +type ReleaseHistoryReader interface { + // LatestRevision runs `helm history <name> --max 1 -o yaml [flags...]` + // and returns the latest revision of the release. The zero + // HelmReleaseOutput means the release was not found. + LatestRevision(context HelmContext, name string, flags ...string) (HelmReleaseOutput, error) +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/pkg/helmexec/runner.go new/helmfile-1.8.6/pkg/helmexec/runner.go --- old/helmfile-1.8.5/pkg/helmexec/runner.go 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/pkg/helmexec/runner.go 2026-11-28 04:54:43.000000000 +0100 @@ -117,16 +117,19 @@ c.Stdout = io.MultiWriter(append([]io.Writer{&stdout, &combined}, logWriters...)...) c.Stderr = io.MultiWriter(append([]io.Writer{&stderr, &combined}, logWriters...)...) - var err error - ch := make(chan error) - go func() { - ch <- c.Run() - }() - select { - case err = <-ch: - case <-ctx.Done(): - _ = c.Process.Signal(os.Interrupt) - err = <-ch + err := c.Start() + + if err == nil { + ch := make(chan error) + go func() { + ch <- c.Wait() + }() + select { + case err = <-ch: + case <-ctx.Done(): + _ = c.Process.Signal(os.Interrupt) + err = <-ch + } } if err != nil { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/pkg/helmexec/runner_test.go new/helmfile-1.8.6/pkg/helmexec/runner_test.go --- old/helmfile-1.8.5/pkg/helmexec/runner_test.go 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/pkg/helmexec/runner_test.go 2026-11-28 04:54:43.000000000 +0100 @@ -98,3 +98,24 @@ }) } } + +func TestOutput_CanceledContext(t *testing.T) { + ctx, cancel := context.WithCancel(context.Background()) + cancel() + + for range 100 { + _, _ = Output(ctx, exec.Command("true"), false) + } + + _, err := Output(ctx, exec.Command("sleep", "10"), false) + if err == nil { + t.Fatal("Output() with a canceled context returned no error, want the interrupted command's error") + } +} + +func TestOutput_StartError(t *testing.T) { + _, err := Output(context.Background(), exec.Command("helmfile-test-missing-binary"), false) + if err == nil || !strings.Contains(err.Error(), "unexpected error: exec: \"helmfile-test-missing-binary\": executable file not found") { + t.Fatalf("Output() error = %v, want the start error of the missing binary", err) + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/pkg/state/state.go new/helmfile-1.8.6/pkg/state/state.go --- old/helmfile-1.8.5/pkg/state/state.go 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/pkg/state/state.go 2026-11-28 04:54:43.000000000 +0100 @@ -33,6 +33,7 @@ "go.uber.org/zap" helmchart "helm.sh/helm/v3/pkg/chart" cliv3 "helm.sh/helm/v3/pkg/cli" + "helm.sh/helm/v3/pkg/strvals" cliv4 "helm.sh/helm/v4/pkg/cli" "github.com/helmfile/helmfile/pkg/agent/llm" @@ -1562,9 +1563,28 @@ return helm.List(context, filter, flags...) } +// latestReleaseRevision returns the latest revision of the release. It prefers +// `helm history <name> --max 1`, which only reads the records of this release, +// over `helm list --filter`, which makes helm fetch and decode every release +// record in the namespace. With many releases in a namespace and a concurrent +// sync, running one such list per release puts a large, avoidable load on the +// API server. Falls back to listReleases when the helm implementation does not +// implement helmexec.ReleaseHistoryReader. +func (st *HelmState) latestReleaseRevision(context helmexec.HelmContext, helm helmexec.Interface, release *ReleaseSpec) (helmexec.HelmReleaseOutput, error) { + reader, ok := helm.(helmexec.ReleaseHistoryReader) + if !ok { + return st.listReleases(context, helm, release) + } + flags := st.kubeConnectionFlags(release) + if release.Namespace != "" { + flags = append(flags, "--namespace", release.Namespace) + } + return reader.LatestRevision(context, release.Name, flags...) +} + func (st *HelmState) getDeployedVersion(context helmexec.HelmContext, helm helmexec.Interface, release *ReleaseSpec) (string, error) { //retrieve the version - if out, err := st.listReleases(context, helm, release); err == nil { + if out, err := st.latestReleaseRevision(context, helm, release); err == nil { chartName := filepath.Base(release.Chart) pat := regexp.MustCompile(regexp.QuoteMeta(chartName) + "-(.*)") versions := pat.FindStringSubmatch(out.Chart) @@ -2784,6 +2804,16 @@ } } + if len(opts.Set) > 0 { + // Normalize nested YAML maps to the string keys Helm's parser expects. + merged = maputil.DeepCopyMap(merged) + for _, value := range opts.Set { + if err := strvals.ParseInto(value, merged); err != nil { + return []error{fmt.Errorf("applying --set for release %s: %w", release.Name, err)} + } + } + } + var buf bytes.Buffer encoder := yaml.NewEncoder(&buf) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/pkg/state/state_test.go new/helmfile-1.8.6/pkg/state/state_test.go --- old/helmfile-1.8.5/pkg/state/state_test.go 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/pkg/state/state_test.go 2026-11-28 04:54:43.000000000 +0100 @@ -3027,6 +3027,82 @@ } } +// historyHelm adds helmexec.ReleaseHistoryReader to exectest.Helm, so that the +// post-sync version probe takes the `helm history` path instead of `helm list`. +type historyHelm struct { + *exectest.Helm + revisions map[string]helmexec.HelmReleaseOutput + calls []string +} + +func (h *historyHelm) LatestRevision(_ helmexec.HelmContext, name string, flags ...string) (helmexec.HelmReleaseOutput, error) { + h.calls = append(h.calls, strings.TrimSpace(name+" "+strings.Join(flags, " "))) + return h.revisions[name], nil +} + +func TestGetDeployedVersion_PrefersHelmHistory(t *testing.T) { + tests := []struct { + name string + release ReleaseSpec + revision helmexec.HelmReleaseOutput + installedVersion string + wantCall string + }{ + { + name: "chart version from latest revision", + release: ReleaseSpec{Name: "foo", Chart: "registry/foo-bar", Namespace: "ns"}, + revision: helmexec.HelmReleaseOutput{Chart: "foo-bar-1.2.3", Status: "deployed"}, + installedVersion: "1.2.3", + wantCall: "foo --namespace ns", + }, + { + name: "kube context is passed through", + release: ReleaseSpec{Name: "foo", Chart: "registry/foo-bar", KubeContext: "ctx"}, + revision: helmexec.HelmReleaseOutput{Chart: "foo-bar-1.0.0-alpha+001", Status: "deployed"}, + installedVersion: "1.0.0-alpha+001", + wantCall: "foo --kube-context ctx", + }, + { + name: "falls back to helm show chart", + release: ReleaseSpec{Name: "foo", Chart: "../../foo-bar"}, + revision: helmexec.HelmReleaseOutput{Chart: "foo-bar", Status: "deployed"}, + installedVersion: "3.2.0", + wantCall: "foo", + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + state := &HelmState{ + Releases: []ReleaseSpec{tt.release}, + logger: logger, + valsRuntime: valsRuntime, + RenderedValues: map[string]any{}, + } + + helm := &historyHelm{ + // Any `helm list` call fails: the version must come from `helm history`. + Helm: &exectest.Helm{ + Lists: map[exectest.ListKey]helmexec.HelmReleaseOutput{}, + FailOnUnexpectedList: true, + }, + revisions: map[string]helmexec.HelmReleaseOutput{tt.release.Name: tt.revision}, + } + + affectedReleases := AffectedReleases{} + if errs := state.SyncReleases(&affectedReleases, helm, []string{}, 1); len(errs) > 0 { + t.Fatalf("unexpected sync errors: %v", errs) + } + + if got := state.Releases[0].installedVersion; got != tt.installedVersion { + t.Errorf("installedVersion = %q, want %q", got, tt.installedVersion) + } + if want := []string{tt.wantCall}; !reflect.DeepEqual(helm.calls, want) { + t.Errorf("LatestRevision calls = %q, want %q", helm.calls, want) + } + }) + } +} + func TestHelmState_DiffReleases(t *testing.T) { tests := []struct { name string @@ -7922,3 +7998,43 @@ }) } } + +func TestWriteReleasesValuesAppliesSet(t *testing.T) { + dir := t.TempDir() + st := &HelmState{ + RenderedValues: map[string]any{}, + FilePath: filepath.Join(dir, "helmfile.yaml"), + logger: logger, + fs: filesystem.DefaultFileSystem(), + valsRuntime: valsRuntime, + } + st.Releases = []ReleaseSpec{{ + Name: "example", + Values: []any{map[string]any{ + "replicas": 1, + "image": map[string]any{"tag": "release", "repository": "example"}, + }}, + }} + + additional := filepath.Join(dir, "additional.yaml") + require.NoError(t, os.WriteFile(additional, []byte("replicas: 3\n"), 0600)) + output := filepath.Join(dir, "output.yaml") + require.Empty(t, st.WriteReleasesValues(nil, []string{additional}, &WriteValuesOpts{ + Set: []string{"replicas=2", "image.tag=override"}, + OutputFileTemplate: output, + })) + + data, err := os.ReadFile(output) + require.NoError(t, err) + var got struct { + Replicas int + Image struct { + Tag string + Repository string + } + } + require.NoError(t, yaml.Unmarshal(data, &got)) + assert.Equal(t, 2, got.Replicas) + assert.Equal(t, "override", got.Image.Tag) + assert.Equal(t, "example", got.Image.Repository) +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/pkg/tmpl/get_or_nil.go new/helmfile-1.8.6/pkg/tmpl/get_or_nil.go --- old/helmfile-1.8.5/pkg/tmpl/get_or_nil.go 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/pkg/tmpl/get_or_nil.go 2026-11-28 04:54:43.000000000 +0100 @@ -58,7 +58,6 @@ } return nil, &noValueError{fmt.Sprintf("no value exist for key \"%s\" in %v", keys[0], typedObj)} } - return v, nil case map[any]any: v, ok = typedObj[keys[0]] if !ok { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/pkg/tmpl/get_or_nil_test.go new/helmfile-1.8.6/pkg/tmpl/get_or_nil_test.go --- old/helmfile-1.8.5/pkg/tmpl/get_or_nil_test.go 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/pkg/tmpl/get_or_nil_test.go 2026-11-28 04:54:43.000000000 +0100 @@ -30,6 +30,14 @@ noExistValueWithDefault, err := get("Bar.baz", "default", obj) require.NoErrorf(t, err, "unexpected error: %v", err) require.Equalf(t, noExistValueWithDefault, "default", "unexpected value for path Bar.baz in %v: expected=default, actual=%v", obj, noExistValueWithDefault) + + pathPastValue, err := get("Bar.foo.baz", obj) + require.Errorf(t, err, "expected error but was not occurred") + require.Nilf(t, pathPastValue, "expected nil but was not occurred") + + pathPastValueOrNil, err := getOrNil("Bar.foo.baz", obj) + require.NoErrorf(t, err, "unexpected error: %v", err) + require.Nilf(t, pathPastValueOrNil, "expected nil but was not occurred") } func TestGetSimpleStruct(t *testing.T) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/test/integration/test-cases/diff-args/output/apply-live-stderr new/helmfile-1.8.6/test/integration/test-cases/diff-args/output/apply-live-stderr --- old/helmfile-1.8.5/test/integration/test-cases/diff-args/output/apply-live-stderr 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/test/integration/test-cases/diff-args/output/apply-live-stderr 2026-11-28 04:54:43.000000000 +0100 @@ -3,7 +3,7 @@ Listing releases matching ^installed$ Listing releases matching ^uninstalled$ Upgrading release=installed, chart=../../../charts/httpbin, namespace=helmfile-tests -Listing releases matching ^installed$ +Getting latest revision of installed [1m[34m=========================== Updated Releases ============================[0m NAME NAMESPACE CHART VERSION DURATION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/test/integration/test-cases/diff-args/output/apply-live-stderr-helm4 new/helmfile-1.8.6/test/integration/test-cases/diff-args/output/apply-live-stderr-helm4 --- old/helmfile-1.8.5/test/integration/test-cases/diff-args/output/apply-live-stderr-helm4 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/test/integration/test-cases/diff-args/output/apply-live-stderr-helm4 2026-11-28 04:54:43.000000000 +0100 @@ -3,7 +3,7 @@ Listing releases matching ^installed$ Listing releases matching ^uninstalled$ Upgrading release=installed, chart=../../../charts/httpbin, namespace=helmfile-tests -Listing releases matching ^installed$ +Getting latest revision of installed [1m[34m=========================== Updated Releases ============================[0m NAME NAMESPACE CHART VERSION DURATION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/test/integration/test-cases/diff-args/output/apply-stderr new/helmfile-1.8.6/test/integration/test-cases/diff-args/output/apply-stderr --- old/helmfile-1.8.5/test/integration/test-cases/diff-args/output/apply-stderr 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/test/integration/test-cases/diff-args/output/apply-stderr 2026-11-28 04:54:43.000000000 +0100 @@ -8,7 +8,7 @@ STATUS: deployed REVISION: 1 TEST SUITE: None -Listing releases matching ^installed$ +Getting latest revision of installed [1m[34m=========================== Updated Releases ============================[0m NAME NAMESPACE CHART VERSION DURATION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/helmfile-1.8.5/test/integration/test-cases/diff-args/output/apply-stderr-helm4 new/helmfile-1.8.6/test/integration/test-cases/diff-args/output/apply-stderr-helm4 --- old/helmfile-1.8.5/test/integration/test-cases/diff-args/output/apply-stderr-helm4 2026-11-21 02:41:00.000000000 +0100 +++ new/helmfile-1.8.6/test/integration/test-cases/diff-args/output/apply-stderr-helm4 2026-11-28 04:54:43.000000000 +0100 @@ -9,7 +9,7 @@ REVISION: 1 DESCRIPTION: Install complete TEST SUITE: None -Listing releases matching ^installed$ +Getting latest revision of installed [1m[34m=========================== Updated Releases ============================[0m NAME NAMESPACE CHART VERSION DURATION ++++++ vendor.tar.gz ++++++ /work/SRC/openSUSE:Factory/helmfile/vendor.tar.gz /work/SRC/openSUSE:Factory/.helmfile.new.1340718/vendor.tar.gz differ: char 19, line 1
