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
80 lines (79 loc) · 3.46 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
package helm
type Rbac struct {
Create bool `yaml:"create"`
PspEnabled bool `yaml:"pspEnabled"`
}
type ServiceAccount struct {
Create bool `yaml:"create"`
Name string `yaml:"name,omitempty"`
}
type APIService struct {
Create bool `yaml:"create"`
}
type HostNetwork struct {
Enabled bool `yaml:"enabled"`
}
type Image struct {
Repository string `yaml:"repository"`
Tag string `yaml:"tag"`
PullPolicy string `yaml:"pullPolicy"`
}
type HTTPGet struct {
Path string `yaml:"path,omitempty"`
Port string `yaml:"port,omitempty"`
Scheme string `yaml:"scheme,omitempty"`
}
type LivenessProbe struct {
HTTPGet *HTTPGet `yaml:"httpGet,omitempty"`
InitialDelaySeconds int `yaml:"initialDelaySeconds,omitempty"`
}
type ReadinessProbe struct {
HTTPGet *HTTPGet `yaml:"httpGet,omitempty"`
InitialDelaySeconds int `yaml:"initialDelaySeconds,omitempty"`
}
type Capabilities struct {
Drop []string `yaml:"drop,omitempty"`
}
type SecurityContext struct {
AllowPrivilegeEscalation bool `yaml:"allowPrivilegeEscalation,omitempty"`
Capabilities *Capabilities `yaml:"capabilities,omitempty"`
ReadOnlyRootFilesystem bool `yaml:"readOnlyRootFilesystem,omitempty"`
RunAsGroup int `yaml:"runAsGroup,omitempty"`
RunAsNonRoot bool `yaml:"runAsNonRoot,omitempty"`
RunAsUser int `yaml:"runAsUser,omitempty"`
}
type Service struct {
Annotations map[string]string `yaml:"annotations,omitempty"`
Labels map[string]string `yaml:"labels,omitempty"`
Port int `yaml:"port,omitempty"`
Type string `yaml:"type,omitempty"`
}
type PodDisruptionBudget struct {
Enabled bool `yaml:"enabled"`
MinAvailable interface{} `yaml:"minAvailable,omitempty"`
MaxUnavailable interface{} `yaml:"maxUnavailable,omitempty"`
}
type Values struct {
Rbac *Rbac `yaml:"rbac,omitempty"`
ServiceAccount *ServiceAccount `yaml:"serviceAccount,omitempty"`
APIService *APIService `yaml:"apiService,omitempty"`
HostNetwork *HostNetwork `yaml:"hostNetwork,omitempty"`
Image *Image `yaml:"image,omitempty"`
ImagePullSecrets []interface{} `yaml:"imagePullSecrets,omitempty"`
Args []string `yaml:"args,omitempty"`
Resources struct{} `yaml:"resources,omitempty"`
NodeSelector struct{} `yaml:"nodeSelector,omitempty"`
Tolerations []interface{} `yaml:"tolerations,omitempty"`
Affinity struct{} `yaml:"affinity,omitempty"`
Replicas int `yaml:"replicas,omitempty"`
ExtraContainers []interface{} `yaml:"extraContainers"`
PodLabels map[string]string `yaml:"podLabels,omitempty"`
PodAnnotations map[string]string `yaml:"podAnnotations,omitempty"`
ExtraVolumeMounts []interface{} `yaml:"extraVolumeMounts,omitempty"`
ExtraVolumes []interface{} `yaml:"extraVolumes,omitempty"`
LivenessProbe *LivenessProbe `yaml:"livenessProbe,omitempty"`
ReadinessProbe *ReadinessProbe `yaml:"readinessProbe,omitempty"`
SecurityContext *SecurityContext `yaml:"securityContext,omitempty"`
Service *Service `yaml:"service,omitempty"`
PodDisruptionBudget *PodDisruptionBudget `yaml:"podDisruptionBudget,omitempty"`
}