talos/pkg/images/images.go
Dmitriy Matrenichev b315ed9532
chore: use go:embed instead of ldflags
Generate separate file for each variable and assign them during go build using go:embed instead of using ldflags -X.

Resolves #5138

Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
2022-03-30 18:15:48 +04:00

35 lines
1.1 KiB
Go

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// Package images provides some default images.
package images
import (
"github.com/talos-systems/talos/pkg/machinery/gendata"
"github.com/talos-systems/talos/pkg/version"
)
var (
// Username is the default registry username.
Username = gendata.ImagesUsername
// Registry is the default registry.
Registry = gendata.ImagesRegistry
// DefaultInstallerImageName is the default container image name for
// the installer.
DefaultInstallerImageName = Username + "/installer"
// DefaultInstallerImageRepository is the default container repository for
// the installer.
DefaultInstallerImageRepository = Registry + "/" + DefaultInstallerImageName
// DefaultInstallerImage is the default installer image.
DefaultInstallerImage = DefaultInstallerImageRepository + ":" + version.Tag
// DefaultTalosImageRepository is the default container repository for
// the talos image.
DefaultTalosImageRepository = Registry + "/" + Username + "/" + "talos"
)