Documentation
¶
Index ¶
- Constants
- func InstallBinary(machineDir string) phases.Task
- func InstallService(log *slog.Logger) phases.Task
- func NewFileStateStore() (stateStore, error)
- func ResetNode(log *slog.Logger) 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 StartNode(cfg *config.Config, log *slog.Logger, machineName string, ...) phases.Task
- func UninstallService(log *slog.Logger) phases.Task
- type State
Constants ¶
View Source
const ( DeletionTaintKey = "kubernetes.azure.com/flex-node-deleting" DeletionTaintValue = "true" DeletionTaintEffect = corev1.TaintEffectNoSchedule )
View Source
const DefaultMachineReconcileInterval = 10 * time.Minute
View Source
const (
ServiceUnitName = "aks-flex-node-agent.service"
)
Variables ¶
This section is empty.
Functions ¶
func InstallBinary ¶
InstallBinary returns a task that copies the current process binary into the nspawn rootfs at /usr/local/bin/aks-flex-node.
func InstallService ¶
InstallService returns a task that installs, enables, and starts the systemd unit.
func NewFileStateStore ¶
func NewFileStateStore() (stateStore, error)
func Run ¶
func Run(ctx context.Context, cfg *config.Config, log *slog.Logger, machines aksmachine.MachineClient) error
Run starts the ARM-machine-driven daemon loop. The AKS machine client is injected so production ARM, remote test, and local file-backed clients can share the same daemon controller.
Types ¶
type State ¶
type State struct {
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 SeededState ¶
func SeededState(goal aksmachine.GoalState) *State
Click to show internal directories.
Click to hide internal directories.