Release v0.13.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
909d98b9bc
commit
145a82a429
21
CHANGELOG.md
21
CHANGELOG.md
|
@ -2,6 +2,27 @@
|
||||||
|
|
||||||
All notable changes to this project are documented in this file.
|
All notable changes to this project are documented in this file.
|
||||||
|
|
||||||
|
## 0.13.0
|
||||||
|
|
||||||
|
**Release date:** 2021-05-26
|
||||||
|
|
||||||
|
This prerelease comes with support for including the contents of a Git repository into another.
|
||||||
|
|
||||||
|
The [include feature](https://github.com/fluxcd/source-controller/blob/api/v0.13.0/docs/spec/v1beta1/gitrepositories.md#including-gitrepository)
|
||||||
|
has multiple benefits over regular Git submodules:
|
||||||
|
|
||||||
|
* Including a `GitRepository` allows you to use different authentication methods for different repositories.
|
||||||
|
* A change in the included repository will trigger an update of the including repository.
|
||||||
|
* Multiple `GitRepositories` could include the same repository, which decreases the amount of cloning done compared to using submodules.
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* Add include property to GitRepositories
|
||||||
|
[#348](https://github.com/fluxcd/source-controller/pull/348)
|
||||||
|
|
||||||
|
Improvements:
|
||||||
|
* Update Git packages
|
||||||
|
[#365](https://github.com/fluxcd/source-controller/pull/365)
|
||||||
|
|
||||||
## 0.12.2
|
## 0.12.2
|
||||||
|
|
||||||
**Release date:** 2021-05-10
|
**Release date:** 2021-05-10
|
||||||
|
|
|
@ -6,4 +6,4 @@ resources:
|
||||||
images:
|
images:
|
||||||
- name: fluxcd/source-controller
|
- name: fluxcd/source-controller
|
||||||
newName: fluxcd/source-controller
|
newName: fluxcd/source-controller
|
||||||
newTag: v0.12.2
|
newTag: v0.13.0
|
||||||
|
|
|
@ -492,23 +492,23 @@ to a user that has access to the main repository and all its submodules.
|
||||||
|
|
||||||
### Including GitRepository
|
### Including GitRepository
|
||||||
|
|
||||||
With `spec.include` you can map the contents of a git repository into another.
|
With `spec.include` you can map the contents of a Git repository into another.
|
||||||
This may look identical to git submodules but has multiple benefits over
|
This may look identical to Git submodules but has multiple benefits over
|
||||||
regular submodules.
|
regular submodules:
|
||||||
|
|
||||||
* Including a GitRepository allows you to use different authentication methods for different repositories.
|
* Including a `GitRepository` allows you to use different authentication methods for different repositories.
|
||||||
* A change in the included repository will trigger an update of the including repository.
|
* A change in the included repository will trigger an update of the including repository.
|
||||||
* Multiple GitRepositories could include the same repository, which decreases the amount of cloning done compared to using submodules.
|
* Multiple `GitRepositories` could include the same repository, which decreases the amount of cloning done compared to using submodules.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: source.toolkit.fluxcd.io/v1beta1
|
apiVersion: source.toolkit.fluxcd.io/v1beta1
|
||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
metadata:
|
metadata:
|
||||||
name: repo1
|
name: app-repo
|
||||||
namespace: default
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
interval: 1m
|
interval: 1m
|
||||||
url: https://github.com/<organization>/repo1
|
url: https://github.com/<org>/app-repo
|
||||||
secretRef:
|
secretRef:
|
||||||
name: https-credentials
|
name: https-credentials
|
||||||
ref:
|
ref:
|
||||||
|
@ -517,20 +517,20 @@ spec:
|
||||||
apiVersion: source.toolkit.fluxcd.io/v1beta1
|
apiVersion: source.toolkit.fluxcd.io/v1beta1
|
||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
metadata:
|
metadata:
|
||||||
name: repo2
|
name: config-repo
|
||||||
namespace: default
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
interval: 1m
|
interval: 1m
|
||||||
url: https://github.com/<organization>/repo2
|
url: https://github.com/<org>/config-repo
|
||||||
secretRef:
|
secretRef:
|
||||||
name: https-credentials
|
name: https-credentials
|
||||||
ref:
|
ref:
|
||||||
branch: main
|
branch: main
|
||||||
include:
|
include:
|
||||||
- repository:
|
- repository:
|
||||||
name: repo1
|
name: app-repo
|
||||||
from: manifests
|
from: deploy/kubernetes
|
||||||
to: manifests
|
to: base/app
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -17,7 +17,7 @@ require (
|
||||||
github.com/fluxcd/pkg/ssh v0.0.5
|
github.com/fluxcd/pkg/ssh v0.0.5
|
||||||
github.com/fluxcd/pkg/untar v0.0.5
|
github.com/fluxcd/pkg/untar v0.0.5
|
||||||
github.com/fluxcd/pkg/version v0.0.1
|
github.com/fluxcd/pkg/version v0.0.1
|
||||||
github.com/fluxcd/source-controller/api v0.12.2
|
github.com/fluxcd/source-controller/api v0.13.0
|
||||||
github.com/go-git/go-billy/v5 v5.3.1
|
github.com/go-git/go-billy/v5 v5.3.1
|
||||||
github.com/go-git/go-git/v5 v5.4.1
|
github.com/go-git/go-git/v5 v5.4.1
|
||||||
github.com/go-logr/logr v0.4.0
|
github.com/go-logr/logr v0.4.0
|
||||||
|
|
Loading…
Reference in New Issue