-
Notifications
You must be signed in to change notification settings - Fork 208
Fix wrong drift result that caused in v0.10.3 #2192
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
Conversation
| oldManifests, | ||
| newManifests, | ||
| diff.WithEquateEmpty(), | ||
| diff.WithIgnoreAddingMapKeys(), |
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.
We don't need this option because plan-preview is comparing between 2 commits, not using the live state.
| result, err := provider.DiffList(liveManifests, headManifests, | ||
| result, err := provider.DiffList( | ||
| headManifests, | ||
| liveManifests, |
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.
The bug was caused by this order change in the last refactoring.
|
Again, the build failed due to npm |
|
/trigger build |
|
@nakabonne: Your requested build has been scheduled in response to this comment. |
|
Code coverage for golang is
|
| b.WriteString(fmt.Sprintf("Diff between the running resources and the definitions in Git at commit %q:\n", commit)) | ||
| b.WriteString("--- Git\n+++ Cluster\n\n") | ||
| b.WriteString(fmt.Sprintf("Diff between the defined state in Git at commit %s and actual state in cluster:\n\n", commit)) | ||
| b.WriteString("--- Expected\n+++ Actual\n\n") |
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.
Easier to understand!
|
Nice |
|
Nice catch |
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: