Skip to content

Commit 9a738fa

Browse files
committed
docs: document enableCrossNamespace Helm value and cross-link references
Add an enableCrossNamespace entry to the Helm chart values reference and cross-link it from the Field References concept and the Field Export guide, covering the resource reference, secret reference, and field export behaviors gated by the --enable-cross-namespace flag.
1 parent 4a3ec5a commit 9a738fa

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

website/docs/concepts.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,10 @@ spec:
363363

364364
The controller resolves these references at reconciliation time. See the [API Reference](/services) for available reference fields on each CRD.
365365

366+
:::warning
367+
Resource and Secret references can point to a different namespace by setting a `namespace` field on the reference. This cross-namespace behavior is gated by the `enableCrossNamespace` Helm value (`--enable-cross-namespace` flag), whose default will change from `true` to `false` in a future release. See [Breaking Changes](/breaking-changes) and the [Helm value reference](/guides/helm-values#cross-namespace-references) for details.
368+
:::
369+
366370
For complex resource orchestration and dependencies, we recommend using [kro (Kube Resource Orchestrator)](https://kro.run).
367371

368372
## Release Phases

website/docs/guides/field-export.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ spec:
108108

109109
## Security Considerations
110110

111-
`FieldExport` only exports fields from resources in the **same namespace** as the `FieldExport` resource. This prevents users from exporting fields from resources they don't have access to in other namespaces.
111+
By default, `FieldExport` can target a ConfigMap or Secret in a different namespace than the source resource. This cross-namespace behavior is gated by the `enableCrossNamespace` Helm value (`--enable-cross-namespace` flag), whose default will change from `true` to `false` in a future release. When disabled, `FieldExport` only operates within the **same namespace** as the source resource, which prevents users from exporting fields to namespaces they don't have access to.
112+
113+
See [Breaking Changes](/breaking-changes) and the [Helm value reference](/guides/helm-values#cross-namespace-references) for details.
112114

113115
## Next Steps
114116

website/docs/guides/helm-values.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,17 @@ serviceAccount:
284284

285285
For cross-account resource management, use the **IAMRoleSelector** feature gate (recommended) or CARM feature gates. See [Granular IAM Roles](/guides/cross-account) for setup instructions.
286286

287+
## Cross-Namespace References
288+
289+
### `enableCrossNamespace`
290+
- **Type**: Boolean
291+
- **Default**: `true`
292+
- **Description**: Enable cross-namespace behavior including resource references (`*Ref` fields), secret references (`SecretKeyReference`), and `FieldExport` targets. When `false`, the controller rejects any operation that crosses namespace boundaries. Maps to the `--enable-cross-namespace` controller flag.
293+
294+
:::warning
295+
The default for `enableCrossNamespace` will change from `true` to `false` in a future release. If you rely on cross-namespace references, explicitly set `enableCrossNamespace: true` before upgrading. See [Breaking Changes](/breaking-changes) for details.
296+
:::
297+
287298
## Feature Gates
288299

289300
Feature gates allow you to enable experimental or optional controller features.

0 commit comments

Comments
 (0)