/
create_cluster.go
47 lines (41 loc) · 1.23 KB
/
create_cluster.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package cmdutils
import (
api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5"
)
// CreateClusterCmdParams groups CLI options for the create cluster command.
type CreateClusterCmdParams struct {
WriteKubeconfig bool
KubeconfigPath string
AutoKubeconfigPath bool
AuthenticatorRoleARN string
SetContext bool
AvailabilityZones []string
InstallWindowsVPCController bool
KopsClusterNameForVPC string
Subnets map[api.SubnetTopology]*[]string
WithoutNodeGroup bool
Fargate bool
DryRun bool
CreateNGOptions
CreateManagedNGOptions
}
// NodeGroupOptions holds options for creating nodegroups.
type NodeGroupOptions struct {
CreateNGOptions
CreateManagedNGOptions
UpdateAuthConfigMap *bool
SkipOutdatedAddonsCheck bool
SubnetIDs []string
}
// CreateManagedNGOptions holds options for creating a managed nodegroup
type CreateManagedNGOptions struct {
Managed bool
Spot bool
InstanceTypes []string
}
// CreateNGOptions holds options for creating a nodegroup
type CreateNGOptions struct {
InstallNeuronDevicePlugin bool
InstallNvidiaDevicePlugin bool
DryRun bool
}