Documentation
¶
Index ¶
Constants ¶
View Source
const ExtraConfigPolicyTagsKey = "vmservice.policy.tags"
ExtraConfigPolicyTagsKey is the ExtraConfig key that contains the tag UUIDs that we have applied from the VM's PolicyEvaluation, so can later only remove tags that we have applied.
Variables ¶
View Source
var ErrPolicyNotReady = pkgerr.NoRequeueNoErr("policy not ready")
ErrPolicyNotReady is returned by the reconciler when the evaluated policy is not yet ready.
Functions ¶
func New ¶
func New() vmconfig.Reconciler
func Reconcile ¶
func Reconcile( ctx context.Context, k8sClient ctrlclient.Client, vimClient *vim25.Client, vm *vmopv1.VirtualMachine, moVM mo.VirtualMachine, configSpec *vimtypes.VirtualMachineConfigSpec) error
Reconcile configures the VM's Policies and Tags.
func VMNameToPolicyEvalName ¶
VMNameToPolicyEvalName returns the name of the PolicyEvaluation for a VM name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.