Skip to content

Commit c9eae25

Browse files
authored
Merge pull request #187139 from csand-msft/master
Add section on using the source for helm charts
2 parents bcd24d9 + 08bf2b0 commit c9eae25

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

articles/azure-arc/kubernetes/tutorial-use-gitops-flux2.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,25 @@ For usage details, see the following documents:
970970
* [Migrate to Flux v2 Helm from Flux v1 Helm](https://fluxcd.io/docs/migration/helm-operator-migration/)
971971
* [Flux Helm controller](https://fluxcd.io/docs/components/helm/)
972972

973+
### Use the GitRepository source for Helm charts
974+
975+
If your Helm charts are stored in the `GitRepository` source that you configure as part of the `fluxConfigurations` resource, you can add an annotation to your HelmRelease yaml to indicate that the configured source should be used as the source of the Helm charts. The annotation is `clusterconfig.azure.com/use-managed-source: "true"`, and here is a usage example:
976+
977+
```console
978+
---
979+
apiVersion: helm.toolkit.fluxcd.io/v2beta1
980+
kind: HelmRelease
981+
metadata:
982+
name: somename
983+
namespace: somenamespace
984+
annotations:
985+
clusterconfig.azure.com/use-managed-source: "true"
986+
spec:
987+
...
988+
```
989+
990+
By using this annotation, the HelmRelease that is deployed will be patched with the reference to the configured source. Note that only GitRepository source is supported for this currently.
991+
973992
## Migrate from Flux v1
974993

975994
If you've been using Flux v1 in Azure Arc-enabled Kubernetes or AKS clusters and want to migrate to using Flux v2 in the same clusters, you first need to delete the Flux v1 `sourceControlConfigurations` from the clusters. The `microsoft.flux` cluster extension won't be installed if there are `sourceControlConfigurations` resources installed in the cluster.

0 commit comments

Comments
 (0)