-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Use EKS APIs default vpc-cni addon version for ipv6 clusters #5078
Conversation
Name: api.VPCCNIAddon, | ||
Version: "latest", | ||
Name: api.VPCCNIAddon, | ||
}, | ||
{ | ||
Name: api.KubeProxyAddon, | ||
Version: "latest", | ||
Name: api.KubeProxyAddon, | ||
}, | ||
{ | ||
Name: api.CoreDNSAddon, | ||
Version: "latest", | ||
Name: api.CoreDNSAddon, |
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 should always check the default version works, encase we have to enforce any versions again in the future
@@ -270,7 +270,6 @@ func (c *ClusterConfig) unsupportedVPCCNIAddonVersion() (bool, error) { | |||
for _, addon := range c.Addons { | |||
if addon.Name == VPCCNIAddon { | |||
if addon.Version == "" { | |||
addon.Version = minimumVPCCNIVersionForIPv6 |
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.
so.... if it's empty we leave it empty?
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.
yep. Empty value means the EKS API uses the default value. E.g.:
eksctl utils describe-addon-versions --name vpc-cni --kubernetes-version 1.22
2022-04-06 15:22:57 [ℹ] eksctl version 0.88.0
2022-04-06 15:22:57 [ℹ] using region us-west-2
2022-04-06 15:22:57 [ℹ] describing addon versions for addon: vpc-cni
{
Addons: [{
AddonName: "vpc-cni",
AddonVersions: [
{
AddonVersion: "v1.10.2-eksbuild.1",
Architecture: ["amd64","arm64"],
Compatibilities: [{
ClusterVersion: "1.22",
DefaultVersion: false,
PlatformVersions: ["*"]
}]
},
{
AddonVersion: "v1.10.1-eksbuild.1",
Architecture: ["amd64","arm64"],
Compatibilities: [{
ClusterVersion: "1.22",
DefaultVersion: true,
PlatformVersions: ["*"]
}]
},
{
AddonVersion: "v1.9.3-eksbuild.1",
Architecture: ["amd64","arm64"],
Compatibilities: [{
ClusterVersion: "1.22",
DefaultVersion: false,
PlatformVersions: ["*"]
}]
},
{
v1.10.1-eksbuild.1
would be used
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.
gotcha, thanks
Description
Closes #5074
We used to set the version of the
vpc-cni
if no version was set when creating ipv6 clusters. c095e3b this was because the default version available by EKS wasn't supporting ipv6, so we had to mandate a minimum version. Now this minimum version isn't available on the EKS api for1.22
, so we shouldn't default to it, but we should still check the user provided version is greater than it.green run https://github.com/weaveworks/eksctl-ci/actions/runs/2103683555