Skip to content

Commit fd636d6

Browse files
authored
Merge pull request #366 from fluxcd/release-v0.13.0
Release v0.13.0
2 parents 909d98b + 145a82a commit fd636d6

File tree

4 files changed

+35
-14
lines changed

4 files changed

+35
-14
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22

33
All notable changes to this project are documented in this file.
44

5+
## 0.13.0
6+
7+
**Release date:** 2021-05-26
8+
9+
This prerelease comes with support for including the contents of a Git repository into another.
10+
11+
The [include feature](https://github.com/fluxcd/source-controller/blob/api/v0.13.0/docs/spec/v1beta1/gitrepositories.md#including-gitrepository)
12+
has multiple benefits over regular Git submodules:
13+
14+
* Including a `GitRepository` allows you to use different authentication methods for different repositories.
15+
* A change in the included repository will trigger an update of the including repository.
16+
* Multiple `GitRepositories` could include the same repository, which decreases the amount of cloning done compared to using submodules.
17+
18+
Features:
19+
* Add include property to GitRepositories
20+
[#348](https://github.com/fluxcd/source-controller/pull/348)
21+
22+
Improvements:
23+
* Update Git packages
24+
[#365](https://github.com/fluxcd/source-controller/pull/365)
25+
526
## 0.12.2
627

728
**Release date:** 2021-05-10

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ resources:
66
images:
77
- name: fluxcd/source-controller
88
newName: fluxcd/source-controller
9-
newTag: v0.12.2
9+
newTag: v0.13.0

docs/spec/v1beta1/gitrepositories.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -492,23 +492,23 @@ to a user that has access to the main repository and all its submodules.
492492

493493
### Including GitRepository
494494

495-
With `spec.include` you can map the contents of a git repository into another.
496-
This may look identical to git submodules but has multiple benefits over
497-
regular submodules.
495+
With `spec.include` you can map the contents of a Git repository into another.
496+
This may look identical to Git submodules but has multiple benefits over
497+
regular submodules:
498498

499-
* Including a GitRepository allows you to use different authentication methods for different repositories.
499+
* Including a `GitRepository` allows you to use different authentication methods for different repositories.
500500
* A change in the included repository will trigger an update of the including repository.
501-
* Multiple GitRepositories could include the same repository, which decreases the amount of cloning done compared to using submodules.
501+
* Multiple `GitRepositories` could include the same repository, which decreases the amount of cloning done compared to using submodules.
502502

503503
```yaml
504504
apiVersion: source.toolkit.fluxcd.io/v1beta1
505505
kind: GitRepository
506506
metadata:
507-
name: repo1
507+
name: app-repo
508508
namespace: default
509509
spec:
510510
interval: 1m
511-
url: https://github.com/<organization>/repo1
511+
url: https://github.com/<org>/app-repo
512512
secretRef:
513513
name: https-credentials
514514
ref:
@@ -517,20 +517,20 @@ spec:
517517
apiVersion: source.toolkit.fluxcd.io/v1beta1
518518
kind: GitRepository
519519
metadata:
520-
name: repo2
520+
name: config-repo
521521
namespace: default
522522
spec:
523523
interval: 1m
524-
url: https://github.com/<organization>/repo2
524+
url: https://github.com/<org>/config-repo
525525
secretRef:
526526
name: https-credentials
527527
ref:
528528
branch: main
529529
include:
530530
- repository:
531-
name: repo1
532-
from: manifests
533-
to: manifests
531+
name: app-repo
532+
from: deploy/kubernetes
533+
to: base/app
534534
---
535535
apiVersion: v1
536536
kind: Secret

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
github.com/fluxcd/pkg/ssh v0.0.5
1818
github.com/fluxcd/pkg/untar v0.0.5
1919
github.com/fluxcd/pkg/version v0.0.1
20-
github.com/fluxcd/source-controller/api v0.12.2
20+
github.com/fluxcd/source-controller/api v0.13.0
2121
github.com/go-git/go-billy/v5 v5.3.1
2222
github.com/go-git/go-git/v5 v5.4.1
2323
github.com/go-logr/logr v0.4.0

0 commit comments

Comments
 (0)