reconfigure

package
v1.2.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusNone           string = "None"           // finished and quit
	StatusRetry          string = "Retry"          // running
	StatusFailed         string = "Failed"         // failed and exited
	StatusFailedAndRetry string = "FailedAndRetry" // failed but can be retried
)

Variables

This section is empty.

Functions

func HasLegacyConfigManagerRuntime

func HasLegacyConfigManagerRuntime(its *workloads.InstanceSet) bool

func ValidateLegacyConfigManagerRuntime

func ValidateLegacyConfigManagerRuntime(its *workloads.InstanceSet) error

ValidateLegacyConfigManagerRuntime checks whether an existing workload still carries the legacy config-manager runtime required by ParametersDefinition.reloadAction.

Types

type Context

type Context struct {
	intctrlutil.RequestCtx
	Client client.Client

	ConfigTemplate appsv1.ComponentFileTemplate
	ConfigHash     *string // the hash of the new configuration content

	Cluster          *appsv1.Cluster
	ClusterComponent *appsv1.ClusterComponentSpec
	ITS              *workloads.InstanceSet // TODO: use cluster or component API?

	ConfigDescription *parametersv1alpha1.ComponentConfigDescription
	ParametersDef     *parametersv1alpha1.ParametersDefinitionSpec
	Patch             *core.ConfigPatchInfo
}

type Policy

type Policy string

Policy defines the policy of reconfiguring.

const (
	NonePolicy                    Policy = "none"
	RestartPolicy                 Policy = "restart"
	AsyncDynamicReloadPolicy      Policy = "asyncReload"
	SyncDynamicReloadPolicy       Policy = "syncReload"
	DynamicReloadAndRestartPolicy Policy = "dynamicReloadBeginRestart"
)

type Status

type Status struct {
	Status        string
	Reason        string
	ExpectedCount int32
	SucceedCount  int32
}

type Task

type Task struct {
	Policy Policy
	Ctx    Context
}

func (Task) Reconfigure

func (t Task) Reconfigure() (Status, error)

Jump to

Keyboard shortcuts

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