File tree 2 files changed +71
-1
lines changed
2 files changed +71
-1
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,20 @@ spec:
25
25
{{- if .copySecrets }}
26
26
---
27
27
# ## COPY SECRET TO TENANT CLUSTER:
28
- apiVersion : helm.toolkit.fluxcd.io/v2beta1
28
+ apiVersion : helm.toolkit.fluxcd.io/v2
29
29
kind : HelmRelease
30
30
metadata :
31
31
name : kubernetes-{{ .name }}-copy-secrets
32
32
namespace : {{ $.Values.namespace }}
33
33
spec :
34
34
targetNamespace : default
35
35
storageNamespace : default
36
+ install :
37
+ remediation :
38
+ retries : 3
39
+ upgrade :
40
+ remediation :
41
+ retries : 3
36
42
chart :
37
43
spec :
38
44
chart : ./charts/secret
64
70
dependsOn :
65
71
- name : kubernetes-{{ .name }}
66
72
{{- end }}
73
+ {{- if .fluxSync }}
74
+ ---
75
+ # ## COPY SECRET TO TENANT CLUSTER:
76
+ apiVersion : helm.toolkit.fluxcd.io/v2
77
+ kind : HelmRelease
78
+ metadata :
79
+ name : kubernetes-{{ .name }}-deploy-application
80
+ namespace : {{ $.Values.namespace }}
81
+ spec :
82
+ targetNamespace : default
83
+ storageNamespace : default
84
+ install :
85
+ remediation :
86
+ retries : 3
87
+ upgrade :
88
+ remediation :
89
+ retries : 3
90
+ chart :
91
+ spec :
92
+ chart : flux2-sync
93
+ sourceRef :
94
+ kind : HelmRepository
95
+ name : fluxcd-community
96
+ version : ' 1.9.0'
97
+ interval : 1m0s
98
+ timeout : 5m0s
99
+ kubeConfig :
100
+ secretRef :
101
+ name : kubernetes-{{ .name }}-admin-kubeconfig
102
+ key : super-admin.conf
103
+ dependsOn :
104
+ - name : kubernetes-{{ .name }}
105
+ {{- with .fluxSync.values }}
106
+ values :
107
+ {{- toYaml . | nindent 4 }}
108
+ {{- end }}
109
+ {{- end }}
67
110
68
111
{{- end }}
112
+ ---
113
+ apiVersion : source.toolkit.fluxcd.io/v1
114
+ kind : HelmRepository
115
+ metadata :
116
+ name : fluxcd-community
117
+ namespace : {{ $.Values.namespace }}
118
+ spec :
119
+ interval : 5m0s
120
+ url : https://fluxcd-community.github.io/helm-charts
Original file line number Diff line number Diff line change @@ -124,6 +124,24 @@ spec:
124
124
- name : kafka-service-clients-ca
125
125
valuesKey : ca.key
126
126
targetPath : secret.data.ca-key
127
+
128
+ # Here you can specify applications to deploy via FluxCD into tenant-cluster
129
+ # fluxSync:
130
+ # values:
131
+ # secret:
132
+ # create: true
133
+ # data:
134
+ # password: token-string-here123
135
+ # username: pat
136
+ # gitRepository:
137
+ # spec:
138
+ # url: https://gitlab.com/example/infra.git
139
+ # ref:
140
+ # branch: main
141
+ # kustomization:
142
+ # spec:
143
+ # path: clusters/tenant-example
144
+
127
145
values :
128
146
addons :
129
147
certManager :
You can’t perform that action at this time.
0 commit comments