Repository navigation
🐛 (helm/v2-alpha): fix edit hang on malformed dist/install.yaml - #5753
k8s-ci-robot merged 1 commit into
Conversation
|
|
|
Welcome @tanayarun! |
|
Hi @tanayarun. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, tanayarun The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Thanks for the review and merge @camilamacedo86 |
|
Thx for the nice work !!! |
Replace
continuewithbreakin theextractNamespaceFromManifestsdecode loop.The
yaml/v3decoder returns the same error repeatedly after a parse failure,so
continuecaused an infinite loop whendist/install.yamlwas malformed.Using
breakinstead bails out and falls back to the default namespace(
<project>-system), which is the behaviour already used in other failurecases in the same function.
Also adds three tests in
edit_test.gocovering the malformed YAML case(regression), the happy path, and the missing file path.
Fixes #5750