-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
config.go
30 lines (26 loc) · 1.08 KB
/
config.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
package config
type TalhelperConfig struct {
ClusterName string `yaml:"clusterName"`
TalosVersion string `yaml:"talosVersion"`
KubernetesVersion string `yaml:"KubernetesVersion"`
Endpoint string `yaml:"endpoint"`
Nodes []nodes `yaml:"nodes"`
ControlPlane controlPlane `yaml:"controlPlane"`
Worker worker `yaml:"worker"`
}
type nodes struct {
Hostname string `yaml:"hostname"`
Domain string `yaml:"domain"`
IPAddress string `yaml:"ipAddress"`
ControlPlane bool `yaml:"controlPlane"`
InstallDisk string `yaml:"installDisk"`
InlinePatch map[string]interface{} `yaml:"inlinePatch"`
}
type controlPlane struct {
ConfigPatches []map[string]interface{} `yaml:"patches,omitempty"`
InlinePatch map[string]interface{} `yaml:"inlinePatches,omitempty"`
}
type worker struct {
ConfigPatches []map[string]interface{} `yaml:"patches,omitempty"`
InlinePatch map[string]interface{} `yaml:"inlinePatches,omitempty"`
}