-
Notifications
You must be signed in to change notification settings - Fork 578
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
Updating region on a cluster is broken #1673
Comments
+1 to adding validation to enforce this field being immutable |
/assign |
We don't have any validations on AWSClusters at the moment, so I was thinking of what else we want to restrict:
|
It might be tricky to determine managed vs unmanaged here.
It should be fine to update this afterwards, it would just change the cluster-wide default for new instances created.
+1 on immutability here, otherwise it will break the cluster.
Sort of... I'm not sure if it will affect existing instances created (other than bastion), but it should affect the cluster infrastructure that was created. We might need to figure out what type of behavior we want here for existing AWSMachine owned instances, though.
immutability for now sounds good here to me.
Yes, we should likely allow for changing this to affect the default behavior for future instance creation and it should not impact existing instances.
Yes
We should allow for the addition of a bastion after the AWSCluster is created, but should likely block the removal of a bastion. |
Sounds good, I was starting to look into managed/unmanaged and realized that wouldn't be easy. I think I was split on whether a stance of "this applies to new instances going forward" vs "this should be reconciled as if I applied this when I created the cluster" was the what users would want / expect. I think the former is good enough to start until there's a real demand. |
/kind bug
What steps did you take and what happened:
Updating the
spec.Region
on an AWSCluster results in the cluster going into a broken state. I don't think we want to support changing a cluster's region at all, so we probably should enforce that it is an immutable field.What did you expect to happen:
Either the cluster tears down resources in one region and recreates them in another, or more plausibly refuses to allow users to change the region.
Environment:
kubectl version
): 1.17.3The text was updated successfully, but these errors were encountered: