Merge pull request #347 from safing/feature/rename-special-channel
Rename special release channel to support
This commit is contained in:
@@ -50,15 +50,21 @@ func registerConfig() error {
|
||||
Value: helper.ReleaseChannelBeta,
|
||||
},
|
||||
{
|
||||
Name: "Special",
|
||||
Description: "Special releases or version changes for troubleshooting. Only use temporarily and when instructed.",
|
||||
Value: helper.ReleaseChannelSpecial,
|
||||
Name: "Support",
|
||||
Description: "Support releases or version changes for troubleshooting. Only use temporarily and when instructed.",
|
||||
Value: helper.ReleaseChannelSupport,
|
||||
},
|
||||
{
|
||||
Name: "Staging",
|
||||
Description: "Dangerous development releases for testing random things and experimenting. Only use temporarily and when instructed.",
|
||||
Value: helper.ReleaseChannelStaging,
|
||||
},
|
||||
// TODO: Remove as soon as everyone has switched away.
|
||||
{
|
||||
Name: "Special (Deprecated!)",
|
||||
Description: "This channel has been deprecated. If selected, the Stable channel will be used instead.",
|
||||
Value: "special",
|
||||
},
|
||||
},
|
||||
Annotations: config.Annotations{
|
||||
config.DisplayOrderAnnotation: -4,
|
||||
|
||||
@@ -10,7 +10,7 @@ const (
|
||||
ReleaseChannelStable = "stable"
|
||||
ReleaseChannelBeta = "beta"
|
||||
ReleaseChannelStaging = "staging"
|
||||
ReleaseChannelSpecial = "special"
|
||||
ReleaseChannelSupport = "support"
|
||||
)
|
||||
|
||||
// SetIndexes sets the update registry indexes and also configures the registry
|
||||
@@ -48,10 +48,10 @@ func SetIndexes(registry *updater.ResourceRegistry, releaseChannel string) {
|
||||
usePreReleases = true
|
||||
}
|
||||
|
||||
// Add special index if in special channel.
|
||||
if releaseChannel == ReleaseChannelSpecial {
|
||||
// Add support index if in support channel.
|
||||
if releaseChannel == ReleaseChannelSupport {
|
||||
registry.AddIndex(updater.Index{
|
||||
Path: ReleaseChannelSpecial + ".json",
|
||||
Path: ReleaseChannelSupport + ".json",
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user