Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for git refs for vendir (#28084)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
- Loading branch information
1 parent
a567774
commit a8208df
Showing
8 changed files
with
138 additions
and
11 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
lib/modules/manager/vendir/__fixtures__/invalid-vendir.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: vendir.k14s.io/v1alpha1 | ||
kind: Config | ||
directories: | ||
- path: vendor | ||
contents: | ||
- path: github.com/cloudfoundry/cf-k8s-networking | ||
test: | ||
# http or ssh urls are supported (required) | ||
url: https://github.com/cloudfoundry/cf-k8s-networking | ||
# branch, tag, commit; origin is the name of the remote (required) | ||
# optional if refSelection is specified (available in v0.11.0+) | ||
ref: origin/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: vendir.k14s.io/v1alpha1 | ||
kind: Config | ||
directories: | ||
- path: vendor | ||
contents: | ||
# Normal Helm Chart | ||
- path: custom-repo-custom-version | ||
helmChart: | ||
name: contour | ||
version: "7.10.1" | ||
repository: | ||
url: https://charts.bitnami.com/bitnami | ||
# Normal Helm Chart 2 for handling lists | ||
- path: thing | ||
helmChart: | ||
name: test | ||
version: "7.10.1" | ||
repository: | ||
url: https://charts.bitnami.com/bitnami | ||
# Normal Git Repo | ||
- path: custom-repo-custom-version | ||
git: | ||
url: https://github.com/test/test | ||
ref: "7.10.1" | ||
# OCI Helm Chart | ||
- path: custom-repo-custom-version | ||
helmChart: | ||
name: contour | ||
version: "7.10.1" | ||
repository: | ||
url: oci://charts.bitnami.com/bitnami | ||
# Aliased OCI Helm Chart | ||
- path: custom-repo-custom-version | ||
helmChart: | ||
name: oci | ||
version: "7.10.1" | ||
repository: | ||
url: oci://test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters