Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMustUseVTPMOrEncryptedStorageClass is returned by the Reconcile // function if an EncryptionClass is specified without using an encrypted // StorageClass or vTPM. ErrMustUseVTPMOrEncryptedStorageClass = errors.New( "must use encrypted StorageClass or have vTPM") // ErrMustNotUseVTPMOrEncryptedStorageClass is returned by the Reconcile // function is an encrypted StorageClass or vTPM are used without specifying // an EncryptionClass or if there is no default key provider. ErrMustNotUseVTPMOrEncryptedStorageClass = errors.New( "vTPM and/or encrypted StorageClass require encryption") // ErrNoDefaultKeyProvider is returned by the Reconcile function if an // existing VM is encrypted, no EncryptionClass is specified, and there is // no default key provider. ErrNoDefaultKeyProvider = errors.New("no default key provider") // ErrInvalidKeyProvider is returned if the key provider specified by an // EncryptionClass is invalid. ErrInvalidKeyProvider = errors.New("invalid key provider") // ErrInvalidKeyID is returned if the key id specified by an // EncryptionClass is invalid. ErrInvalidKeyID = errors.New("invalid key id") )
Functions ¶
func New ¶
func New() vmconfig.ReconcilerWithContext
New returns a new Reconciler for a VM's crypto state.
func Reconcile ¶ added in v1.10.0
func Reconcile( ctx context.Context, k8sClient ctrlclient.Client, vimClient *vim25.Client, vm *vmopv1.VirtualMachine, moVM mo.VirtualMachine, configSpec ptrCfgSpec) error
Reconcile configures the VM's crypto settings.
func SprintfStateNotSynced ¶
SprintfStateNotSynced formats and returns the message for when the encryption state cannot be synced.
Types ¶
type Reason ¶
type Reason uint8
Reason is the type used by reasons given to the condition vmopv1.VirtualMachineEncryptionSynced.
func (Reason) StringValue ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.