-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds a new data structure AppDefault which maps an app's vers…
…ion range to a release range and can be used to set the default release version(s) per app version(s). This PR improves the handling of HTTP errors, especially the 404 not found, from the source URL. This PR also bumps github.com/urfave/cli/v2 to v2.4.0 to fix the issue where the default value is not set for string slice flags.
- Loading branch information
Showing
10 changed files
with
203 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,49 @@ | ||
# Example channels config | ||
channels: | ||
- name: stable | ||
latest: v1.17.2+k3s1 | ||
- name: latest | ||
latestRegexp: .* | ||
excludeRegexp: rc | ||
- name: testing | ||
latestRegexp: .* | ||
- name: v1.16 | ||
latestRegexp: v1\.16\..* | ||
excludeRegexp: rc | ||
- name: v1.16-testing | ||
latestRegexp: v1\.16\.* | ||
- name: v1.17 | ||
latestRegexp: v1\.17\..* | ||
excludeRegexp: rc | ||
- name: v1.17-testing | ||
latestRegexp: v1\.17\..* | ||
- name: v1.0 | ||
latestRegexp: v1\.0\..* | ||
excludeRegexp: rc | ||
- name: v1.0-testing | ||
latestRegexp: v1\.0\..* | ||
releases: | ||
- version: v1.15.3+k3s2 | ||
minChannelServerVersion: v2.3.0 | ||
maxChannelServerVersion: v2.3.5 | ||
- version: v1.17.4+k3s1 | ||
minChannelServerVersion: v2.4.0 | ||
maxChannelServerVersion: v2.4.5 | ||
github: | ||
owner: rancher | ||
repo: k3s | ||
redirectBase: https://github.com/rancher/k3s/releases/tag/ | ||
k3s: | ||
channels: | ||
- name: stable | ||
latest: v1.17.2+k3s1 | ||
- name: latest | ||
latestRegexp: .* | ||
excludeRegexp: rc | ||
- name: testing | ||
latestRegexp: .* | ||
- name: v1.16 | ||
latestRegexp: v1\.16\..* | ||
excludeRegexp: rc | ||
- name: v1.16-testing | ||
latestRegexp: v1\.16\.* | ||
- name: v1.17 | ||
latestRegexp: v1\.17\..* | ||
excludeRegexp: rc | ||
- name: v1.17-testing | ||
latestRegexp: v1\.17\..* | ||
- name: v1.0 | ||
latestRegexp: v1\.0\..* | ||
excludeRegexp: rc | ||
- name: v1.0-testing | ||
latestRegexp: v1\.0\..* | ||
releases: | ||
- version: v1.15.3+k3s2 | ||
minChannelServerVersion: v2.3.0 | ||
maxChannelServerVersion: v2.3.5 | ||
- version: v1.17.4+k3s1 | ||
minChannelServerVersion: v2.4.0 | ||
maxChannelServerVersion: v2.4.5 | ||
appDefaults: | ||
- appName: rancher | ||
defaults: | ||
- appVersion: '> 2.6.2-0 < 2.6.3-0' | ||
defaultVersion: '1.20.x' | ||
- appVersion: '> 2.6.2-0 < 2.6.4-0' | ||
defaultVersion: '1.21.x' | ||
- appVersion: '> 2.6.4-0' | ||
defaultVersion: '1.22.x' | ||
- appName: anotherApp | ||
defaults: | ||
- appVersion: '1.2.x' | ||
defaultVersion: '1.19.5' | ||
github: | ||
owner: rancher | ||
repo: k3s | ||
redirectBase: https://github.com/rancher/k3s/releases/tag/ |
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
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
Oops, something went wrong.