Newer
Older
{{- if and .Values.istio.enabled .Values.monitoring.sso.enabled }}
Josh Wolf
committed
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
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: haproxy-sso
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: haproxy
app.kubernetes.io/component: "developer-tools"
{{- include "commonLabels" . | nindent 4}}
spec:
targetNamespace: authservice
chart:
spec:
chart: "./chart"
interval: 5m
sourceRef:
kind: GitRepository
name: haproxy
namespace: {{ .Release.Namespace }}
valuesFrom:
- name: {{ .Release.Name }}-haproxy-sso-values
kind: Secret
valuesKey: "common"
- name: {{ .Release.Name }}-haproxy-sso-values
kind: Secret
valuesKey: "defaults"
- name: {{ .Release.Name }}-haproxy-sso-values
kind: Secret
valuesKey: "overlays"
{{- with .Values.flux }}
interval: {{ .interval }}
test:
enable: false
install:
remediation:
retries: {{ .install.retries }}
upgrade:
remediation:
retries: {{ .upgrade.retries }}
remediateLastFailure: true
cleanupOnFail: true
rollback:
timeout: {{ .rollback.timeout }}
cleanupOnFail: {{ .rollback.cleanupOnFail }}
{{- end }}
dependsOn:
{{- if .Values.istio.enabled }}
- name: istio
namespace: {{ .Release.Namespace }}
{{- end }}
{{- if .Values.monitoring.enabled }}
- name: monitoring
namespace: {{ .Release.Namespace }}
{{- end }}
{{- end }}