Documentation
¶
Overview ¶
Package migrate contains one-time migration functions that run as Helm hooks during fleet upgrades. Each function checks a marker ConfigMap to avoid re-running when the upgrade job is re-triggered.
Index ¶
Constants ¶
View Source
const ( // HelmRegexAutoMigratedAnnotation marks a GitRepo whose helmRepoURLRegex // was derived automatically from its existing Bundles during upgrade. // Admins should review and replace the generated regex with a tighter // pattern specific to their Helm repository. HelmRegexAutoMigratedAnnotation = "fleet.cattle.io/helm-regex-auto-migrated" )
Variables ¶
This section is empty.
Functions ¶
func GitRepoHelmURLRegex ¶
GitRepoHelmURLRegex sets helmRepoURLRegex on every GitRepo that has a Helm credential secret but no regex. The regex is derived from the scheme+host of the Helm repository URLs already stored in the GitRepo's existing Bundles.
A ConfigMap in systemNamespace is created after the migration completes; its presence prevents the migration from running again on a subsequent upgrade.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.