Repository navigation
fix: HELM_DIFF_IGNORE_UNKNOWN_FLAGS ignored issue - #538
Conversation
Signed-off-by: yxxhero <[email protected]>
Signed-off-by: yxxhero <[email protected]>
| cmdFlags := cmd.Flags() | ||
|
|
||
| // see: https://github.com/databus23/helm-diff/issues/537 | ||
| cmdFlags.ParseErrorsWhitelist.UnknownFlags = unknownFlags |
There was a problem hiding this comment.
Wow, good catch! Thanks.
So does this basically mean DisableFlagParsing: true, results in `UnknownFlags NOT set by cobra? (Just confirming for learning purpose
There was a problem hiding this comment.
Yes, this will disrupt a lot of functionality. I think we only support -- dry run=something. @mumoshu WDYT?
There was a problem hiding this comment.
@yxxhero Thanks! Re dry-run, it won't be a good idea to start dropping the backward-compatibility without any prenotices. We are still in the same major ver of helm-diff (3.x). Dropping the compatibility may break downstream user CI/CD pipelines and/or tools.
I think this justifies having more test coverage in future though 🤔
|
@mumoshu there are some other issue should be fixed. do you have any good iede for fixing issue that caused by DisableFlagParsing: true? |
fix: #537