migration

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 12 Imported by: 1 module, 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

Overview

Package migration handles any migrations needed to maintain compatibility

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndPerformMiddlewareTelemetryMigration added in v0.8.0

func CheckAndPerformMiddlewareTelemetryMigration()

CheckAndPerformMiddlewareTelemetryMigration checks if middleware telemetry migration is needed and performs it. This migration ensures middleware-based telemetry configs are properly migrated. It handles any additional middleware telemetry configuration migrations beyond the samplingRate conversion. It repeats performTelemetryConfigMigration, because an earlier iteration did not migrate middleware telemetry configs.

func CheckAndPerformSecretScopeMigration added in v0.15.0

func CheckAndPerformSecretScopeMigration()

CheckAndPerformSecretScopeMigration checks if secret scope migration is needed and performs it. It discovers bare system keys and renames them into their __thv_<scope>_ namespace. This ensures system-owned secrets are hidden from user-facing secret commands.

func CheckAndPerformTelemetryConfigMigration added in v0.7.0

func CheckAndPerformTelemetryConfigMigration()

CheckAndPerformTelemetryConfigMigration checks if telemetry config migration is needed and performs it. This migration converts telemetry_config.samplingRate from float64 to string in run configs. It handles both deprecated top-level telemetry_config and middleware-based telemetry configs.

func EnsureDefaultGroupExists added in v0.10.1

func EnsureDefaultGroupExists() error

EnsureDefaultGroupExists ensures the default group exists, creating it if necessary. This is called at application startup for fresh installs and is a no-op when the group already exists (e.g. after a previous migration or existing setup). In Kubernetes environments this is always a no-op: MCPGroup CRDs are operator/user-managed resources and the caller's service account may not have create permission on them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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