mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 16:35:29 -05:00
fix(eks): accept a cluster's unchanged ipFamily and serviceIpv4Cidr in UpdateClusterConfig (#9715)
UpdateClusterConfig refused every kubernetesNetworkConfig member other than elasticLoadBalancing, so turning EKS Auto Mode on through the Terraform AWS provider failed: its update carries the cluster's current ipFamily and serviceIpv4Cidr beside elasticLoadBalancing. The cluster's own values are now accepted unchanged, ipFamily in any case. Another value for either is still refused, as EKS sets both only when it creates a cluster and Floci doesn't change them.
This commit is contained in:
1 parent
2e707b4b4b
commit
3909e10e2e
4 files changed
+113
-6
No files matched your search
@@ -429,9 +429,10 @@ neither is accepted, as AWS accepts it for Auto Mode without its built-in node p
|
||||
`UpdateClusterConfig` turns Auto Mode on or off for an existing cluster and changes its node pools, taking
|
||||
`computeConfig`, `storageConfig` and `kubernetesNetworkConfig.elasticLoadBalancing` together as one update, which
|
||||
it records as an `AutoModeUpdate`. A member the request leaves out keeps its stored value, and while compute stays
|
||||
on, a `computeConfig` without `nodeRoleArn` keeps the cluster's role, which can't change while it is on. A request
|
||||
that changes nothing is refused with `InvalidRequestException` ("No changes needed for EKS Auto Mode
|
||||
configuration provided").
|
||||
on, a `computeConfig` without `nodeRoleArn` keeps the cluster's role, which can't change while it is on. The
|
||||
`kubernetesNetworkConfig` may also carry the cluster's current `ipFamily` and `serviceIpv4Cidr`, as the Terraform
|
||||
AWS provider sends them; another value for either is refused, as Floci doesn't change them. A request that changes
|
||||
nothing is refused with `InvalidRequestException` ("No changes needed for EKS Auto Mode configuration provided").
|
||||
|
||||
In CloudFormation, `AWS::EKS::Cluster` creates its cluster with `ComputeConfig`, `StorageConfig` and
|
||||
`KubernetesNetworkConfig.ElasticLoadBalancing`, and an update changes them in place through `UpdateClusterConfig`:
|
||||
|
||||
Reference in new issue
Block a user