context

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterContext

type ClusterContext struct {
	context.Context
	Cluster         *clusterv1.Cluster
	KubevirtCluster *infrav1.KubevirtCluster
	Logger          logr.Logger
}

ClusterContext is a Go context used with a KubeVirt cluster.

func (*ClusterContext) PatchKubevirtCluster

func (c *ClusterContext) PatchKubevirtCluster(patchHelper *patch.Helper) error

PatchKubevirtCluster patches the KubevirtCluster object and status.

func (*ClusterContext) String

func (c *ClusterContext) String() string

String returns KubeVirt cluster GroupVersionKind.

type MachineContext

type MachineContext struct {
	context.Context
	Cluster             *clusterv1.Cluster
	Machine             *clusterv1.Machine
	KubevirtCluster     *infrav1.KubevirtCluster
	KubevirtMachine     *infrav1.KubevirtMachine
	BootstrapDataSecret *corev1.Secret
	Logger              logr.Logger
}

MachineContext is a Go context used with a KubeVirt machine.

func (*MachineContext) ClusterContext

func (c *MachineContext) ClusterContext() *ClusterContext

ClusterContext returns cluster context from this machine context

func (*MachineContext) HasInjectedCapkSSHKeys

func (c *MachineContext) HasInjectedCapkSSHKeys(sshPublicKey []byte) bool

func (*MachineContext) PatchKubevirtMachine

func (c *MachineContext) PatchKubevirtMachine(patchHelper *patch.Helper) error

PatchKubevirtMachine patches the KubevirtMachine object and status.

func (*MachineContext) String

func (c *MachineContext) String() string

String returns KubeVirt machine GroupVersionKind

Jump to

Keyboard shortcuts

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