-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Nodegroup creation is not supported with unowned ipv6 clusters #4322
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b0d7c2b
Check if managed addons are set when ipv6 is enabled
Skarlso f3e3d1a
Add OIDC check for ipv6 cluster
Skarlso 4666869
Add version check if ipv6 is defined
Skarlso ebe72a7
Setting vpc.NAT is not allowed with ipv6
Skarlso 9fdc667
serviceIPv4CIDR is not supported with ipv6
Skarlso 6bc7e76
Merge branch 'ipv6' into service_ipv4_cidr
Skarlso cbb0d74
AutoAllocateIPv6 is not supported together with ipv6
Skarlso 6ccf8a3
Unmanaged nodegroups are not supported
Skarlso c52b1e0
Nodegroup creation is not supported with unowned ipv6 clusters
Skarlso 3d3bdd6
Merge branch 'ipv6' into unowned_cluster_ipv6
Skarlso 71a8d94
Merge branch 'ipv6' into unowned_cluster_ipv6
Skarlso 974fad4
Merge branch 'ipv6' into unowned_cluster_ipv6
Skarlso 1434187
First iteration of modifying the interface for ownership determination
Skarlso d7a91da
Changed but kept the check in nodegroup builder
Skarlso 20d1569
Shifted the logic into the task building and removed the extra parame…
Skarlso 43fdc0a
Update pkg/cfn/manager/tasks_test.go
Skarlso File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,6 @@ import ( | |
| "github.com/weaveworks/eksctl/pkg/kubernetes" | ||
| "github.com/weaveworks/eksctl/pkg/printers" | ||
| "github.com/weaveworks/eksctl/pkg/utils" | ||
| utilsstrings "github.com/weaveworks/eksctl/pkg/utils/strings" | ||
| "github.com/weaveworks/eksctl/pkg/utils/tasks" | ||
| "github.com/weaveworks/eksctl/pkg/vpc" | ||
|
|
||
|
|
@@ -73,10 +72,6 @@ func (m *Manager) Create(options CreateOpts, nodegroupFilter filter.NodegroupFil | |
| return errors.New("Managed Nodegroups are not supported for this cluster version. Please update the cluster before adding managed nodegroups") | ||
| } | ||
|
|
||
| if utilsstrings.Value(cfg.VPC.IPFamily) == string(api.IPV6Family) && len(cfg.NodeGroups) > 0 { | ||
| return errors.New("unmanaged nodegroups are not supported with IPv6 clusters") | ||
| } | ||
|
|
||
| if err := eks.ValidateBottlerocketSupport(ctl.ControlPlaneVersion(), cmdutils.ToKubeNodeGroups(cfg)); err != nil { | ||
| return err | ||
| } | ||
|
|
@@ -137,7 +132,7 @@ func (m *Manager) Create(options CreateOpts, nodegroupFilter filter.NodegroupFil | |
| return cmdutils.PrintNodeGroupDryRunConfig(clusterConfigCopy, os.Stdout) | ||
| } | ||
|
|
||
| if err := m.nodeCreationTasks(options, nodegroupFilter, supportsManagedNodes, isOwnedCluster); err != nil { | ||
| if err := m.nodeCreationTasks(supportsManagedNodes, isOwnedCluster); err != nil { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unused parameters |
||
| return err | ||
| } | ||
|
|
||
|
|
@@ -152,7 +147,7 @@ func (m *Manager) Create(options CreateOpts, nodegroupFilter filter.NodegroupFil | |
| return nil | ||
| } | ||
|
|
||
| func (m *Manager) nodeCreationTasks(options CreateOpts, nodegroupFilter filter.NodegroupFilter, supportsManagedNodes, isOwnedCluster bool) error { | ||
| func (m *Manager) nodeCreationTasks(supportsManagedNodes, isOwnedCluster bool) error { | ||
| cfg := m.cfg | ||
| meta := cfg.Metadata | ||
| init := m.init | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Turns out this will eventually call the task creation in the end. Which means this will eventually fail there so there is no need to duplicate this logic in the create.