Skip to content

Commit 106f8ae

Browse files
author
Kingdon Barrett
committed
Add a note about sourceignore recursion
Signed-off-by: Kingdon Barrett <kingdon@weave.works>
1 parent b9986fa commit 106f8ae

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/spec/v1beta2/gitrepositories.md

+3
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,9 @@ repository. The `.sourceignore` file follows [the `.gitignore` pattern
487487
format](https://git-scm.com/docs/gitignore#_pattern_format), and
488488
pattern entries may overrule [default exclusions](#default-exclusions).
489489

490+
The controller recursively loads ignore files so a `.sourceignore` can be
491+
placed in the repository root or in subdirectories.
492+
490493
#### Ignore spec
491494

492495
Another option is to define the exclusions within the GitRepository spec, using

docs/spec/v1beta2/ocirepositories.md

+10
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,16 @@ spec:
526526
/deploy/**/*.txt
527527
```
528528

529+
#### `.sourceignore` file
530+
531+
Excluding files is possible by adding a `.sourceignore` file in the artifact.
532+
The `.sourceignore` file follows [the `.gitignore` pattern
533+
format](https://git-scm.com/docs/gitignore#_pattern_format), and pattern
534+
entries may overrule [default exclusions](#default-exclusions).
535+
536+
The controller recursively loads ignore files so a `.sourceignore` can be
537+
placed in the artifact root or in subdirectories.
538+
529539
### Triggering a reconcile
530540

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

0 commit comments

Comments
 (0)