This repository has been archived by the owner on Dec 30, 2020. It is now read-only.
/
clusterkind.go
61 lines (59 loc) · 1.95 KB
/
clusterkind.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package kinds
//ClusterKind ...
type ClusterKind struct {
APIVersion string `yaml:"APIVersion"`
Kind string `yaml:"Kind"`
Strategy []struct {
Provider Provider `yaml:"Provider"`
} `yaml:"Strategy"`
}
type ProviderCluster struct {
InitialNodeCount int `yaml:"InitialNodeCount"`
InitialNodeType string `yaml:"InitialNodeType"`
Labels map[string]string `yaml:"Labels"`
Name string `yaml:"Name"`
Project string `yaml:"Project"`
NodePools []struct {
NodePool struct {
Count int `yaml:"Count"`
Labels map[string]string `yaml:"Labels"`
Name string `yaml:"Name"`
NodeType string `yaml:"NodeType"`
} `yaml:"NodePool"`
} `yaml:"NodePools"`
//Typically used for Minikube configuration at the node level
NodeConfiguration struct {
CPU int `yaml:"CPU"`
DiskSize string `yaml:"DiskSize"`
ExtraConfiguration struct {
ApiserverEnableAdmissionPlugins []string `yaml:"apiserver.enable-admission-plugins"`
} `yaml:"ExtraConfiguration"`
Memory int `yaml:"Memory"`
VMDriver string `yaml:"VMDriver"`
} `yaml:"NodeConfiguration"`
RoleARN string `yaml:"RoleARN"`
KubernetesVersion string `yaml:"KubernetesVersion"`
SecurityGroupID []string `yaml:"SecurityGroupId"`
SubnetID []string `yaml:"SubnetId"`
OauthScopes []string `yaml:"OauthScopes"`
PostInstallHook []struct {
Execute struct {
Shell string `yaml:"Shell"`
Path string `yaml:"Path"`
} `yaml:"Execute"`
} `yaml:"PostInstallHook"`
PostDeleteHook []struct {
Execute struct {
Shell string `yaml:"Shell"`
Path string `yaml:"Path"`
} `yaml:"Execute"`
} `yaml:"PostDeleteHook"`
Region string `yaml:"Region"`
Zones []string `yaml:"Zones"`
}
type Provider struct {
Clusters []struct {
Cluster ProviderCluster `yaml:"Cluster"`
} `yaml:"Clusters"`
Name string `yaml:"Name"`
}