/
options.go
29 lines (25 loc) · 955 Bytes
/
options.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
package utils
type OptionsContainer struct {
Options Options `yaml:"options"`
}
// Define options available for Tests to consume
type Options struct {
HubCluster HOHCluster `yaml:"hub"`
ManagedClusters []ManagedCluster `yaml:"clusters"`
}
// Define the shape of clusters that may be added under management
type HOHCluster struct {
Name string `yaml:"name,omitempty"`
Namespace string `yaml:"namespace,omitempty"`
ApiServer string `yaml:"apiServer,omitempty"`
KubeConfig string `yaml:"kubeconfig,omitempty"`
KubeContext string `yaml:"kubecontext,omitempty"`
Nonk8sApiServer string `yaml:"nonk8sApiServer,omitempty"`
DatabaseURI string `yaml:"databaseURI,omitempty"`
}
type ManagedCluster struct {
Name string `yaml:"name,omitempty"`
LeafHubName string `yaml:"leafhubname,omitempty"`
KubeConfig string `yaml:"kubeconfig,omitempty"`
KubeContext string `yaml:"kubecontext,omitempty"`
}