hooks

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 21 Imported by: 18

Documentation

Index

Constants

View Source
const HookSidecarListAnnotationName = "hooks.kubevirt.io/hookSidecars"
View Source
const HookSocketsSharedDirectory = "/var/run/kubevirt-hooks"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMap added in v1.2.0

type ConfigMap struct {
	Name     string `json:"name"`
	Key      string `json:"key"`
	HookPath string `json:"hookPath"`
}

type HookSidecar

type HookSidecar struct {
	Image           string           `json:"image"`
	ImagePullPolicy k8sv1.PullPolicy `json:"imagePullPolicy"`
	Command         []string         `json:"command,omitempty"`
	Args            []string         `json:"args,omitempty"`
	ConfigMap       *ConfigMap       `json:"configMap,omitempty"`
	PVC             *PVC             `json:"pvc,omitempty"`
}

type HookSidecarList

type HookSidecarList []HookSidecar

func UnmarshalHookSidecarList

func UnmarshalHookSidecarList(vmiObject *v1.VirtualMachineInstance) (HookSidecarList, error)

type Manager

type Manager interface {
	Collect(uint, time.Duration) error
	OnDefineDomain(*virtwrapApi.DomainSpec, *v1.VirtualMachineInstance) (string, error)
	PreCloudInitIso(*v1.VirtualMachineInstance, *cloudinit.CloudInitData) (*cloudinit.CloudInitData, error)
	Shutdown() error
}

func GetManager

func GetManager() Manager

type MockManager added in v0.57.0

type MockManager struct {
	// contains filtered or unexported fields
}

Mock of Manager interface

func NewMockManager added in v0.57.0

func NewMockManager(ctrl *gomock.Controller) *MockManager

func (*MockManager) Collect added in v0.57.0

func (_m *MockManager) Collect(_param0 uint, _param1 time.Duration) error

func (*MockManager) EXPECT added in v0.57.0

func (_m *MockManager) EXPECT() *_MockManagerRecorder

func (*MockManager) OnDefineDomain added in v0.57.0

func (_m *MockManager) OnDefineDomain(_param0 *api.DomainSpec, _param1 *v1.VirtualMachineInstance) (string, error)

func (*MockManager) PreCloudInitIso added in v0.57.0

func (_m *MockManager) PreCloudInitIso(_param0 *v1.VirtualMachineInstance, _param1 *cloud_init.CloudInitData) (*cloud_init.CloudInitData, error)

func (*MockManager) Shutdown added in v1.2.0

func (_m *MockManager) Shutdown() error

type PVC added in v1.2.0

type PVC struct {
	Name              string `json:"name"`
	VolumePath        string `json:"volumePath"`
	SharedComputePath string `json:"sharedComputePath"`
}

Directories

Path Synopsis
Package info is a generated protocol buffer package.
Package info is a generated protocol buffer package.
Package v1alpha1 is a generated protocol buffer package.
Package v1alpha1 is a generated protocol buffer package.
Package v1alpha2 is a generated protocol buffer package.
Package v1alpha2 is a generated protocol buffer package.
Package v1alpha3 is a generated protocol buffer package.
Package v1alpha3 is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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