constants

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// kinds
	KindBlueprint = `Blueprint`

	// providers
	// ProviderK0S is the name of the k0s distro
	ProviderK0s = "k0s"
	// ProviderKind is the name of the kind distro
	ProviderKind = "kind"
	// ProviderExisting is the name of an existing unofficial distro
	ProviderExisting = "existing"

	// addons
	// AddonManifest is the name of the manifest addon
	AddonManifest = "manifest"
	// AddonChart is the name of the chart addon
	AddonChart = "chart"
)
View Source
const (
	// NamespaceBlueprint is the system namespace where the Blueprint Operator and its components are installed
	NamespaceBlueprint = "blueprint-system"

	// NamespaceKubeSystem is the system namespace where the networking components are installed
	NamespaceKubeSystem = "kube-system"

	// DefaultBlueprintFileName represents the default blueprint filename.
	DefaultBlueprintFileName = "blueprint.yaml"

	// DefaultLogLevel represents the default log level.
	DefaultLogLevel = "info"

	// DryRunWaitInterval is the interval to wait between checks of resources when performing a dry run
	DryRunWaitInterval = 2 * time.Second

	// DryRunTimeout is the timeout for dry run operations
	DryRunTimeout = 2 * time.Minute

	BlueprintOperatorDeployment = "blueprint-operator-controller-manager"

	// These semver regex come from the official semver spec: https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
	// but they have been modified into a version without a leading v, a version with a leading v, and a version where the leading v is optional
	SemverRegexWithV     = `^[v](0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$`
	SemverRegexWithoutV  = `^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$`
	SemverRegexOptionalV = `^[v]?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$`
	// The k0s semver regex is the same as the optional v semver regex, but with an optional "+k0s.0" at the end
	K0sSemverRegex = `^[v]?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:\+(k[0-9a-zA-Z-]s+(?:\.[0-9a-zA-Z-]+)*))?$`
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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