File tree Expand file tree Collapse file tree 4 files changed +35
-14
lines changed Expand file tree Collapse file tree 4 files changed +35
-14
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project are documented in this file.
4
4
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
+
5
26
## 0.12.2
6
27
7
28
** Release date:** 2021-05-10
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ resources:
6
6
images :
7
7
- name : fluxcd/source-controller
8
8
newName : fluxcd/source-controller
9
- newTag : v0.12.2
9
+ newTag : v0.13.0
Original file line number Diff line number Diff line change @@ -492,23 +492,23 @@ to a user that has access to the main repository and all its submodules.
492
492
493
493
# ## Including GitRepository
494
494
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 :
498
498
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.
500
500
* 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.
502
502
503
503
` ` ` yaml
504
504
apiVersion: source.toolkit.fluxcd.io/v1beta1
505
505
kind: GitRepository
506
506
metadata:
507
- name: repo1
507
+ name: app-repo
508
508
namespace: default
509
509
spec:
510
510
interval: 1m
511
- url: https://github.com/<organization>/repo1
511
+ url: https://github.com/<org>/app-repo
512
512
secretRef:
513
513
name: https-credentials
514
514
ref:
@@ -517,20 +517,20 @@ spec:
517
517
apiVersion: source.toolkit.fluxcd.io/v1beta1
518
518
kind: GitRepository
519
519
metadata:
520
- name: repo2
520
+ name: config-repo
521
521
namespace: default
522
522
spec:
523
523
interval: 1m
524
- url: https://github.com/<organization>/repo2
524
+ url: https://github.com/<org>/config-repo
525
525
secretRef:
526
526
name: https-credentials
527
527
ref:
528
528
branch: main
529
529
include:
530
530
- repository:
531
- name: repo1
532
- from: manifests
533
- to: manifests
531
+ name: app-repo
532
+ from: deploy/kubernetes
533
+ to: base/app
534
534
---
535
535
apiVersion: v1
536
536
kind: Secret
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ require (
17
17
github.com/fluxcd/pkg/ssh v0.0.5
18
18
github.com/fluxcd/pkg/untar v0.0.5
19
19
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
21
21
github.com/go-git/go-billy/v5 v5.3.1
22
22
github.com/go-git/go-git/v5 v5.4.1
23
23
github.com/go-logr/logr v0.4.0
You can’t perform that action at this time.
0 commit comments