blob: 1c6fa8735158ccf20b7427bb27479ef6e0ac770f [file] [log] [blame]
Giorgi Lekveishvili672af5d2023-07-12 11:57:51 +04001apiVersion: helm.toolkit.fluxcd.io/v2beta1
2kind: HelmRelease
3metadata:
4 name: soft-serve
5 namespace: {{ .Release.Namespace }}
6spec:
7 chart:
8 spec:
9 chart: charts/soft-serve
10 sourceRef:
11 kind: GitRepository
12 name: pcloud
Giorgi Lekveishvili724885f2023-11-29 16:18:42 +040013 namespace: {{ or .Values.ChartRepositoryNamespace .Global.Id }}
Giorgi Lekveishvili672af5d2023-07-12 11:57:51 +040014 interval: 1m0s
15 values:
Giorgi Lekveishvili724885f2023-11-29 16:18:42 +040016 {{- if .Values.ServiceType }}
17 serviceType: {{ .Values.ServiceType }}
18 {{- end }}
Giorgi Lekveishvili672af5d2023-07-12 11:57:51 +040019 reservedIP: ""
20 addressPool: {{ .Global.Id }}
21 adminKey: {{ .Values.AdminKey }}
Giorgi Lekveishvili724885f2023-11-29 16:18:42 +040022 {{- if and .Values.PrivateKey .Values.PublicKey }}
23 privateKey: |
24{{ .Values.PrivateKey | indent 6 }}
25 publicKey: {{ .Values.PublicKey }}
26 {{- end }}
Giorgi Lekveishvili672af5d2023-07-12 11:57:51 +040027 {{- if .Values.Network }}
28 ingress:
Giorgi Lekveishvili724885f2023-11-29 16:18:42 +040029 enabled: {{ .Values.Ingress.Enabled }}
Giorgi Lekveishvili672af5d2023-07-12 11:57:51 +040030 ingressClassName: {{ .Values.Network.IngressClass }}
31 certificateIssuer: {{ .Values.Network.CertificateIssuer }}
32 domain: {{ .Values.Subdomain }}.{{ .Values.Network.Domain }}
33 {{- if .Values.SourcePort }}
34 sourcePort: {{ .Values.SourcePort }}
35 {{- end }}
36 {{- end }}