-
Notifications
You must be signed in to change notification settings - Fork 10
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
Prevent incompatible migration of Shoot to Runtime CR #405
Conversation
…nto migration-fuse
7288158
to
1832682
Compare
f47a937
to
61f81f7
Compare
equal := len(differences) == 0 | ||
|
||
return Result{ | ||
Equal: equal, | ||
Diff: differences, | ||
}, nil |
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.
equal
could be a method that returns len(this.differences) == 0
, but this is fine too, although easier to break
|
||
if !equal { | ||
diff := Difference{ | ||
ShootName: leftShoot.Name, // assumption that leftShoot and rightShoot have the same name |
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.
should that assumption be checked? If this is supposed to be always true, maybe it's safer to even crash if it ever isn't?
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.
Thx, I will add the step with checking if left == right
Description
Changes proposed in this pull request:
runtime-migrator
to abandon migration of existing Shoot if the generated shoot based on runtime CR will differ from the one on the clusterRelated issue(s)
#400