migrate

package
v0.14.6-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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

func GitRepoHelmURLRegex(ctx context.Context, cl client.Client, systemNamespace string) error

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.

Jump to

Keyboard shortcuts

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