constellation/internal/helm/imageversion/imageversion.go
Moritz Sanft 968cdc1a38
cli: move cli/internal libraries (#2623)
* cli: move internal packages

Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>

* cli: fix buildfiles

Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>

* bazel: fix exclude dir

Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>

* cli: move back libraries that will not be used by TF provider

Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>

---------

Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
2023-11-22 14:52:56 +01:00

68 lines
2.3 KiB
Go

/*
Copyright (c) Edgeless Systems GmbH
SPDX-License-Identifier: AGPL-3.0-only
*/
// Package imageversion contains the pinned container images for the helm charts.
package imageversion
import "github.com/edgelesssys/constellation/v2/internal/containerimage"
// TODO(malt3): Migrate third-party images from versions.go.
// JoinService is the image of the join service.
// registry and prefix can be optionally set to use a different source.
func JoinService(registry, prefix string) string {
return containerimage.NewBuilder(defaultJoinService, registry, prefix).Build().String()
}
// KeyService is the image of the key service.
// registry and prefix can be optionally set to use a different source.
func KeyService(registry, prefix string) string {
return containerimage.NewBuilder(defaultKeyService, registry, prefix).Build().String()
}
// VerificationService is the image of the verification service.
// registry and prefix can be optionally set to use a different source.
func VerificationService(registry, prefix string) string {
return containerimage.NewBuilder(defaultVerificationService, registry, prefix).Build().String()
}
// ConstellationNodeOperator is the image of the constellation node operator.
// registry and prefix can be optionally set to use a different source.
func ConstellationNodeOperator(registry, prefix string) string {
return containerimage.NewBuilder(defaultNodeOperator, registry, prefix).Build().String()
}
var (
defaultJoinService = containerimage.Image{
Registry: joinServiceRegistry,
Prefix: joinServicePrefix,
Name: joinServiceName,
Tag: joinServiceTag,
Digest: joinServiceDigest,
}
defaultKeyService = containerimage.Image{
Registry: keyServiceRegistry,
Prefix: keyServicePrefix,
Name: keyServiceName,
Tag: keyServiceTag,
Digest: keyServiceDigest,
}
defaultVerificationService = containerimage.Image{
Registry: verificationServiceRegistry,
Prefix: verificationServicePrefix,
Name: verificationServiceName,
Tag: verificationServiceTag,
Digest: verificationServiceDigest,
}
defaultNodeOperator = containerimage.Image{
Registry: constellationNodeOperatorRegistry,
Prefix: constellationNodeOperatorPrefix,
Name: constellationNodeOperatorName,
Tag: constellationNodeOperatorTag,
Digest: constellationNodeOperatorDigest,
}
)