This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
values.go
69 lines (59 loc) · 2.31 KB
/
values.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
62
63
64
65
66
67
68
69
package helm
import "github.com/caos/orbos/internal/operator/boom/api/v1beta2/k8s"
type Image struct {
Repository string `yaml:"repository"`
Tag string `yaml:"tag"`
PullPolicy string `yaml:"pullPolicy"`
}
type Service struct {
Type string `yaml:"type"`
Port int `yaml:"port"`
TargetPort int `yaml:"targetPort"`
NodePort interface{} `yaml:"nodePort"`
Annotations map[string]string `yaml:"annotations"`
}
type Prometheus struct {
Monitor *Monitor `yaml:"monitor"`
}
type Monitor struct {
Enabled bool `yaml:"enabled"`
AdditionalLabels map[string]string `yaml:"additionalLabels"`
Namespace string `yaml:"namespace"`
ScrapeTimeout string `yaml:"scrapeTimeout"`
}
type ServiceAccount struct {
Create bool `yaml:"create"`
Name interface{} `yaml:"name"`
ImagePullSecrets []interface{} `yaml:"imagePullSecrets"`
}
type SecurityContext struct {
RunAsNonRoot bool `yaml:"runAsNonRoot"`
RunAsUser int `yaml:"runAsUser"`
}
type Rbac struct {
Create bool `yaml:"create"`
PspEnabled bool `yaml:"pspEnabled"`
}
type Toleration struct {
Effect string `yaml:"effect"`
Operator string `yaml:"operator"`
}
type Values struct {
FullnameOverride string `yaml:"fullnameOverride,omitempty"`
Image *Image `yaml:"image"`
Service *Service `yaml:"service"`
Prometheus *Prometheus `yaml:"prometheus"`
ServiceAccount *ServiceAccount `yaml:"serviceAccount"`
SecurityContext *SecurityContext `yaml:"securityContext"`
Rbac *Rbac `yaml:"rbac"`
Endpoints []interface{} `yaml:"endpoints"`
HostNetwork bool `yaml:"hostNetwork"`
Affinity interface{} `yaml:"affinity"`
NodeSelector map[string]string `yaml:"nodeSelector"`
Tolerations []*Toleration `yaml:"tolerations"`
ExtraArgs []string `yaml:"extraArgs"`
ExtraHostVolumeMounts interface{} `yaml:"extraHostVolumeMounts"`
Configmaps interface{} `yaml:"configmaps"`
PodLabels map[string]string `yaml:"podLabels"`
Resources *k8s.Resources `yaml:"resources"`
}