-
Notifications
You must be signed in to change notification settings - Fork 286
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
upgrade command add three-way-merge option #304
Conversation
…ate vs desired state
@databus23 @mumoshu can I humbly ask you folks to take a look? 🙏 This might be a step in the right direction to solve #176 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@@ -169,6 +192,25 @@ func (d *diffCmd) runHelm3() error { | |||
return fmt.Errorf("Failed to render chart: %s", err) | |||
} | |||
|
|||
if d.threeWayMerge { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably L171-L193 doesn't need to be run when we enter the 3-way merge mode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind. It turned out correct as we still render the chart at L190 to be used when building K8s objects at L207.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have one concern but this looks great for a starter. Thanks a lot for your patience and contribution!
This adds a dedicated envvar to enable the three-way-merge diff added in #304. It should be useful when you are using helm-diff from another command or script and you dont have ability to specify the --three-way-merge flag without modifying the command/script but you cant due to various reasons.
This adds a dedicated envvar to enable the three-way-merge diff added in #304. It should be useful when you are using helm-diff from another command or script and you dont have ability to specify the --three-way-merge flag without modifying the command/script but you cant due to various reasons.
Yeah maybe in coming weeks. |
FYI, I've added a feature to enable this via an envvar. See #336 for more information. |
upgrade command add three-way-merge option to show diff for actual state vs desired state #176
prepared resource for testing
1、last release:
2、target release:
normal diff vs diff with
--three-way-merge
option1、manual change:
preStop
time from 5 to 10readinessProbe
Service
2、normal diff output:
3、diff output with
--three-way-merge
option: