config

package
v0.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2022 License: Apache-2.0, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IPV4Localhost = "127.0.0.1"

	PackageInitName = "zarf-init.tar.zst"
	PackagePrefix   = "zarf-package-"

	// ZarfMaxChartNameLength limits helm chart name size to account for K8s/helm limits and zarf prefix
	ZarfMaxChartNameLength = 40
	ZarfGitPushUser        = "zarf-git-user"
	ZarfRegistryPushUser   = "zarf-push"
	ZarfRegistryPullUser   = "zarf-pull"
	ZarfSeedPort           = "45000"
	ZarfRegistry           = IPV4Localhost + ":45001"
	ZarfLocalSeedRegistry  = IPV4Localhost + ":" + ZarfSeedPort

	ZarfSeedTypeCLIInject         = "cli-inject"
	ZarfSeedTypeRuntimeRegistry   = "runtime-registry"
	ZarfSeedTypeInClusterRegistry = "in-cluster-registry"

	ZarfConnectLabelName             = "zarf.dev/connect-name"
	ZarfConnectAnnotationDescription = "zarf.dev/connect-description"
	ZarfConnectAnnotationUrl         = "zarf.dev/connect-url"
)

Variables

View Source
var (
	// CLIVersion track the version of the CLI
	CLIVersion = "unset"

	// TLS options used for cert creation
	TLS types.TLSConfig

	// DeployOptions tracks user-defined values for the active deployment
	DeployOptions types.ZarfDeployOptions

	ActiveCranePlatform crane.Option

	CliArch string
)

Functions

func BuildConfig added in v0.14.0

func BuildConfig(path string) error

func GetBuildData added in v0.13.4

func GetBuildData() types.ZarfBuildData

func GetComponents

func GetComponents() []types.ZarfComponent

func GetDataInjections

func GetDataInjections() []types.ZarfData

func GetMetaData

func GetMetaData() types.ZarfMetadata

func GetPackageName

func GetPackageName() string

func GetRegistry added in v0.15.0

func GetRegistry() string

func GetSecret added in v0.15.0

func GetSecret(selector SecretSelector) string

func GetSeedImages added in v0.15.0

func GetSeedImages() []string

GetSeedImages returns a list of image strings specified in the package, but only for init packages

func GetSeedRegistry added in v0.15.0

func GetSeedRegistry() string

func GetState added in v0.14.0

func GetState() types.ZarfState

func GetValidPackageExtensions

func GetValidPackageExtensions() [3]string

func InitState added in v0.15.0

func InitState(tmpState types.ZarfState)

func IsZarfInitConfig

func IsZarfInitConfig() bool

func LoadConfig added in v0.14.0

func LoadConfig(path string) error

func SetAcrch added in v0.15.0

func SetAcrch()

Types

type SecretMap added in v0.15.0

type SecretMap struct {
	// contains filtered or unexported fields
}

type SecretSelector added in v0.15.0

type SecretSelector = string
const (
	StateRegistryPush   SecretSelector = "registry-push"
	StateRegistryPull   SecretSelector = "registry-pull"
	StateRegistrySecret SecretSelector = "registry-secret"
	StateGitPush        SecretSelector = "git-push"
	StateGitPull        SecretSelector = "git-pull"
	StateLogging        SecretSelector = "logging"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL