Documentation
¶
Overview ¶
Package setup resolves the release defaults that differ between the Calico/Enterprise and Calico Cloud variants (publish registry/image, release-version format, GitHub-release default) at init time, keyed off the VARIANT env var.
It is a separate package so it initializes before the release tool's flag defaults (hack/release/flags.go), which capture these values by value and so need them resolved first.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultRegistry = quayRegistry DefaultImage = enterpriseImage // IsValidReleaseVersion validates the operator release version for the active variant (plain // vX.Y.Z for enterprise, vX.Y.Z-cloud for cloud). IsValidReleaseVersion = matchesFormat(releaseVersionFormat) // IsValidCalicoReleaseVersion validates a Calico release version. It stays plain vX.Y.Z for all // variants: the Calico version never carries the -cloud suffix. IsValidCalicoReleaseVersion = matchesFormat(releaseVersionFormat) CreateGitHubReleaseDefault = true )
Variant-dependent defaults, set to the enterprise values here and switched to cloud by init().
View Source
var IsCloud = os.Getenv("VARIANT") == "cloud"
IsCloud reports whether the release tool is running as the Calico Cloud variant.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.