@@ -39,7 +39,7 @@ helm upgrade -i helm-operator fluxcd/helm-operator \
39
39
--namespace fluxcd \
40
40
--set configureRepositories.enable=true \
41
41
--set configureRepositories.repositories[0].name=stable \
42
- --set configureRepositories.repositories[0].url=ttps ://kubernetes-charts.storage.googleapis.com \
42
+ --set configureRepositories.repositories[0].url=https ://kubernetes-charts.storage.googleapis.com \
43
43
--set configureRepositories.repositories[1].name=podinfo \
44
44
--set configureRepositories.repositories[1].url=https://stefanprodan.github.io/podinfo
45
45
```
@@ -134,6 +134,28 @@ spec:
134
134
replicaCount : 1
135
135
` ` `
136
136
137
+ ## Use Flux's Git deploy key
138
+
139
+ You can configure the Helm Operator to use the Git SSH key generated by Flux.
140
+
141
+ Assuming you've installed Flux with:
142
+
143
+ ` ` ` sh
144
+ helm upgrade -i flux fluxcd/flux \
145
+ --namespace fluxcd \
146
+
147
+ ```
148
+
149
+ when installing Helm Operator, you can refer the Flux deploy key by its Kubernetes Secret name:
150
+
151
+ ``` sh
152
+ helm -i helm-operator fluxcd/helm-operator \
153
+ --namespace fluxcd \
154
+ --set git.ssh.secret=flux-git-deploy
155
+ ```
156
+
157
+ The deploy key naming convention is ` <Flux Release Name>-git-deploy ` .
158
+
137
159
## Uninstall
138
160
139
161
To uninstall/delete the ` helm-operator ` deployment:
@@ -142,7 +164,10 @@ To uninstall/delete the `helm-operator` deployment:
142
164
helm delete --purge helm-operator
143
165
```
144
166
145
- The command removes all the Kubernetes components associated with the chart and deletes the release.
167
+ The command removes all the Kubernetes components associated with the chart and deletes the release.
168
+
169
+ Note that ` helm delete ` will not remove the ` HelmRelease ` CRD.
170
+ Deleting the CRD will trigger a cascade delete of all Helm release objects.
146
171
147
172
## Configuration
148
173
@@ -167,14 +192,17 @@ The following tables lists the configurable parameters of the Flux chart and the
167
192
| ` serviceAccount.create ` | ` true ` | If ` true ` , create a new service account
168
193
| ` serviceAccount.name ` | ` flux ` | Service account to be used
169
194
| ` clusterRole.create ` | ` true ` | If ` false ` , Helm Operator will be restricted to the namespace where is deployed
170
- | `createCRD` | `true` | Create the HelmRelease CRD
195
+ | ` createCRD ` | ` false ` | Create the HelmRelease CRD
171
196
| ` updateChartDeps ` | ` true ` | Update dependencies for charts
172
197
| ` git.pollInterval ` | ` git.pollInterval ` | Period on which to poll git chart sources for changes
173
198
| ` git.timeout ` | ` git.timeout ` | Duration after which git operations time out
174
199
| ` git.ssh.secretName ` | ` None ` | The name of the kubernetes secret with the SSH private key, supercedes ` git.secretName `
175
200
| ` git.ssh.known_hosts ` | ` None ` | The contents of an SSH ` known_hosts ` file, if you need to supply host key(s)
176
- | `chartsSyncInterval` | `3m` | Interval at which to check for changed charts
177
- | `workers` | `None` | (Experimental) amount of workers processing releases
201
+ | ` git.ssh.configMapName ` | ` None ` | The name of a kubernetes config map containing the ssh config
202
+ | ` git.ssh.configMapKey ` | ` config ` | The name of the key in the kubernetes config map specified above
203
+ | ` chartsSyncInterval ` | ` 3m ` | Period on which to reconcile the Helm releases with ` HelmRelease ` resources
204
+ | ` statusUpdateInterval ` | ` None ` | Period on which to update the Helm release status in ` HelmRelease ` resources
205
+ | ` workers ` | ` None ` | Amount of workers processing releases
178
206
| ` logFormat ` | ` fmt ` | Log format (fmt or json)
179
207
| ` logReleaseDiffs ` | ` false ` | Helm operator should log the diff when a chart release diverges (possibly insecure)
180
208
| ` allowNamespace ` | ` None ` | If set, this limits the scope to a single namespace. If not specified, all namespaces will be watched
0 commit comments