From e945ef93782bcd9b7290cbec4c07f17e679af46f Mon Sep 17 00:00:00 2001 From: Madhan <39273527+madhan1115@users.noreply.github.com> Date: Fri, 2 Jan 2026 15:00:52 +0530 Subject: [PATCH 1/6] Update Chart.yaml Signed-off-by: madhanb --- charts/flux2-sync/Chart.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/flux2-sync/Chart.yaml b/charts/flux2-sync/Chart.yaml index f6c280d..ee39921 100644 --- a/charts/flux2-sync/Chart.yaml +++ b/charts/flux2-sync/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: flux2-sync type: application -version: 1.14.1 +version: 1.14.2 appVersion: 2.7.5 description: A Helm chart for flux2 GitRepository to sync with sources: @@ -9,3 +9,4 @@ sources: annotations: artifacthub.io/changes: | - "[Chore]: Update App Version to upstream 2.7.5" + - "[feat]: flux2-sync: Add support for sparseCheckout in GitRepository" From 8991eb97f16a5bf11024651f87066ba249ce1f1f Mon Sep 17 00:00:00 2001 From: Madhan <39273527+madhan1115@users.noreply.github.com> Date: Fri, 2 Jan 2026 15:01:54 +0530 Subject: [PATCH 2/6] Update README.md Signed-off-by: madhanb --- charts/flux2-sync/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/flux2-sync/README.md b/charts/flux2-sync/README.md index 18396d6..5a96f48 100644 --- a/charts/flux2-sync/README.md +++ b/charts/flux2-sync/README.md @@ -29,6 +29,7 @@ This helm chart is maintained and released by the fluxcd-community on a best eff | gitRepository.spec.recurseSubmodules | bool | `false` | _Optional_ When enabled, after the clone is created, initializes all submodules within, using their default settings. This option is available only when using the ‘go-git’ GitImplementation. | | gitRepository.spec.ref | object | `{"branch":"master"}` | _Optional_ The Git reference to checkout and monitor for changes, defaults to master branch. | | gitRepository.spec.secretRef | object | `{}` | _Optional_ The secret name containing the Git credentials. For HTTPS repositories the secret must contain username and password fields. For SSH repositories the secret must contain identity, identity.pub and known_hosts fields. For GitHub App authentication the secret must contain githubAppID, githubAppInstallationID and githubAppPrivateKey fields. If a secret.create is set, it will point to that one. | +| gitRepository.spec.sparseCheckout | list | `[]` | _Optional_ A list of directories to checkout when cloning the repository | | gitRepository.spec.suspend | string | `""` | _Optional_ This flag tells the controller to suspend the reconciliation of this source. | | gitRepository.spec.timeout | string | `""` | _Optional_ The timeout for remote Git operations like cloning, defaults to 20s. | | gitRepository.spec.url | string | `""` | The repository URL, can be an HTTP/S or SSH address. | From 9375ba3280ff4fe0a22968627a9b65073f0791fd Mon Sep 17 00:00:00 2001 From: Madhan <39273527+madhan1115@users.noreply.github.com> Date: Fri, 2 Jan 2026 15:02:48 +0530 Subject: [PATCH 3/6] Update values.yaml Signed-off-by: madhanb --- charts/flux2-sync/values.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/flux2-sync/values.yaml b/charts/flux2-sync/values.yaml index bf80682..cbd7a74 100644 --- a/charts/flux2-sync/values.yaml +++ b/charts/flux2-sync/values.yaml @@ -68,6 +68,9 @@ gitRepository: # -- _Optional_ Extra git repositories to map into the repository include: [] + # -- _Optional_ A list of directories to checkout when cloning the repository + sparseCheckout: [] + kustomization: labels: {} From 07d3fadcaadd0a28a479d5b11546e980a1049263 Mon Sep 17 00:00:00 2001 From: Madhan <39273527+madhan1115@users.noreply.github.com> Date: Fri, 2 Jan 2026 15:03:10 +0530 Subject: [PATCH 4/6] Update values.yaml Signed-off-by: madhanb --- charts/flux2-sync/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/flux2-sync/values.yaml b/charts/flux2-sync/values.yaml index cbd7a74..e6ad3ac 100644 --- a/charts/flux2-sync/values.yaml +++ b/charts/flux2-sync/values.yaml @@ -68,7 +68,7 @@ gitRepository: # -- _Optional_ Extra git repositories to map into the repository include: [] - # -- _Optional_ A list of directories to checkout when cloning the repository + # -- _Optional_ A list of directories to checkout when cloning the repository sparseCheckout: [] From ccaed664ec316fc3140ee44747b49ceeef1d6d19 Mon Sep 17 00:00:00 2001 From: Madhan <39273527+madhan1115@users.noreply.github.com> Date: Fri, 2 Jan 2026 15:04:38 +0530 Subject: [PATCH 5/6] Update flux-gitrepository.yaml Signed-off-by: madhanb --- charts/flux2-sync/templates/flux-gitrepository.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/flux2-sync/templates/flux-gitrepository.yaml b/charts/flux2-sync/templates/flux-gitrepository.yaml index 840b6d9..65950ba 100644 --- a/charts/flux2-sync/templates/flux-gitrepository.yaml +++ b/charts/flux2-sync/templates/flux-gitrepository.yaml @@ -50,3 +50,7 @@ spec: {{- with .Values.gitRepository.spec.include }} include: {{ toYaml . | nindent 4 }} {{- end }} + {{- with .Values.gitRepository.spec.sparseCheckout }} + sparseCheckout: + {{ toYaml . | nindent 4 }} + {{- end }} From deac081819727cf6f976e0113833269b7409b1a2 Mon Sep 17 00:00:00 2001 From: Madhan <39273527+madhan1115@users.noreply.github.com> Date: Fri, 2 Jan 2026 15:33:08 +0530 Subject: [PATCH 6/6] Signed-off-by: madhan1115 madhan.btechy@gmail.com Signed-off-by: madhanb --- charts/flux2-sync/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/flux2-sync/values.yaml b/charts/flux2-sync/values.yaml index e6ad3ac..524aa83 100644 --- a/charts/flux2-sync/values.yaml +++ b/charts/flux2-sync/values.yaml @@ -68,7 +68,7 @@ gitRepository: # -- _Optional_ Extra git repositories to map into the repository include: [] - # -- _Optional_ A list of directories to checkout when cloning the repository + # -- _Optional_ List of directories to checkout when cloning the repository sparseCheckout: []