Skip to content

Commit

Permalink
Merge pull request #566 from kingdonb/fixup-docs
Browse files Browse the repository at this point in the history
Clarify spec.path in API docs
  • Loading branch information
stefanprodan authored Feb 10, 2022
2 parents 110ee5b + 3d95b87 commit e0488c9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/spec/v1beta2/kustomization.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,12 @@ On multi-tenant clusters, platform admins can disable cross-namespace references

## Generate kustomization.yaml

If your repository contains plain Kubernetes manifests, the `kustomization.yaml`
file is automatically generated for all the Kubernetes manifests
in the `spec.path` and sub-directories. This expects all YAML files present under that path to be valid kubernetes manifests
and needs non-kubernetes ones to be excluded using `.sourceignore` file or `spec.ignore` on `GitRepository` object.
If your repository contains plain Kubernetes manifests, the
`kustomization.yaml` file is automatically generated for all the Kubernetes
manifests in the `spec.path` of the Flux `Kustomization` and sub-directories.
This expects all YAML files present under that path to be valid kubernetes
manifests and needs non-kubernetes ones to be excluded using `.sourceignore`
file or `spec.ignore` on `GitRepository` object.

Example of excluding CI workflows and SOPS config files:

Expand Down

0 comments on commit e0488c9

Please sign in to comment.