1
1
{{- $v := .Values }}
2
+ {{- $a := $v.apps.argocd }}
2
3
{{- $k := $v.apps.keycloak }}
3
4
global:
4
5
domain: argocd.{{ $v.cluster.domainSuffix }}
@@ -21,14 +22,22 @@ applicationSet:
21
22
22
23
controller:
23
24
autoscaling:
24
- enabled: true
25
+ enabled: {{ $a.autoscaling.enabled }}
26
+ maxReplicas: {{ $a.autoscaling.maxReplicas }}
27
+ minReplicas: {{ $a.autoscaling.minReplicas }}
28
+ targetCPUUtilizationPercentage: {{ $a.autoscaling.targetCPUUtilizationPercentage }}
29
+
25
30
resources:
31
+ {{- with $a | get "resources.controller" nil }}
32
+ {{- toYaml .| nindent 4 }}
33
+ {{- else }}
26
34
limits:
27
35
cpu: 1
28
- memory: 1Gi
36
+ memory: 2Gi
29
37
requests:
30
38
cpu: 100m
31
- memory: 256M
39
+ memory: 1Gi
40
+ {{- end }}
32
41
dex:
33
42
enabled: false
34
43
notifications:
@@ -43,32 +52,52 @@ notifications:
43
52
memory: 256M
44
53
redis:
45
54
resources:
55
+ {{- with $a | get "resources.redis" nil }}
56
+ {{- toYaml .| nindent 4 }}
57
+ {{- else }}
46
58
limits:
47
59
cpu: 1
48
60
memory: 1Gi
49
61
requests:
50
62
cpu: 100m
51
63
memory: 256M
64
+ {{- end }}
52
65
repoServer:
53
66
autoscaling:
54
- enabled: true
67
+ enabled: {{ $a.autoscaling.enabled }}
68
+ maxReplicas: {{ $a.autoscaling.maxReplicas }}
69
+ minReplicas: {{ $a.autoscaling.minReplicas }}
70
+ targetCPUUtilizationPercentage: {{ $a.autoscaling.targetCPUUtilizationPercentage }}
71
+
55
72
resources:
73
+ {{- with $a | get "resources.repo" nil }}
74
+ {{- toYaml .| nindent 4 }}
75
+ {{- else }}
56
76
limits:
57
77
cpu: 1
58
78
memory: 1Gi
59
79
requests:
60
80
cpu: 100m
61
81
memory: 256M
82
+ {{- end }}
62
83
server:
63
84
autoscaling:
64
- enabled: true
85
+ enabled: {{ $a.autoscaling.enabled }}
86
+ maxReplicas: {{ $a.autoscaling.maxReplicas }}
87
+ minReplicas: {{ $a.autoscaling.minReplicas }}
88
+ targetCPUUtilizationPercentage: {{ $a.autoscaling.targetCPUUtilizationPercentage }}
89
+
65
90
resources:
91
+ {{- with $a | get "resources.server" nil }}
92
+ {{- toYaml .| nindent 4 }}
93
+ {{- else }}
66
94
limits:
67
95
cpu: 1
68
96
memory: 1Gi
69
97
requests:
70
98
cpu: 100m
71
99
memory: 256M
100
+ {{- end }}
72
101
configs:
73
102
# General Argo CD configuration
74
103
## Ref: https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/argocd-cm.yaml
@@ -80,6 +109,8 @@ configs:
80
109
statusbadge.enabled: "false"
81
110
url: https://argocd.{{ $v.cluster.domainSuffix }}
82
111
users.anonymous.enabled: "false"
112
+ # Note that the clientSecret is not actually used
113
+ # as for now oauth2-proxy handles the login
83
114
oidc.config: |
84
115
name: Otomi
85
116
issuer: {{ $v._derived.oidcBaseUrl }}
@@ -103,7 +134,7 @@ configs:
103
134
104
135
secret:
105
136
extra:
106
- clientSecret: {{ $k.idp.clientSecret | b64enc }}
137
+ oidc. clientSecret: {{ $k.idp.clientSecret }}
107
138
params:
108
139
server.insecure: true # nginx terminates tls
109
140
0 commit comments