preflight

package
v1.161.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateResourceSettingsMode

func ValidateResourceSettingsMode(cc *corev1beta1.ConfigConnector, ccc *corev1beta1.ConfigConnectorContext) error

ValidateResourceSettingsMode verifies that ConfigConnector and ConfigConnectorContext do not mix inclusive (mode: include) and exclusive (mode: exclude) ResourceSettings modes. When ResourceSettings is non-nil and Mode is empty, it defaults to exclusive mode ("exclude"), matching the runtime registration controller and config hash canonicalization.

Types

type CompositePreflight

type CompositePreflight struct {
	// contains filtered or unexported fields
}

func NewCompositePreflight

func NewCompositePreflight(checkers []declarative.Preflight) *CompositePreflight

func (*CompositePreflight) Preflight

type ConfigConnectorContextChecker

type ConfigConnectorContextChecker struct {
	// contains filtered or unexported fields
}

func NewConfigConnectorContextChecker

func NewConfigConnectorContextChecker(client client.Client) *ConfigConnectorContextChecker

func (*ConfigConnectorContextChecker) Preflight

type NameChecker

type NameChecker struct {
	// contains filtered or unexported fields
}

func NewNameChecker

func NewNameChecker(client client.Client, allowedName string) *NameChecker

func (*NameChecker) Preflight

type UpgradeChecker

type UpgradeChecker struct {
	// contains filtered or unexported fields
}

func NewUpgradeChecker

func NewUpgradeChecker(client client.Client, repo manifest.Repository) *UpgradeChecker

NewUpgradeChecker provides an implementation of declarative.Preflight that does version comparison between the version of the existing KCC and the version to deploy. If it's a major version change, it returns error and surface the error status on the DeclarativeObject.

func (*UpgradeChecker) Preflight

Jump to

Keyboard shortcuts

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