policy

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

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

func VMNameToPolicyEvalName(vmName string) string

VMNameToPolicyEvalName returns the name of the PolicyEvaluation for a VM name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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