Documentation
¶
Index ¶
- func CalculateAKSMachinePatch(options *options.Options, nodeClaim *karpv1.NodeClaim, ...) bool
- func CalculateHash(data any) (string, error)
- func CalculateVMPatch(options *options.Options, nodeClaim *karpv1.NodeClaim, ...) *armcompute.VirtualMachineUpdate
- func HashFromNodeClaim(options *options.Options, nodeClaim *karpv1.NodeClaim, ...) (string, error)
- type Controller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateAKSMachinePatch ¶ added in v1.7.0
func CalculateAKSMachinePatch( options *options.Options, nodeClaim *karpv1.NodeClaim, nodeClass *v1beta1.AKSNodeClass, patchingAKSMachine *armcontainerservice.Machine, ) bool
Note: AKS machine patching flow is different from VM patching, given AKS machine API supports PUT but not PATCH (i.e., send only diff to the API rather than the whole object). Thus, the patch will be applied locally on the AKS machine object, before the object is sent to the API.
func CalculateHash ¶ added in v1.6.6
CalculateHash computes a hash for any JSON-marshalable struct
func CalculateVMPatch ¶ added in v0.7.0
func CalculateVMPatch( options *options.Options, nodeClaim *karpv1.NodeClaim, nodeClass *v1beta1.AKSNodeClass, currentVM *armcompute.VirtualMachine, ) *armcompute.VirtualMachineUpdate
func HashFromNodeClaim ¶
func HashFromNodeClaim(options *options.Options, nodeClaim *karpv1.NodeClaim, nodeClass *v1beta1.AKSNodeClass) (string, error)
HashFromNodeClaim calculates an inplace update hash from the specified options, nodeClaim, and nodeClass
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController( kubeClient client.Client, vmInstanceProvider instance.VMProvider, aksMachineInstanceProvider instance.AKSMachineProvider, ) *Controller
Click to show internal directories.
Click to hide internal directories.