setup

package
v1.45.0-0.dev Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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