mirror of https://github.com/helm/helm
Fixes #31627 When using helm upgrade --install on a non-existent release, the --server-side flag was not being respected. This was because the upgrade client uses ServerSideApply as a string ("true", "false", "auto") while the install client uses it as a boolean, and the conversion was missing when creating the install client. This fix adds proper conversion logic to ensure that: - --server-side=true -> install with server-side apply - --server-side=false -> install with client-side apply - --server-side=auto or unset -> default to server-side apply Also adds TestUpgradeInstallServerSideApply to verify the fix works correctly. The test has been enhanced to actually verify the ApplyMethod field on releases to ensure the --server-side flag is properly passed through. Signed-off-by: Azeez Syed <syedazeez337@gmail.com>pull/31631/head
parent
e1bdab214f
commit
e1387f51c5
Loading…
Reference in new issue