constants

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MPL-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultAPIServerPort = 6443
View Source
const DefaultAPIServerReadyTimeout = 5 * time.Minute

DefaultAPIServerReadyTimeout is the time limit for the kube-apiserver of a control-plane node after a reboot.

View Source
const DefaultControlPlaneCPUDedicated = 4
View Source
const DefaultControlPlaneCPUSchedulable = 4
View Source
const DefaultControlPlaneMemoryDedicated = 8
View Source
const DefaultControlPlaneMemorySchedulable = 12
View Source
const DefaultConvergeTimeout = 5 * time.Minute

DefaultConvergeTimeout is the time limit to reconcile stalled kustomizations and HelmReleases during an install.

View Source
const DefaultFluxKustomizationForce = false
View Source
const DefaultFluxKustomizationInstallTimeout = 10 * time.Minute

DefaultFluxKustomizationInstallTimeout is the timeout of an install tier when the facet sets none.

View Source
const DefaultFluxKustomizationInterval = 1 * time.Hour

DefaultFluxKustomizationInterval is the backstop reconciliation interval for a Kustomization of a vendor source.

View Source
const DefaultFluxKustomizationRetryInterval = 2 * time.Minute
View Source
const DefaultFluxKustomizationTimeout = 5 * time.Minute
View Source
const DefaultFluxKustomizationWait = true
View Source
const DefaultFluxPrimaryKustomizationInterval = 5 * time.Minute

DefaultFluxPrimaryKustomizationInterval is the backstop reconciliation interval for a Kustomization of the blueprint repository.

View Source
const DefaultFluxPrimaryRepositoryInterval = 1 * time.Minute

DefaultFluxPrimaryRepositoryInterval is the poll interval for the repository of the blueprint.

View Source
const DefaultFluxSourceInterval = 1 * time.Hour

DefaultFluxSourceInterval is the backstop reconciliation interval for a vendor source.

View Source
const DefaultFluxSourceTimeout = 2 * time.Minute
View Source
const DefaultGitopsNamespace = "system-gitops"
View Source
const DefaultKubernetesReachabilityCheckTimeout = 30 * time.Second

DefaultKubernetesReachabilityCheckTimeout is the time limit of the Kubernetes check before a destroy.

View Source
const DefaultKustomizationWaitMaxFailures = 5

DefaultKustomizationWaitMaxFailures is the number of consecutive failures before the CLI wait stops.

View Source
const DefaultKustomizationWaitPollInterval = 5 * time.Second

DefaultKustomizationWaitPollInterval is the poll interval of the CLI kustomization wait.

View Source
const DefaultKustomizationWaitTotalTimeout = 10 * time.Minute

DefaultKustomizationWaitTotalTimeout is the time limit of one CLI wait for all kustomizations.

View Source
const DefaultLoadBalancerTeardownTimeout = 15 * time.Minute

DefaultLoadBalancerTeardownTimeout is the time limit for a cloud controller to remove a LoadBalancer Service finalizer.

View Source
const DefaultNetworkCIDR = "10.5.0.0/16"
View Source
const DefaultNodeHealthCheckPollInterval = 10 * time.Second
View Source
const DefaultNodeHealthCheckTimeout = 5 * time.Minute
View Source
const DefaultNodeOfflineTimeout = 3 * time.Minute
View Source
const DefaultNodeUpgradeTimeout = 10 * time.Minute
View Source
const DefaultOCIBlueprintURL = "oci://ghcr.io/windsorcli/core:latest"
View Source
const DefaultTerraformDestroyAbsoluteTimeout = 2 * time.Hour

DefaultTerraformDestroyAbsoluteTimeout is the total time limit of one `terraform destroy`.

View Source
const DefaultTerraformDestroyGracePeriod = 2 * time.Minute

DefaultTerraformDestroyGracePeriod is the wait between the interrupt and the kill of a timed-out destroy.

View Source
const DefaultTerraformDestroyIdleTimeout = 5 * time.Minute

DefaultTerraformDestroyIdleTimeout is the time limit without output from `terraform destroy`.

View Source
const DefaultTerraformDestroyRetryAttempts = 2

DefaultTerraformDestroyRetryAttempts is the number of destroy attempts for one component. Only a failure before the timeout gets a retry.

View Source
const DefaultTerraformDestroyRetryBackoff = 30 * time.Second

DefaultTerraformDestroyRetryBackoff is the wait between two destroy attempts.

View Source
const DefaultTerraformRefreshTimeout = 2 * time.Minute

DefaultTerraformRefreshTimeout is the time limit of the terraform refresh before a destroy.

View Source
const DefaultWorkerCPU = 4
View Source
const DefaultWorkerMemory = 8
View Source
const KubernetesShortTimeout = 200 * time.Millisecond
View Source
const MinimumVersion1Password = "2.15.0"
View Source
const MinimumVersionAWS = "2.0.0"
View Source
const MinimumVersionAzure = "2.50.0"
View Source
const MinimumVersionColima = "0.9.0"
View Source
const MinimumVersionDocker = "23.0.0"
View Source
const MinimumVersionGCP = "400.0.0"
View Source
const MinimumVersionKubelogin = "0.1.7"
View Source
const MinimumVersionLima = "1.0.0"
View Source
const MinimumVersionLimaIncus = "2.0.3"

MinimumVersionLimaIncus is the minimum limactl version for colima with the incus platform.

View Source
const MinimumVersionSOPS = "3.10.0"
View Source
const MinimumVersionTerraform = "1.12.2"

Variables

View Source
var BuildDate = "unknown"

BuildDate is the build time in RFC 3339 format. goreleaser sets it with ldflags. It keeps its default value after `go build` or `go install`.

View Source
var CommitSHA = "none"

CommitSHA is the git commit SHA. The build sets it with ldflags.

View Source
var PinnedBlueprintURL = ""

PinnedBlueprintURL is the blueprint URL of a release build. goreleaser sets it with ldflags.

View Source
var Version = "dev"

Version is the CLI version. The build sets it with ldflags.

Functions

func FluxKustomizationInterval added in v0.9.0

func FluxKustomizationInterval(isPrimarySource bool) time.Duration

FluxKustomizationInterval returns the default reconciliation interval for a Kustomization. isPrimarySource is true when the Kustomization uses the repository of the blueprint, not a vendor source. A short interval causes DependencyNotReady retries, so this interval is longer than the source interval.

func FluxSourceInterval added in v0.9.0

func FluxSourceInterval(isPrimary bool) time.Duration

FluxSourceInterval returns the default reconciliation interval for a GitRepository or OCIRepository. isPrimary is true for the repository in the top-level "repository:" field of the blueprint. A push to the blueprint repository can occur without a windsor command, so its poll interval is short.

func GetEffectiveBlueprintURL added in v0.7.0

func GetEffectiveBlueprintURL() string

GetEffectiveBlueprintURL returns PinnedBlueprintURL when the build sets it, or DefaultOCIBlueprintURL.

Types

type GitopsMode added in v0.9.0

type GitopsMode string

GitopsMode is the gitops mode of a context. Pull and push use the same reconciliation intervals.

const (
	GitopsModePull GitopsMode = "pull"
	GitopsModePush GitopsMode = "push"
)

func ParseGitopsMode added in v0.9.0

func ParseGitopsMode(s string) GitopsMode

ParseGitopsMode returns the GitopsMode for a config value. It returns "pull" for an empty or unknown value, so a typo gives the safe mode and not an error.

Jump to

Keyboard shortcuts

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