Skip to content

Commit d784ace

Browse files
committed
add lts channel
1 parent 5612294 commit d784ace

File tree

6 files changed

+10
-3
lines changed

6 files changed

+10
-3
lines changed

internal/mirror/operations/pull_dkp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func PullDeckhousePlatform(pullParams *params.PullParams, tagsToMirror []string)
101101
return fmt.Errorf("Find release-%s channel descriptor: %w", pullParams.DeckhouseTag, err)
102102
}
103103

104-
for _, channel := range []string{"alpha", "beta", "early-access", "stable", "rock-solid"} {
104+
for _, channel := range []string{"alpha", "beta", "early-access", "stable", "rock-solid", "lts"} {
105105
if err = layouts.TagImage(imageLayouts.ReleaseChannel, releaseChannel.Digest, channel); err != nil {
106106
return fmt.Errorf("tag release channel: %w", err)
107107
}

internal/mirror/operations/utils.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ var Channels = []string{
66
"early-access",
77
"stable",
88
"rock-solid",
9+
"lts",
910
}

internal/mirror/releases/versions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
)
3434

3535
func VersionsToMirror(pullParams *params.PullParams) ([]semver.Version, error) {
36-
releaseChannelsToCopy := []string{"alpha", "beta", "early-access", "stable", "rock-solid"}
36+
releaseChannelsToCopy := []string{"alpha", "beta", "early-access", "stable", "rock-solid", "lts"}
3737
releaseChannelsVersions := make([]*semver.Version, len(releaseChannelsToCopy))
3838
for i, channel := range releaseChannelsToCopy {
3939
v, err := getReleaseChannelVersionFromRegistry(pullParams, channel)

pkg/libmirror/layouts/layouts.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,24 +230,28 @@ func FillLayoutsWithBasicDeckhouseImages(
230230
layouts.DeckhouseImages[pullParams.DeckhouseRegistryRepo+":early-access"] = struct{}{}
231231
layouts.DeckhouseImages[pullParams.DeckhouseRegistryRepo+":stable"] = struct{}{}
232232
layouts.DeckhouseImages[pullParams.DeckhouseRegistryRepo+":rock-solid"] = struct{}{}
233+
layouts.DeckhouseImages[pullParams.DeckhouseRegistryRepo+":lts"] = struct{}{}
233234

234235
layouts.InstallImages[pullParams.DeckhouseRegistryRepo+"/install:alpha"] = struct{}{}
235236
layouts.InstallImages[pullParams.DeckhouseRegistryRepo+"/install:beta"] = struct{}{}
236237
layouts.InstallImages[pullParams.DeckhouseRegistryRepo+"/install:early-access"] = struct{}{}
237238
layouts.InstallImages[pullParams.DeckhouseRegistryRepo+"/install:stable"] = struct{}{}
238239
layouts.InstallImages[pullParams.DeckhouseRegistryRepo+"/install:rock-solid"] = struct{}{}
240+
layouts.InstallImages[pullParams.DeckhouseRegistryRepo+"/install:lts"] = struct{}{}
239241

240242
layouts.InstallStandaloneImages[pullParams.DeckhouseRegistryRepo+"/install-standalone:alpha"] = struct{}{}
241243
layouts.InstallStandaloneImages[pullParams.DeckhouseRegistryRepo+"/install-standalone:beta"] = struct{}{}
242244
layouts.InstallStandaloneImages[pullParams.DeckhouseRegistryRepo+"/install-standalone:early-access"] = struct{}{}
243245
layouts.InstallStandaloneImages[pullParams.DeckhouseRegistryRepo+"/install-standalone:stable"] = struct{}{}
244246
layouts.InstallStandaloneImages[pullParams.DeckhouseRegistryRepo+"/install-standalone:rock-solid"] = struct{}{}
247+
layouts.InstallStandaloneImages[pullParams.DeckhouseRegistryRepo+"/install-standalone:lts"] = struct{}{}
245248

246249
layouts.ReleaseChannelImages[pullParams.DeckhouseRegistryRepo+"/release-channel:alpha"] = struct{}{}
247250
layouts.ReleaseChannelImages[pullParams.DeckhouseRegistryRepo+"/release-channel:beta"] = struct{}{}
248251
layouts.ReleaseChannelImages[pullParams.DeckhouseRegistryRepo+"/release-channel:early-access"] = struct{}{}
249252
layouts.ReleaseChannelImages[pullParams.DeckhouseRegistryRepo+"/release-channel:stable"] = struct{}{}
250253
layouts.ReleaseChannelImages[pullParams.DeckhouseRegistryRepo+"/release-channel:rock-solid"] = struct{}{}
254+
layouts.ReleaseChannelImages[pullParams.DeckhouseRegistryRepo+"/release-channel:lts"] = struct{}{}
251255
}
252256

253257
func FindDeckhouseModulesImages(
@@ -270,6 +274,7 @@ func FindDeckhouseModulesImages(
270274
path.Join(params.DeckhouseRegistryRepo, params.ModulesPathSuffix, module.Name, "release") + ":early-access": {},
271275
path.Join(params.DeckhouseRegistryRepo, params.ModulesPathSuffix, module.Name, "release") + ":stable": {},
272276
path.Join(params.DeckhouseRegistryRepo, params.ModulesPathSuffix, module.Name, "release") + ":rock-solid": {},
277+
path.Join(params.DeckhouseRegistryRepo, params.ModulesPathSuffix, module.Name, "release") + ":lts": {},
273278
}
274279
}
275280

pkg/libmirror/modules/filter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const (
3131
)
3232

3333
var validChannels = map[string]struct{}{
34-
"alpha": {}, "beta": {}, "early-access": {}, "stable": {}, "rock-solid": {},
34+
"alpha": {}, "beta": {}, "early-access": {}, "stable": {}, "rock-solid": {}, "lts": {},
3535
}
3636

3737
// Filter for modules by black and whitelists. Maps module names to minimal versions of these modules to be pulled.

pkg/libmirror/modules/modules.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ func getAvailableReleaseChannelsImagesForModule(mod *Module, refOpts []name.Opti
172172
releasesRegistryPath + ":early-access",
173173
releasesRegistryPath + ":stable",
174174
releasesRegistryPath + ":rock-solid",
175+
releasesRegistryPath + ":lts",
175176
} {
176177
imageRef, err := name.ParseReference(imageTag, refOpts...)
177178
if err != nil {

0 commit comments

Comments
 (0)