Rename special release channel to support
This commit is contained in:
@@ -50,15 +50,21 @@ func registerConfig() error {
|
|||||||
Value: helper.ReleaseChannelBeta,
|
Value: helper.ReleaseChannelBeta,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "Special",
|
Name: "Support",
|
||||||
Description: "Special releases or version changes for troubleshooting. Only use temporarily and when instructed.",
|
Description: "Support releases or version changes for troubleshooting. Only use temporarily and when instructed.",
|
||||||
Value: helper.ReleaseChannelSpecial,
|
Value: helper.ReleaseChannelSupport,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "Staging",
|
Name: "Staging",
|
||||||
Description: "Dangerous development releases for testing random things and experimenting. Only use temporarily and when instructed.",
|
Description: "Dangerous development releases for testing random things and experimenting. Only use temporarily and when instructed.",
|
||||||
Value: helper.ReleaseChannelStaging,
|
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{
|
Annotations: config.Annotations{
|
||||||
config.DisplayOrderAnnotation: -4,
|
config.DisplayOrderAnnotation: -4,
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const (
|
|||||||
ReleaseChannelStable = "stable"
|
ReleaseChannelStable = "stable"
|
||||||
ReleaseChannelBeta = "beta"
|
ReleaseChannelBeta = "beta"
|
||||||
ReleaseChannelStaging = "staging"
|
ReleaseChannelStaging = "staging"
|
||||||
ReleaseChannelSpecial = "special"
|
ReleaseChannelSupport = "support"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SetIndexes sets the update registry indexes and also configures the registry
|
// SetIndexes sets the update registry indexes and also configures the registry
|
||||||
@@ -48,10 +48,10 @@ func SetIndexes(registry *updater.ResourceRegistry, releaseChannel string) {
|
|||||||
usePreReleases = true
|
usePreReleases = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add special index if in special channel.
|
// Add support index if in support channel.
|
||||||
if releaseChannel == ReleaseChannelSpecial {
|
if releaseChannel == ReleaseChannelSupport {
|
||||||
registry.AddIndex(updater.Index{
|
registry.AddIndex(updater.Index{
|
||||||
Path: ReleaseChannelSpecial + ".json",
|
Path: ReleaseChannelSupport + ".json",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user