Skip to content

Commit 1a49ad9

Browse files
authored
Merge pull request #2450 from dipti-pai/direct-source-fetch-doc
Add DirectSourceFetch feature gate for controllers
2 parents b2a2721 + 67affa0 commit 1a49ad9

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

content/en/flux/components/helm/options.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ please see the [bootstrap customization guide](/flux/installation/configuration/
5555
| `AllowDNSLookups` | `false` | Allows the controller to perform DNS lookups when rendering Helm templates. This is disabled by default, as it can be a security risk. |
5656
| `CacheSecretsAndConfigMaps` | `false` | Configures the caching of Secrets and ConfigMaps by the controller-runtime client. When enabled, it will cache both object types, resulting in increased memory usage and cluster-wide RBAC permissions (list and watch). |
5757
| `CancelHealthCheckOnNewRevision` | `false` | Cancels ongoing health checks when a new revision is detected. |
58+
| `DirectSourceFetch` | `false` | Enables fetching source objects directly from the API server using APIReader, bypassing the controller's cache. This can be useful when immediate consistency is required for source object reads. |
5859
| `DisableChartDigestTracking` | `false` | Disables the tracking of digest changes for Helm OCI charts. When set to `true`, the controller will not append the OCI digest to the chart version in `Chart.yaml`. |
59-
| `DisableConfigWatchers` | `false` | Disables the watchers for ConfigMaps and Secrets. |
60+
| `DisableConfigWatchers` | `false` | Disables the watchers for ConfigMaps and Secrets. |
6061
| `ExternalArtifact` | `true` | Enables support for the [ExternalArtifact](https://github.com/fluxcd/source-controller/blob/main/docs/spec/v1/externalartifacts.md) source type. |
6162
| `ObjectLevelWorkloadIdentity` | `false` | Enables the use of object-level workload identity for the controller. |
6263
| `OOMWatch` | `false` | Enables the OOM watcher, which will gracefully shut down the controller when the memory usage exceeds the configured limit. This is disabled by default. |

content/en/flux/components/kustomize/options.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ please see the [bootstrap customization guide](/flux/installation/configuration/
5353
| `AdditiveCELDependencyCheck` | `false` | Run both the built-in health checks and the CEL expression `readyExpr` when `readyExpr` is configured on a Kustomization. |
5454
| `CacheSecretsAndConfigMaps` | `false` | Configures the caching of Secrets and ConfigMaps by the controller-runtime client. When enabled, it will cache both object types, resulting in increased memory usage and cluster-wide RBAC permissions (list and watch). |
5555
| `CancelHealthCheckOnNewRevision` | `false` | Cancels ongoing health checks when a new revision is detected. |
56+
| `DirectSourceFetch` | `false` | Enables fetching source objects (GitRepository, OCIRepository, Bucket) directly from the API server using APIReader, bypassing the controller's cache. This can be useful when immediate consistency is required for source object reads. |
5657
| `DisableConfigWatchers` | `false` | Disables the watchers for ConfigMaps and Secrets. |
5758
| `DisableFailFastBehavior` | `false` | Controls whether the fail-fast behavior when waiting for resources to become ready should be disabled. |
5859
| `DisableStatusPollerCache` | `true` | Disables the cache of the status poller, which is used to determine the health of the resources applied by the controller. This may have a positive impact on memory usage on large clusters with many objects, at the cost of an increased number of direct API calls. |

content/en/flux/components/source/options.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,6 @@ please see the [bootstrap customization guide](/flux/installation/configuration/
8888

8989
### Feature Gates
9090

91-
No feature gates are currently available for source-watcher.
91+
| Name | Default Value | Description |
92+
|----------------------|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
93+
| `DirectSourceFetch` | `false` | Enables fetching source objects (GitRepository, OCIRepository, Bucket, HelmChart, ExternalArtifact) directly from the API server using APIReader, bypassing the controller's cache. This can be useful when immediate consistency is required for source object reads. |

0 commit comments

Comments
 (0)