Error due to "Helm manifest was not ready for retrieval" when Kubernetes Object Status for Helm is enabled #9182
Labels
kind/bug
This issue represents a verified problem we are committed to solving
Version
2025.1
Latest Version
I could reproduce the problem in the latest build
What happened?
When Kubernetes Object Status for Helm (also referred to as Step Verification in the Step configuration) is enabled, users may see the following verbose logs.
followed by a
TaskCanceledException
, causing the step to fail.This can be due to an empty helm chart (resulting in no manifests), but also, the version of Helm and the number of previous upgrades for that helm chart can also cause this error.
It is possible that users running a version earlier than
2025.1.3480
may also run into this issue, even with Step Verification/KOS disabled. See #9160.Reproduction
Error and Stacktrace
More Information
This issue is due to the lack of the
get metadata
command in Helm versions earlier than3.13
.We retrieve the current revision from the metadata command, so we can retrieve the manifest for the deploying revision.
However, if the
get metadata
command fails or doesn't exist, we use revision1
.Also, due to the
--history-max
flag on thehelm upgrade
command defaulting to10
, it's possible the revision1
manifest no longer exists, as a result, the get manifest call will never return anything, timing out with theTaskCanceledException
.Workaround
There are a couple of easy workarounds:
helm
executable to a version later than3.13
. For reference, the current version of Helm is3.16.2
.octopusdeploy/worker-tools
execution container, upgrade to the latest version (octopusdeploy/worker-tools:6.3.0-ubuntu.22.04)The text was updated successfully, but these errors were encountered: