Skip to content

fix(shim): Enforce HookOnlyStrategy for Helm upgrades - #18

Merged
matheushent merged 1 commit into
mainfrom
fix-upgrade
Dec 9, 2025
Merged

matheushent merged 1 commit into
mainfrom
fix-upgrade

Conversation

@matheushent

Copy link
Copy Markdown
Contributor

This PR modifies the Helm upgrade logic in the Go shim to explicitly use the HookOnlyStrategy when waiting for operations to complete. This ensures that upgrades only wait for pre/post-upgrade hooks to finish, rather than blocking until all resources in the release are fully ready, which helps prevent timeouts on complex stateful workloads.

  • Upgrade Strategy: The helm_sdkpy_upgrade function now sets client.WaitStrategy = kube.HookOnlyStrategy.
  • Formatting: Applied minor whitespace and formatting fixes throughout go/shim/main.go to align variable declarations and comments.

This commit modifies the Helm upgrade logic in the Go shim to explicitly use the `HookOnlyStrategy` when waiting for operations to complete. This ensures that upgrades only wait for pre/post-upgrade hooks to finish, rather than blocking until all resources in the release are fully ready, which helps prevent timeouts on complex stateful workloads.

* **Upgrade Strategy**: The `helm_sdkpy_upgrade` function now sets `client.WaitStrategy = kube.HookOnlyStrategy`.
* **Formatting**: Applied minor whitespace and formatting fixes throughout `go/shim/main.go` to align variable declarations and comments.
@matheushent
matheushent merged commit 4e16800 into main Dec 9, 2025
1 of 2 checks passed
@matheushent
matheushent deleted the fix-upgrade branch December 9, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant