-
Notifications
You must be signed in to change notification settings - Fork 493
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
[GEP-7] Adds check for seed provider type when changing the seed name of shoot #3254
[GEP-7] Adds check for seed provider type when changing the seed name of shoot #3254
Conversation
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.
/lgtm
Thank you!
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.
Just a minor suggestion for the name of the old seed to make it more clear. It is strange to me that the old seed is named "new..."
Also, names cannot contain brackets, ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names.
@@ -1951,6 +1953,27 @@ var _ = Describe("validator", func() { | |||
|
|||
Expect(err).To(HaveOccurred()) | |||
}) | |||
|
|||
It("should fail to change Seed name, because cloud provider for new Seed is not equal to cloud provider for old Seed", func() { | |||
oldSeedName := fmt.Sprintf("new(%s)", seedName) |
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.
oldSeedName := fmt.Sprintf("new(%s)", seedName) | |
oldSeedName := fmt.Sprintf("old-%s", seedName) |
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.
ops forgot to change this after I modified the variable name.
ef17421
to
ec5794c
Compare
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.
/lgtm
How to categorize this PR?
/area control-plane-migration
/kind enhancement
/priority normal
What this PR does / why we need it:
This PR forbids changing the
Shoot.Spec.SeedName
field of aShoot
cluster if the newSeed
has different cloud provider from the old one. Currently control planes cannot be migrated betweenSeeds
with different providers, although we could implement this in the future.Which issue(s) this PR fixes:
Part of #1631
Special notes for your reviewer:
Release note: