Documentation
¶
Index ¶
- Constants
- func ActivateHostAgent(ctx context.Context, log *slog.Logger, candidatePath string) (agentbinary.ActivationResult, error)
- func NewFileStateStore() (stateStore, error)
- func PreflightHostAgentActivation(ctx context.Context, log *slog.Logger, candidatePath string) (agentbinary.ActivationPlan, error)
- func RecoverAgentUpgrade(ctx context.Context, log *slog.Logger, message string) error
- func ResetWorker(log *slog.Logger, worker agentruntime.Runtime, hostHub phases.Task) phases.Task
- func Run(ctx context.Context, cfg *config.Config, log *slog.Logger) error
- func SetupHost(cfg *config.Config, log *slog.Logger) phases.Task
- func ValidateAgentDeployment(mode isolation.Mode, containerized bool) error
- func ValidateWorkerBootstrap(cfg *config.Config, applied *State, containerized bool) error
- type State
Constants ¶
const ( DeletionTaintKey = "kubernetes.azure.com/flex-node-deleting" DeletionTaintValue = "true" DeletionTaintEffect = corev1.TaintEffectNoSchedule )
const DefaultMachineReconcileInterval = 10 * time.Minute
Variables ¶
This section is empty.
Functions ¶
func ActivateHostAgent ¶ added in v0.1.7
func ActivateHostAgent(ctx context.Context, log *slog.Logger, candidatePath string) (agentbinary.ActivationResult, error)
ActivateHostAgent activates a directly staged Flex agent binary. It uses the same lock and binary layout as MachineOperation upgrades.
func NewFileStateStore ¶
func NewFileStateStore() (stateStore, error)
func PreflightHostAgentActivation ¶ added in v0.1.7
func PreflightHostAgentActivation(ctx context.Context, log *slog.Logger, candidatePath string) (agentbinary.ActivationPlan, error)
PreflightHostAgentActivation plans activation without changing the installed layout or units.
func RecoverAgentUpgrade ¶ added in v0.1.7
RecoverAgentUpgrade selects the applied worker before deployment restores the last-good agent. Image deployments have no host worker mode to select.
func ResetWorker ¶ added in v0.4.0
ResetWorker discovers ownership at execution time, after CLI daemon shutdown.
func ValidateAgentDeployment ¶ added in v0.4.0
ValidateAgentDeployment checks the worker and agent deployment combination.
Types ¶
type State ¶
type State struct {
Isolation isolation.Mode `json:"isolation,omitempty"`
NodeConfig *agentconfig.AgentConfig `json:"nodeConfig,omitempty"`
AppliedSettingsVersion string `json:"appliedSettingsVersion,omitempty"`
AppliedKubernetesVersion string `json:"appliedKubernetesVersion,omitempty"`
PreviousSettingsVersion string `json:"previousSettingsVersion,omitempty"`
PreviousKubernetesVersion string `json:"previousKubernetesVersion,omitempty"`
ActiveMachine string `json:"activeMachine,omitempty"`
}
State records the last safely applied AKS machine goal and the previous known-good goal needed for rollback-oriented reconciliation.
func BootstrapState ¶ added in v0.4.0
BootstrapState selects the installed worker for a none/OCI reapply. Nspawn retains its existing bootstrap behavior.
func SeededState ¶
func SeededState(goal aksmachine.GoalState) *State