forked from bsteciuk/kismatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplanfile.go
56 lines (54 loc) · 1.42 KB
/
planfile.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
package integration
type ClusterPlan struct {
Cluster struct {
Name string
AdminPassword string `yaml:"admin_password"`
DisablePackageInstallation string `yaml:"disable_package_installation"`
Networking struct {
Type string
PodCIDRBlock string `yaml:"pod_cidr_block"`
ServiceCIDRBlock string `yaml:"service_cidr_block"`
}
Certificates struct {
Expiry string
LocationCity string `yaml:"location_city"`
LocationState string `yaml:"location_state"`
LocationCountry string `yaml:"location_country"`
}
SSH struct {
User string
Key string `yaml:"ssh_key"`
Port int `yaml:"ssh_port"`
}
}
Etcd struct {
ExpectedCount int `yaml:"expected_count"`
Nodes []NodePlan
}
Master struct {
ExpectedCount int `yaml:"expected_count"`
Nodes []NodePlan
LoadBalancedFQDN string `yaml:"load_balanced_fqdn"`
LoadBalancedShortName string `yaml:"load_balanced_short_name"`
}
Worker struct {
ExpectedCount int `yaml:"expected_count"`
Nodes []NodePlan
}
Ingress struct {
ExpectedCount int `yaml:"expected_count"`
Nodes []NodePlan
}
Storage struct {
ExpectedCount int `yaml:"expected_count"`
Nodes []NodePlan
}
NFS struct {
Volumes []NFSVolume `yaml:"nfs_volume"`
}
}
type NodePlan struct {
host string
ip string
internalip string
}