-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vendir): add vendir support (#25113)
Co-authored-by: Zoltán Reegn <reegnz@users.noreply.github.com> Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Co-authored-by: Zoltán Reegn <zoltan.reegn@gmail.com> Co-authored-by: Michael Kriese <michael.kriese@visualon.de> Co-authored-by: Rhys Arkins <rhys@arkins.net>
- Loading branch information
1 parent
3a9be74
commit db1b0d8
Showing
20 changed files
with
1,065 additions
and
0 deletions.
There are no files selected for viewing
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
12 changes: 12 additions & 0 deletions
12
lib/modules/manager/vendir/__fixtures__/alias-contents.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: custom-repo-custom-version | ||
helmChart: | ||
name: oci | ||
version: "7.10.1" | ||
repository: | ||
url: oci://test |
17 changes: 17 additions & 0 deletions
17
lib/modules/manager/vendir/__fixtures__/multiple-contents.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,17 @@ | ||
apiVersion: vendir.k14s.io/v1alpha1 | ||
kind: Config | ||
directories: | ||
- path: vendor | ||
contents: | ||
- path: custom-repo-custom-version | ||
helmChart: | ||
name: contour | ||
version: "7.10.1" | ||
repository: | ||
url: https://charts.bitnami.com/bitnami | ||
- path: thing | ||
helmChart: | ||
name: contour | ||
version: "7.10.1" | ||
repository: | ||
url: https://charts.bitnami.com/bitnami |
12 changes: 12 additions & 0 deletions
12
lib/modules/manager/vendir/__fixtures__/non-helmchart.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 | ||
git: | ||
# 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
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: custom-repo-custom-version | ||
helmChart: | ||
name: contour | ||
version: "7.10.1" | ||
repository: | ||
url: oci://charts.bitnami.com/bitnami |
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,11 @@ | ||
apiVersion: vendir.k14s.io/v1alpha1 | ||
kind: Config | ||
directories: | ||
- path: vendor | ||
contents: | ||
- path: custom-repo-custom-version | ||
helmChart: | ||
name: contour | ||
version: "7.10.1" | ||
repository: | ||
url: https://charts.bitnami.com/bitnami |
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,15 @@ | ||
apiVersion: vendir.k14s.io/v1alpha1 | ||
kind: Config | ||
|
||
minimumRequiredVersion: 0.32.0 | ||
|
||
# one or more directories to manage with vendir | ||
directories: | ||
- path: vendor | ||
contents: | ||
- path: renovate | ||
helmChart: | ||
name: renovate | ||
version: 36.109.4 | ||
repository: | ||
url: https://docs.renovatebot.com/helm-charts |
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,9 @@ | ||
apiVersion: vendir.k14s.io/v1alpha1 | ||
directories: | ||
- contents: | ||
- helmChart: | ||
appVersion: 36.109.4 | ||
version: 36.109.4 | ||
path: renovate | ||
path: vendor | ||
kind: LockConfig |
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,9 @@ | ||
apiVersion: vendir.k14s.io/v1alpha1 | ||
directories: | ||
- contents: | ||
- helmChart: | ||
appVersion: 36.109.4 | ||
version: 37.109.4 | ||
path: renovate | ||
path: vendor | ||
kind: LockConfig |
24 changes: 24 additions & 0 deletions
24
lib/modules/manager/vendir/__snapshots__/artifacts.spec.ts.snap
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,24 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`modules/manager/vendir/artifacts returns null if unchanged 1`] = ` | ||
[ | ||
{ | ||
"cmd": "vendir sync", | ||
"options": { | ||
"cwd": "/tmp/github/some/repo", | ||
"encoding": "utf-8", | ||
"env": { | ||
"HOME": "/home/user", | ||
"HTTPS_PROXY": "https://example.com", | ||
"HTTP_PROXY": "http://example.com", | ||
"LANG": "en_US.UTF-8", | ||
"LC_ALL": "en_US", | ||
"NO_PROXY": "localhost", | ||
"PATH": "/tmp/path", | ||
}, | ||
"maxBuffer": 10485760, | ||
"timeout": 900000, | ||
}, | ||
}, | ||
] | ||
`; |
Oops, something went wrong.