hooks

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 18 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 HookSidecar

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

type HookSidecarList

type HookSidecarList []HookSidecar

func UnmarshalHookSidecarList

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

type Manager

type Manager struct {
	CallbacksPerHookPoint map[string][]*callBackClient
}

func GetManager

func GetManager() *Manager

func (*Manager) Collect

func (m *Manager) Collect(numberOfRequestedHookSidecars uint, timeout time.Duration) error

func (*Manager) OnDefineDomain

func (m *Manager) OnDefineDomain(domainSpec *virtwrapApi.DomainSpec, vmi *v1.VirtualMachineInstance) (string, error)

func (*Manager) PreCloudInitIso added in v0.15.0

func (m *Manager) PreCloudInitIso(vmi *v1.VirtualMachineInstance, cloudInitData *cloudinit.CloudInitData) (*cloudinit.CloudInitData, error)

Directories

Path Synopsis
Package kubevirt_hooks_info is a generated protocol buffer package.
Package kubevirt_hooks_info is a generated protocol buffer package.
Package kubevirt_hooks_v1alpha1 is a generated protocol buffer package.
Package kubevirt_hooks_v1alpha1 is a generated protocol buffer package.
Package kubevirt_hooks_v1alpha2 is a generated protocol buffer package.
Package kubevirt_hooks_v1alpha2 is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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