Skip to content

refactor(helm3): optimize manifest extraction logic #797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yxxhero
Copy link
Collaborator

@yxxhero yxxhero commented Jun 5, 2025

This pull request refactors the extractManifestFromHelmUpgradeDryRunOutput function in cmd/helm3.go to improve its handling of edge cases. Specifically, it ensures that the function properly checks for the presence of "HOOKS" and "MANIFEST" sections before attempting to extract them.

Enhancements to edge case handling:

  • cmd/helm3.go: Added conditional checks to verify the existence of "HOOKS" and "MANIFEST" sections before extracting their contents, preventing potential issues with invalid input.

@yxxhero
Copy link
Collaborator Author

yxxhero commented Jun 5, 2025

@mumoshu WDYT?

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.

HELM_DIFF_USE_UPGRADE_DRY_RUN=true crashes helm when no deployment exists in target namespace
1 participant