Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions pkg/apis/eksctl.io/v1alpha5/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,6 @@ func (c *ClusterConfig) validateRemoteNetworkingConfig() error {
return nil
}

if !IsEnabled(c.VPC.ClusterEndpoints.PublicAccess) {
return fmt.Errorf("remoteNetworkConfig requires public cluster endpoint access")
}

if c.IsFullyPrivate() {
return fmt.Errorf("remoteNetworkConfig is not supported on fully private EKS cluster")
}

if c.IPv6Enabled() {
return fmt.Errorf("remoteNetworkConfig is not supported on EKS cluster configured with IPv6 address family")
}
Expand Down
8 changes: 6 additions & 2 deletions pkg/apis/eksctl.io/v1alpha5/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -993,16 +993,20 @@ var _ = Describe("ClusterConfig validation", func() {
cc.VPC.ClusterEndpoints = &api.ClusterEndpoints{
PublicAccess: api.Disabled(),
}
cc.RemoteNetworkConfig.IAM = &api.RemoteNodesIAM{
Provider: aws.String("BLOB"),
}
},
expectedErr: "remoteNetworkConfig requires public cluster endpoint access",
}),
Entry("fully private EKS cluster", remoteNetworkConfigEntry{
overrideConfig: func(cc *api.ClusterConfig) {
cc.PrivateCluster = &api.PrivateCluster{
Enabled: true,
}
cc.RemoteNetworkConfig.IAM = &api.RemoteNodesIAM{
Provider: aws.String("BLOB"),
}
},
expectedErr: "remoteNetworkConfig is not supported on fully private EKS cluster",
}),
Entry("IPv6 family", remoteNetworkConfigEntry{
overrideConfig: func(cc *api.ClusterConfig) {
Expand Down
Loading