Skip to content

Commit

Permalink
content/en/flux/guides/repository-structure.md: add preface regarding…
Browse files Browse the repository at this point in the history
… the presence of a kustomization.yaml and the consequences, i.e. that files can be excluded/ignored by using a kustomization.yaml

Signed-off-by: Johannes Kastl <[email protected]>
  • Loading branch information
Johannes Kastl committed Sep 22, 2023
1 parent 33e3c70 commit 6e7df33
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions content/en/flux/guides/repository-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ weight: 10
This guide walks you through several approaches of organizing repositories
for a smooth GitOps experience with Flux.

## Preface

Flux by default uses all manifests in a directory and its subdirectories, unless
it finds a `kustomization.yaml` file containing a Kubernetes kustomization
(`kustomize.config.k8s.io/v1beta1`, not the Flux2 kind).

If there is no `kustomization.yaml`, one will be generated on-the-fly, using all
manifests found in the directory and its subdirectories.

If there is a `kustomization.yaml` file, it is used directly. In this case, only
the manifests mentioned in the file are being used.

This is a nice way to exclude files from being used, in case those files are to
be used by a second Flux Kustomization.

## Monorepo

In a monorepo approach you would store all your Kubernetes manifests in a single Git repository.
Expand Down

0 comments on commit 6e7df33

Please sign in to comment.