distroregistry: add an alias for rhel-86
OMG, it's happening. This should simplify the process when RHEL 8.6 branches out of RHEL 8.5. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
7d08535232
commit
1ae7df6db6
3 changed files with 72 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ import (
|
|||
)
|
||||
|
||||
const defaultName = "rhel-85"
|
||||
const rhel86Name = "rhel-86"
|
||||
const osVersion = "8.5"
|
||||
const modulePlatformID = "platform:el8"
|
||||
const ostreeRef = "rhel/8/%s/edge"
|
||||
|
|
@ -454,6 +455,10 @@ func New() distro.Distro {
|
|||
return newDistro(defaultName, modulePlatformID, ostreeRef)
|
||||
}
|
||||
|
||||
func NewRHEL86() distro.Distro {
|
||||
return newDistro(rhel86Name, modulePlatformID, ostreeRef)
|
||||
}
|
||||
|
||||
func NewHostDistro(name, modulePlatformID, ostreeRef string) distro.Distro {
|
||||
return newDistro(name, modulePlatformID, ostreeRef)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ var supportedDistros = []supportedDistro{
|
|||
{rhel84.New, rhel84.NewHostDistro},
|
||||
{rhel84.NewCentos, rhel84.NewCentosHostDistro},
|
||||
{rhel85.New, rhel85.NewHostDistro},
|
||||
{rhel85.NewRHEL86, rhel85.NewHostDistro},
|
||||
{rhel90.New, rhel90.NewHostDistro},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue