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
161 lines (144 loc) · 7.03 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
package helm
import (
"github.com/caos/orbos/internal/operator/boom/api/v1beta2/k8s"
corev1 "k8s.io/api/core/v1"
)
type Rules struct {
Alertmanager bool `yaml:"alertmanager"`
Etcd bool `yaml:"etcd"`
General bool `yaml:"general"`
K8S bool `yaml:"k8s"`
KubeApiserver bool `yaml:"kubeApiserver"`
KubePrometheusNodeAlerting bool `yaml:"kubePrometheusNodeAlerting"`
KubePrometheusNodeRecording bool `yaml:"kubePrometheusNodeRecording"`
KubernetesAbsent bool `yaml:"kubernetesAbsent"`
KubernetesApps bool `yaml:"kubernetesApps"`
KubernetesResources bool `yaml:"kubernetesResources"`
KubernetesStorage bool `yaml:"kubernetesStorage"`
KubernetesSystem bool `yaml:"kubernetesSystem"`
KubeScheduler bool `yaml:"kubeScheduler"`
Network bool `yaml:"network"`
Node bool `yaml:"node"`
Prometheus bool `yaml:"prometheus"`
PrometheusOperator bool `yaml:"prometheusOperator"`
Time bool `yaml:"time"`
}
type DefaultRules struct {
Create bool `yaml:"create"`
Rules *Rules `yaml:"rules"`
Labels map[string]string `yaml:"labels"`
Annotations map[string]string `yaml:"annotations"`
}
type Global struct {
Rbac *Rbac `yaml:"rbac"`
ImagePullSecrets []interface{} `yaml:"imagePullSecrets"`
}
type Rbac struct {
Create bool `yaml:"create"`
PspEnabled bool `yaml:"pspEnabled"`
}
type DisabledTool struct {
Enabled bool `yaml:"enabled"`
}
type TLSProxy struct {
Enabled bool `yaml:"enabled"`
Image *Image `yaml:"image"`
Resources interface{} `yaml:"resources"`
}
type Image struct {
Repository string `yaml:"repository"`
Tag string `yaml:"tag"`
PullPolicy string `yaml:"pullPolicy"`
}
type Patch struct {
Enabled bool `yaml:"enabled"`
Image *Image `yaml:"image"`
PriorityClassName string `yaml:"priorityClassName"`
PodAnnotations map[string]string `yaml:"podAnnotations"`
NodeSelector map[string]string `yaml:"nodeSelector"`
}
type AdmissionWebhooks struct {
FailurePolicy string `yaml:"failurePolicy"`
Enabled bool `yaml:"enabled"`
Patch *Patch `yaml:"patch"`
}
type ServiceAccount struct {
Create bool `yaml:"create"`
Name string `yaml:"name"`
}
type Service struct {
Annotations map[string]string `yaml:"annotations"`
Labels map[string]string `yaml:"labels"`
ClusterIP string `yaml:"clusterIP"`
NodePort int `yaml:"nodePort"`
NodePortTLS int `yaml:"nodePortTls"`
AdditionalPorts []interface{} `yaml:"additionalPorts"`
LoadBalancerIP string `yaml:"loadBalancerIP"`
LoadBalancerSourceRanges []interface{} `yaml:"loadBalancerSourceRanges"`
Type string `yaml:"type"`
ExternalIPs []interface{} `yaml:"externalIPs"`
}
type KubeletService struct {
Enabled bool `yaml:"enabled"`
Namespace string `yaml:"namespace"`
}
type ServiceMonitor struct {
Interval string `yaml:"interval"`
SelfMonitor bool `yaml:"selfMonitor"`
MetricRelabelings []interface{} `yaml:"metricRelabelings"`
Relabelings []interface{} `yaml:"relabelings"`
}
type SecurityContext struct {
RunAsNonRoot bool `yaml:"runAsNonRoot"`
RunAsUser int `yaml:"runAsUser"`
}
type PrometheusOperatorValues struct {
Enabled bool `yaml:"enabled"`
TLSProxy *TLSProxy `yaml:"tlsProxy"`
AdmissionWebhooks *AdmissionWebhooks `yaml:"admissionWebhooks"`
DenyNamespaces []string `yaml:"denyNamespaces"`
ServiceAccount *ServiceAccount `yaml:"serviceAccount"`
Service *Service `yaml:"service"`
CreateCustomResource bool `yaml:"createCustomResource"`
CrdAPIGroup string `yaml:"crdApiGroup"`
CleanupCustomResource bool `yaml:"cleanupCustomResource"`
PodLabels map[string]string `yaml:"podLabels"`
PodAnnotations map[string]string `yaml:"podAnnotations"`
KubeletService *KubeletService `yaml:"kubeletService"`
ServiceMonitor *ServiceMonitor `yaml:"serviceMonitor"`
NodeSelector map[string]string `yaml:"nodeSelector"`
Tolerations []corev1.Toleration `yaml:"tolerations"`
Affinity struct{} `yaml:"affinity"`
SecurityContext *SecurityContext `yaml:"securityContext"`
Image *Image `yaml:"image"`
ConfigmapReloadImage *Image `yaml:"configmapReloadImage"`
PrometheusConfigReloaderImage *Image `yaml:"prometheusConfigReloaderImage"`
ConfigReloaderCPU string `yaml:"configReloaderCpu"`
ConfigReloaderMemory string `yaml:"configReloaderMemory"`
HyperkubeImage *Image `yaml:"hyperkubeImage"`
Resources *k8s.Resources `yaml:"resources"`
}
type Values struct {
NameOverride string `yaml:"nameOverride,omitempty"`
FullnameOverride string `yaml:"fullnameOverride,omitempty"`
CommonLabels map[string]string `yaml:"commonLabels"`
DefaultRules *DefaultRules `yaml:"defaultRules"`
AdditionalPrometheusRules []interface{} `yaml:"additionalPrometheusRules"`
Global *Global `yaml:"global"`
Alertmanager *DisabledTool `yaml:"alertmanager"`
Grafana *DisabledTool `yaml:"grafana"`
KubeAPIServer *DisabledTool `yaml:"kubeApiServer"`
Kubelet *DisabledTool `yaml:"kubelet"`
KubeControllerManager *DisabledTool `yaml:"kubeControllerManager"`
CoreDNS *DisabledTool `yaml:"coreDns"`
KubeDNS *DisabledTool `yaml:"kubeDns"`
KubeEtcd *DisabledTool `yaml:"kubeEtcd"`
KubeScheduler *DisabledTool `yaml:"kubeScheduler"`
KubeProxy *DisabledTool `yaml:"kubeProxy"`
KubeStateMetricsScrap *DisabledTool `yaml:"kubeStateMetrics"`
KubeStateMetrics *DisabledTool `yaml:"kube-state-metrics"`
NodeExporter *DisabledTool `yaml:"nodeExporter"`
PrometheusNodeExporter *DisabledTool `yaml:"prometheus-node-exporter"`
PrometheusOperator *PrometheusOperatorValues `yaml:"prometheusOperator"`
Prometheus *DisabledTool `yaml:"prometheus"`
}