Skip to content

Commit

Permalink
Add a note about sourceignore recursion
Browse files Browse the repository at this point in the history
Signed-off-by: Kingdon Barrett <kingdon@weave.works>
  • Loading branch information
Kingdon Barrett committed Jan 27, 2023
1 parent a56a888 commit 3b4ab58
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/spec/v1beta2/buckets.md
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,8 @@ object storage bucket. The `.sourceignore` file follows [the `.gitignore`
pattern format](https://git-scm.com/docs/gitignore#_pattern_format), and
pattern entries may overrule [default exclusions](#default-exclusions).

The `.sourceignore` must be in the root directory for `Bucket` sources.

#### Ignore spec

Another option is to define the exclusions within the Bucket spec, using the
Expand Down
3 changes: 3 additions & 0 deletions docs/spec/v1beta2/gitrepositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,9 @@ repository. The `.sourceignore` file follows [the `.gitignore` pattern
format](https://git-scm.com/docs/gitignore#_pattern_format), and
pattern entries may overrule [default exclusions](#default-exclusions).

The controller recursively loads ignore files so a `.sourceignore` can be
placed in the repository root or in subdirectories.

#### Ignore spec

Another option is to define the exclusions within the GitRepository spec, using
Expand Down
10 changes: 10 additions & 0 deletions docs/spec/v1beta2/ocirepositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,16 @@ spec:
/deploy/**/*.txt
```

#### `.sourceignore` file

Excluding files is possible by adding a `.sourceignore` file in the artifact.
The `.sourceignore` file follows [the `.gitignore` pattern
format](https://git-scm.com/docs/gitignore#_pattern_format), and pattern
entries may overrule [default exclusions](#default-exclusions).

The controller recursively loads ignore files so a `.sourceignore` can be
placed in the artifact root or in subdirectories.

### Triggering a reconcile

To manually tell the source-controller to reconcile a OCIRepository outside the
Expand Down

0 comments on commit 3b4ab58

Please sign in to comment.