context

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

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

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

	// 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

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

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

type VirtualMachineServiceContext

type VirtualMachineServiceContext struct {
	context.Context
	Logger    logr.Logger
	VMService *v1alpha1.VirtualMachineService
}

VirtualMachineServiceContext is the context used for VirtualMachineServiceController.

func (*VirtualMachineServiceContext) 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

type VirtualMachineSetResourcePolicyContext

type VirtualMachineSetResourcePolicyContext struct {
	context.Context
	Logger         logr.Logger
	ResourcePolicy *v1alpha1.VirtualMachineSetResourcePolicy
}

VirtualMachineSetResourcePolicyContext is the context used for VirtualMachineControllers.

func (*VirtualMachineSetResourcePolicyContext) 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

type VolumeContextA2 added in v1.8.5

type VolumeContextA2 struct {
	context.Context
	Logger logr.Logger
	VM     *vmopv1.VirtualMachine
}

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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