Documentation
¶
Index ¶
- type BackupVirtualMachineContext
- type BackupVirtualMachineContextA2
- type ClusterContentLibraryItemContext
- type ClusterContentLibraryItemContextA2
- type ContentLibraryItemContext
- type ContentLibraryItemContextA2
- type ControllerManagerContext
- type Key
- type VirtualMachineClassContext
- type VirtualMachineClassContextA2
- type VirtualMachineContext
- type VirtualMachineContextA2
- type VirtualMachinePublishRequestContext
- type VirtualMachinePublishRequestContextA2
- type VirtualMachineServiceContext
- type VirtualMachineServiceContextA2
- type VirtualMachineSetResourcePolicyContext
- type VirtualMachineSetResourcePolicyContextA2
- type VolumeContext
- type VolumeContextA2
- type WebConsoleRequestContext
- type WebConsoleRequestContextA2
- type WebhookContext
- type WebhookRequestContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupVirtualMachineContext ¶ added in v1.8.5
type BackupVirtualMachineContext struct {
VMCtx VirtualMachineContext
VcVM *object.VirtualMachine
BootstrapData map[string]string
DiskUUIDToPVC map[string]corev1.PersistentVolumeClaim
}
BackupVirtualMachineContext is the context used for storing backup data of VM and its related objects.
func (*BackupVirtualMachineContext) String ¶ added in v1.8.5
func (c *BackupVirtualMachineContext) String() string
type BackupVirtualMachineContextA2 ¶ added in v1.8.5
type BackupVirtualMachineContextA2 struct {
VMCtx VirtualMachineContextA2
VcVM *object.VirtualMachine
BootstrapData map[string]string
DiskUUIDToPVC map[string]corev1.PersistentVolumeClaim
}
BackupVirtualMachineContextA2 is the context used for storing backup data of VM and its related objects.
func (*BackupVirtualMachineContextA2) String ¶ added in v1.8.5
func (c *BackupVirtualMachineContextA2) String() string
type ClusterContentLibraryItemContext ¶ added in v1.8.2
type ClusterContentLibraryItemContext struct {
context.Context
Logger logr.Logger
CCLItem *imgregv1a1.ClusterContentLibraryItem
CVMI *v1alpha1.ClusterVirtualMachineImage
ImageObjName string
}
ClusterContentLibraryItemContext is the context used for ClusterContentLibraryItem controller.
func (*ClusterContentLibraryItemContext) String ¶ added in v1.8.2
func (c *ClusterContentLibraryItemContext) String() string
type ClusterContentLibraryItemContextA2 ¶ added in v1.8.5
type ClusterContentLibraryItemContextA2 struct {
context.Context
Logger logr.Logger
CCLItem *imgregv1a1.ClusterContentLibraryItem
CVMI *vmopv1.ClusterVirtualMachineImage
ImageObjName string
}
ClusterContentLibraryItemContextA2 is the context used for ClusterContentLibraryItem controller.
func (*ClusterContentLibraryItemContextA2) String ¶ added in v1.8.5
func (c *ClusterContentLibraryItemContextA2) String() string
type ContentLibraryItemContext ¶ added in v1.8.2
type ContentLibraryItemContext struct {
context.Context
Logger logr.Logger
CLItem *imgregv1a1.ContentLibraryItem
VMI *v1alpha1.VirtualMachineImage
ImageObjName string
}
ContentLibraryItemContext is the context used for ContentLibraryItem controller.
func (*ContentLibraryItemContext) String ¶ added in v1.8.2
func (c *ContentLibraryItemContext) String() string
type ContentLibraryItemContextA2 ¶ added in v1.8.5
type ContentLibraryItemContextA2 struct {
context.Context
Logger logr.Logger
CLItem *imgregv1a1.ContentLibraryItem
VMI *vmopv1.VirtualMachineImage
ImageObjName string
}
ContentLibraryItemContextA2 is the context used for ContentLibraryItem controller.
func (*ContentLibraryItemContextA2) String ¶ added in v1.8.5
func (c *ContentLibraryItemContextA2) String() string
type ControllerManagerContext ¶
type ControllerManagerContext struct {
context.Context
// Namespace is the namespace in which the resource is located responsible
// for running the controller manager.
Namespace string
// Name is the name of the controller manager.
Name string
// ServiceAccountName is the name of the pod's service account.
ServiceAccountName string
// LeaderElectionID is the information used to identify the object
// responsible for synchronizing leader election.
LeaderElectionID string
// LeaderElectionNamespace is the namespace in which the LeaderElection
// object is located.
LeaderElectionNamespace string
// WatchNamespace is the namespace the controllers watch for changes. If
// no value is specified then all namespaces are watched.
WatchNamespace string
// Logger is the controller manager's logger.
Logger logr.Logger
// Recorder is used to record events.
Recorder record.Recorder
// MaxConcurrentReconciles is the maximum number of reconcile requests this
// controller will receive concurrently.
MaxConcurrentReconciles int
// WebhookServiceNamespace is the namespace in which the webhook service
// is located.
WebhookServiceNamespace string
// WebhookServiceName is the name of the webhook service.
WebhookServiceName string
// WebhookSecretNamespace is the namespace in which the webhook secret
// is located.
WebhookSecretNamespace string
// WebhookSecretName is the name of the webhook secret.
WebhookSecretName string
// ContainerNode should be true if we're running guest cluster nodes in containers.
ContainerNode bool
// SyncPeriod determines the minimum frequency at which watched resources are
// reconciled. A lower period will correct entropy more quickly, but reduce
// responsiveness to change if there are many watched resources.
SyncPeriod time.Duration
// VMProvider is the controller manager's VM Provider
VMProvider vmprovider.VirtualMachineProviderInterface
// VMProviderA2 is the controller manager's VM Provider for v1alpha2
VMProviderA2 vmprovider.VirtualMachineProviderInterfaceA2
}
ControllerManagerContext is the context of the controller that owns the controllers.
func (*ControllerManagerContext) String ¶
func (c *ControllerManagerContext) String() string
String returns ControllerManagerName.
type VirtualMachineClassContext ¶
type VirtualMachineClassContext struct {
context.Context
Logger logr.Logger
VMClass *v1alpha1.VirtualMachineClass
}
VirtualMachineClassContext is the context used for VirtualMachineClassControllers.
func (*VirtualMachineClassContext) String ¶
func (v *VirtualMachineClassContext) String() string
type VirtualMachineClassContextA2 ¶ added in v1.8.5
type VirtualMachineClassContextA2 struct {
context.Context
Logger logr.Logger
VMClass *vmopv1.VirtualMachineClass
}
VirtualMachineClassContextA2 is the context used for VirtualMachineClassControllers.
func (*VirtualMachineClassContextA2) String ¶ added in v1.8.5
func (v *VirtualMachineClassContextA2) String() string
type VirtualMachineContext ¶
type VirtualMachineContext struct {
context.Context
Logger logr.Logger
VM *v1alpha1.VirtualMachine
}
VirtualMachineContext is the context used for VirtualMachineControllers.
func (*VirtualMachineContext) String ¶
func (v *VirtualMachineContext) String() string
type VirtualMachineContextA2 ¶ added in v1.8.5
type VirtualMachineContextA2 struct {
context.Context
Logger logr.Logger
VM *vmopv1.VirtualMachine
}
VirtualMachineContextA2 is the context used for VirtualMachineControllers.
func (*VirtualMachineContextA2) String ¶ added in v1.8.5
func (v *VirtualMachineContextA2) String() string
type VirtualMachinePublishRequestContext ¶
type VirtualMachinePublishRequestContext struct {
context.Context
Logger logr.Logger
VMPublishRequest *v1alpha1.VirtualMachinePublishRequest
VM *v1alpha1.VirtualMachine
ContentLibrary *imgregv1a1.ContentLibrary
ItemID string
// SkipPatch indicates whether we should skip patching the object after reconcile
// because Status is updated separately in the publishing case due to CL API limitations.
SkipPatch bool
}
VirtualMachinePublishRequestContext is the context used for VirtualMachinePublishRequestControllers.
func (*VirtualMachinePublishRequestContext) String ¶
func (v *VirtualMachinePublishRequestContext) String() string
type VirtualMachinePublishRequestContextA2 ¶ added in v1.8.5
type VirtualMachinePublishRequestContextA2 struct {
context.Context
Logger logr.Logger
VMPublishRequest *vmopv1.VirtualMachinePublishRequest
VM *vmopv1.VirtualMachine
ContentLibrary *imgregv1a1.ContentLibrary
ItemID string
// SkipPatch indicates whether we should skip patching the object after reconcile
// because Status is updated separately in the publishing case due to CL API limitations.
SkipPatch bool
}
VirtualMachinePublishRequestContextA2 is the context used for VirtualMachinePublishRequestControllers.
func (*VirtualMachinePublishRequestContextA2) String ¶ added in v1.8.5
func (v *VirtualMachinePublishRequestContextA2) String() string
type VirtualMachineServiceContext ¶
type VirtualMachineServiceContext struct {
context.Context
Logger logr.Logger
VMService *v1alpha1.VirtualMachineService
}
VirtualMachineServiceContext is the context used for VirtualMachineServiceController.
func (*VirtualMachineServiceContext) String ¶
func (v *VirtualMachineServiceContext) String() string
type VirtualMachineServiceContextA2 ¶ added in v1.8.5
type VirtualMachineServiceContextA2 struct {
context.Context
Logger logr.Logger
VMService *vmopv1.VirtualMachineService
}
VirtualMachineServiceContextA2 is the context used for VirtualMachineServiceController.
func (*VirtualMachineServiceContextA2) String ¶ added in v1.8.5
func (v *VirtualMachineServiceContextA2) String() string
type VirtualMachineSetResourcePolicyContext ¶
type VirtualMachineSetResourcePolicyContext struct {
context.Context
Logger logr.Logger
ResourcePolicy *v1alpha1.VirtualMachineSetResourcePolicy
}
VirtualMachineSetResourcePolicyContext is the context used for VirtualMachineControllers.
func (*VirtualMachineSetResourcePolicyContext) String ¶
func (v *VirtualMachineSetResourcePolicyContext) String() string
type VirtualMachineSetResourcePolicyContextA2 ¶ added in v1.8.5
type VirtualMachineSetResourcePolicyContextA2 struct {
context.Context
Logger logr.Logger
ResourcePolicy *vmopv1.VirtualMachineSetResourcePolicy
}
VirtualMachineSetResourcePolicyContextA2 is the context used for VirtualMachineControllers.
func (*VirtualMachineSetResourcePolicyContextA2) String ¶ added in v1.8.5
func (v *VirtualMachineSetResourcePolicyContextA2) String() string
type VolumeContext ¶
type VolumeContext struct {
context.Context
Logger logr.Logger
VM *v1alpha1.VirtualMachine
InstanceStorageFSSEnabled bool
}
VolumeContext is the context used for VolumeController.
func (*VolumeContext) String ¶
func (v *VolumeContext) String() string
type VolumeContextA2 ¶ added in v1.8.5
type VolumeContextA2 struct {
context.Context
Logger logr.Logger
VM *vmopv1.VirtualMachine
InstanceStorageFSSEnabled bool
}
VolumeContextA2 is the context used for VolumeController.
func (*VolumeContextA2) String ¶ added in v1.8.5
func (v *VolumeContextA2) String() string
type WebConsoleRequestContext ¶
type WebConsoleRequestContext struct {
context.Context
Logger logr.Logger
WebConsoleRequest *v1alpha1.WebConsoleRequest
VM *v1alpha1.VirtualMachine
}
WebConsoleRequestContext is the context used for WebConsoleRequestControllers.
func (*WebConsoleRequestContext) String ¶
func (v *WebConsoleRequestContext) String() string
type WebConsoleRequestContextA2 ¶ added in v1.8.5
type WebConsoleRequestContextA2 struct {
context.Context
Logger logr.Logger
WebConsoleRequest *vmopv1.VirtualMachineWebConsoleRequest
VM *vmopv1.VirtualMachine
}
WebConsoleRequestContextA2 is the context used for WebConsoleRequestControllers.
func (*WebConsoleRequestContextA2) String ¶ added in v1.8.5
func (v *WebConsoleRequestContextA2) String() string
type WebhookContext ¶
type WebhookContext struct {
context.Context
// Name is the name of the webhook.
Name string
// Namespace is the namespace the webhook is running in.
Namespace string
// ServiceAccountName is the service account name of the pod.
ServiceAccountName string
// Logger is the webhook's logger.
Logger logr.Logger
// Recorder is used to record events.
Recorder record.Recorder
}
WebhookContext is the context of a webhook.
func (*WebhookContext) String ¶
func (c *WebhookContext) String() string
String returns WebhookName.
type WebhookRequestContext ¶
type WebhookRequestContext struct {
// WebhookContext is the context of the webhook that spawned this request context.
*WebhookContext
// Obj is the resource associated with the webhook request.
Obj *unstructured.Unstructured
// RawObj is the raw object from the webhook request.
RawObj []byte
// OldObj is set only for Update requests.
OldObj *unstructured.Unstructured
// Operation is the operation.
Op admissionv1.Operation
// IsPrivilegedAccount is if this request is from a privileged account (currently
// that's either kube-admin or the pod's system account).
IsPrivilegedAccount bool
// UserInfo is the user information associated with the webhook request.
UserInfo authv1.UserInfo
// Logger is the logger associated with the webhook request.
Logger logr.Logger
}
WebhookRequestContext is a Go context used with a webhook request.
func (*WebhookRequestContext) String ¶
func (c *WebhookRequestContext) String() string
String returns Obj.GroupVersionKind Obj.Namespace/Obj.Name.
Source Files
¶
- backupvirtualmachine_context.go
- clustercontentlibraryitem_context.go
- contentlibraryitem_context.go
- context.go
- controller_manager_context.go
- virtualmachine_context.go
- virtualmachineclass_context.go
- virtualmachinepublishrequest_context.go
- virtualmachineservice_context.go
- virtualmachinesetresourcepolicy_context.go
- volume_context.go
- webconsolerequest_context.go
- webhook_context.go
- webhook_request_context.go