-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #966 from weaveworks/cross-namespace-docs
Explain `allowCrossNamespaceRefs` in chart README and docs/howto/
- Loading branch information
Showing
4 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Using cross-namespace references | ||
|
||
The Terraform CRD in the API for TF-controller includes fields which are references to other objects: | ||
|
||
| Name | Purpose | | ||
|------|---------| | ||
| .spec.sourceRef | Refers to a Flux source | | ||
| .spec.dependsOn[*] | Each entry refers to a dependency | | ||
| .spec.cliConfigSecretRef | Secret with `tf` config to use | | ||
|
||
The branch planner configuration can also have cross-namespace references: | ||
|
||
| Name | Purpose | | ||
|------|---------| | ||
| .secretNamespace | Namespace of secret containing a GitHub token | | ||
| .resources[*] | Each entry refers to a Terraform object to include in branch planning | | ||
|
||
All of these can refer to an object in a namespace different to that of the Terraform object. However, giving access to objects in other namespaces is generally considered a security risk, so this is disallowed by default. Only references that mention the same namespace, or omit the namespace field, will be accepted. References using a different namespace will cause the controller to stop processing the Terraform object and put it in a non-Ready state. | ||
|
||
To **allow** cross-namespace references, use the flag `--allow-cross-namespace-refs` with the controller and branch-planner. When using the Helm chart to install or update the controller and branch-planner, the value `allowCrossNamespaceRefs` will allow cross-namespace references for both. |