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
311 lines (292 loc) · 11.7 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
package helm
import (
"github.com/caos/orbos/internal/operator/boom/api/latest/k8s"
)
type Image struct {
Repository string `yaml:"repository"`
Tag string `yaml:"tag"`
ImagePullPolicy string `yaml:"imagePullPolicy"`
}
type Global struct {
Image *Image `yaml:"image"`
SecurityContext struct{} `yaml:"securityContext"`
}
type Args struct {
StatusProcessors string `yaml:"statusProcessors"`
OperationProcessors string `yaml:"operationProcessors"`
}
type ReadinessProbe struct {
FailureThreshold int `yaml:"failureThreshold"`
InitialDelaySeconds int `yaml:"initialDelaySeconds"`
PeriodSeconds int `yaml:"periodSeconds"`
SuccessThreshold int `yaml:"successThreshold"`
TimeoutSeconds int `yaml:"timeoutSeconds"`
}
type LivenessProbe struct {
FailureThreshold int `yaml:"failureThreshold"`
InitialDelaySeconds int `yaml:"initialDelaySeconds"`
PeriodSeconds int `yaml:"periodSeconds"`
SuccessThreshold int `yaml:"successThreshold"`
TimeoutSeconds int `yaml:"timeoutSeconds"`
}
type Service struct {
Annotations map[string]string `yaml:"annotations"`
Labels map[string]string `yaml:"labels"`
Port int `yaml:"port"`
}
type ServiceAccount struct {
Create bool `yaml:"create"`
Name string `yaml:"name"`
}
type MetricsService struct {
Annotations map[string]string `yaml:"annotations"`
Labels map[string]string `yaml:"labels"`
ServicePort int `yaml:"servicePort"`
}
type ServiceMonitor struct {
Enabled bool `yaml:"enabled"`
}
type Rules struct {
Enabled bool `yaml:"enabled"`
Spec []interface{} `yaml:"spec"`
}
type Metrics struct {
Enabled bool `yaml:"enabled"`
Service *MetricsService `yaml:"service"`
ServiceMonitor *ServiceMonitor `yaml:"serviceMonitor"`
Rules *Rules `yaml:"rules"`
}
type ClusterAdminAccess struct {
Enabled bool `yaml:"enabled"`
}
type ConfigMap struct {
Name string `yaml:"name,omitempty"`
DefaultMode int `yaml:"defaultMode,omitempty"`
}
type VolumeSecret struct {
SecretName string `yaml:"secretName,omitempty"`
Items []*Item `yaml:"items,omitempty"`
DefaultMode int `yaml:"defaultMode"`
}
type Item struct {
Key string `yaml:"key"`
Path string `yaml:"path"`
}
type Volume struct {
Secret *VolumeSecret `yaml:"secret,omitempty"`
ConfigMap *ConfigMap `yaml:"configMap,omitempty"`
Name string `yaml:"name"`
EmptyDir struct{} `yaml:"emptyDir,omitempty"`
}
type VolumeMount struct {
Name string `yaml:"name"`
MountPath string `yaml:"mountPath,omitempty"`
SubPath string `yaml:"subPath,omitempty"`
ReadOnly bool `yaml:"readOnly,omitempty"`
}
type Controller struct {
Name string `yaml:"name"`
Image *Image `yaml:"image"`
Args *Args `yaml:"args"`
LogLevel string `yaml:"logLevel"`
ExtraArgs struct{} `yaml:"extraArgs"`
Env []interface{} `yaml:"env"`
PodAnnotations map[string]string `yaml:"podAnnotations"`
PodLabels map[string]string `yaml:"podLabels"`
ContainerPort int `yaml:"containerPort"`
ReadinessProbe *ReadinessProbe `yaml:"readinessProbe"`
LivenessProbe *LivenessProbe `yaml:"livenessProbe"`
VolumeMounts []*VolumeMount `yaml:"volumeMounts"`
Volumes []*Volume `yaml:"volumes"`
Service *Service `yaml:"service"`
NodeSelector map[string]string `yaml:"nodeSelector"`
Tolerations k8s.Tolerations `yaml:"tolerations"`
Affinity struct{} `yaml:"affinity"`
PriorityClassName string `yaml:"priorityClassName"`
Resources *k8s.Resources `yaml:"resources"`
ServiceAccount *ServiceAccount `yaml:"serviceAccount"`
Metrics *Metrics `yaml:"metrics"`
ClusterAdminAccess *ClusterAdminAccess `yaml:"clusterAdminAccess"`
}
type Dex struct {
Enabled bool `yaml:"enabled"`
Name string `yaml:"name"`
Image *Image `yaml:"image"`
InitImage *Image `yaml:"initImage,omitempty"`
Env []interface{} `yaml:"env"`
ServiceAccount *ServiceAccount `yaml:"serviceAccount"`
VolumeMounts []*VolumeMount `yaml:"volumeMounts"`
Volumes []*Volume `yaml:"volumes"`
ContainerPortHTTP int `yaml:"containerPortHttp"`
ServicePortHTTP int `yaml:"servicePortHttp"`
ContainerPortGrpc int `yaml:"containerPortGrpc"`
ServicePortGrpc int `yaml:"servicePortGrpc"`
NodeSelector map[string]string `yaml:"nodeSelector"`
Tolerations k8s.Tolerations `yaml:"tolerations"`
Affinity struct{} `yaml:"affinity"`
PriorityClassName string `yaml:"priorityClassName"`
Resources *k8s.Resources `yaml:"resources"`
}
type Redis struct {
Enabled bool `yaml:"enabled"`
Name string `yaml:"name"`
Image *Image `yaml:"image"`
ContainerPort int `yaml:"containerPort"`
ServicePort int `yaml:"servicePort"`
Env []interface{} `yaml:"env"`
NodeSelector map[string]string `yaml:"nodeSelector"`
Tolerations k8s.Tolerations `yaml:"tolerations"`
Affinity struct{} `yaml:"affinity"`
PriorityClassName string `yaml:"priorityClassName"`
Resources *k8s.Resources `yaml:"resources"`
VolumeMounts []*VolumeMount `yaml:"volumeMounts"`
Volumes []*Volume `yaml:"volumes"`
}
type Certificate struct {
Enabled bool `yaml:"enabled"`
Domain string `yaml:"domain"`
Issuer struct{} `yaml:"issuer"`
AdditionalHosts []interface{} `yaml:"additionalHosts"`
}
type ServerService struct {
Annotations map[string]string `yaml:"annotations"`
Labels map[string]string `yaml:"labels"`
Type string `yaml:"type"`
ServicePortHTTP int `yaml:"servicePortHttp"`
ServicePortHTTPS int `yaml:"servicePortHttps"`
}
type Ingress struct {
Enabled bool `yaml:"enabled"`
Annotations map[string]string `yaml:"annotations"`
Labels map[string]string `yaml:"labels"`
Hosts []interface{} `yaml:"hosts"`
Paths []string `yaml:"paths"`
TLS []interface{} `yaml:"tls"`
}
type Route struct {
Enabled bool `yaml:"enabled"`
Hostname string `yaml:"hostname"`
}
type Config struct {
URL string `yaml:"url"`
ApplicationInstanceLabelKey string `yaml:"application.instanceLabelKey"`
OIDC string `yaml:"oidc.config,omitempty"`
Dex string `yaml:"dex.config,omitempty"`
Repositories string `yaml:"repositories,omitempty"`
RepositoryCredentials string `yaml:"repository.credentials,omitempty"`
ConfigManagementPlugins string `yaml:"configManagementPlugins,omitempty"`
}
type Server struct {
Name string `yaml:"name"`
Image *Image `yaml:"image"`
ExtraArgs []string `yaml:"extraArgs"`
Env []interface{} `yaml:"env"`
LogLevel string `yaml:"logLevel"`
PodAnnotations map[string]string `yaml:"podAnnotations"`
PodLabels map[string]string `yaml:"podLabels"`
ContainerPort int `yaml:"containerPort"`
ReadinessProbe *ReadinessProbe `yaml:"readinessProbe"`
LivenessProbe *LivenessProbe `yaml:"livenessProbe"`
VolumeMounts []*VolumeMount `yaml:"volumeMounts"`
Volumes []*Volume `yaml:"volumes"`
NodeSelector map[string]string `yaml:"nodeSelector"`
Tolerations k8s.Tolerations `yaml:"tolerations"`
Affinity struct{} `yaml:"affinity"`
PriorityClassName string `yaml:"priorityClassName"`
Resources *k8s.Resources `yaml:"resources"`
Certificate *Certificate `yaml:"certificate"`
Service *ServerService `yaml:"service"`
Metrics *Metrics `yaml:"metrics"`
ServiceAccount *ServiceAccount `yaml:"serviceAccount"`
Ingress *Ingress `yaml:"ingress"`
Route *Route `yaml:"route"`
Config *Config `yaml:"config"`
RbacConfig *RbacConfig `yaml:"rbacConfig,omitempty"`
AdditionalApplications []interface{} `yaml:"additionalApplications"`
AdditionalProjects []interface{} `yaml:"additionalProjects"`
}
type RbacConfig struct {
Csv string `yaml:"policy.csv,omitempty"`
Default string `yaml:"policy.default,omitempty"`
Scopes string `yaml:"scopes,omitempty"`
}
type RepoServer struct {
Name string `yaml:"name"`
Image *Image `yaml:"image"`
ExtraArgs []string `yaml:"extraArgs"`
Env []interface{} `yaml:"env"`
LogLevel string `yaml:"logLevel"`
PodAnnotations map[string]string `yaml:"podAnnotations"`
PodLabels map[string]string `yaml:"podLabels"`
ContainerPort int `yaml:"containerPort"`
ReadinessProbe *ReadinessProbe `yaml:"readinessProbe"`
LivenessProbe *LivenessProbe `yaml:"livenessProbe"`
VolumeMounts []*VolumeMount `yaml:"volumeMounts"`
Volumes []*Volume `yaml:"volumes"`
NodeSelector map[string]string `yaml:"nodeSelector"`
Tolerations k8s.Tolerations `yaml:"tolerations"`
Affinity struct{} `yaml:"affinity"`
PriorityClassName string `yaml:"priorityClassName"`
Resources *k8s.Resources `yaml:"resources"`
Service *Service `yaml:"service"`
Metrics *Metrics `yaml:"metrics"`
ServiceAccount *ServiceAccount `yaml:"serviceAccount"`
}
type Data struct {
Data map[string]string `yaml:"data"`
}
type Secret struct {
CreateSecret bool `yaml:"createSecret"`
GithubSecret string `yaml:"githubSecret"`
GitlabSecret string `yaml:"gitlabSecret"`
BitbucketServerSecret string `yaml:"bitbucketServerSecret"`
BitbucketUUD string `yaml:"bitbucketUUÌD"`
GogsSecret string `yaml:"gogsSecret"`
ArgocdServerTLSConfig struct {
} `yaml:"argocdServerTlsConfig"`
}
type Configs struct {
KnownHosts *Data `yaml:"knownHosts"`
TLSCerts *Data `yaml:"tlsCerts"`
Secret *Secret `yaml:"secret"`
}
type RedisHAConfig struct {
Save string
}
type RedisHAC struct {
MasterGroupName string
Config *RedisHAConfig
}
type HAProxyMetrics struct {
Enabled bool
}
type HAProxy struct {
Enabled bool
Metrics *HAProxyMetrics
}
type Exporter struct {
Enabled bool
}
type RedisHA struct {
Enabled bool
Exporter *Exporter
PersistenteVolume *PV
Redis *RedisHAC
HAProxy *HAProxy
}
type PV struct {
Enabled bool
}
type Values struct {
NameOverride string `yaml:"nameOverride,omitempty"`
FullnameOverride string `yaml:"fullnameOverride,omitempty"`
InstallCRDs bool `yaml:"installCRDs"`
Global *Global `yaml:"global"`
Controller *Controller `yaml:"controller"`
Dex *Dex `yaml:"dex"`
Redis *Redis `yaml:"redis"`
RedisHA *RedisHA `yaml:"redis-ha"`
Server *Server `yaml:"server"`
RepoServer *RepoServer `yaml:"repoServer"`
Configs *Configs `yaml:"configs"`
}