Documentation ¶
Index ¶
- Constants
- Variables
- func CreateOnlyIfNotExist(ctx context.Context, c client.Client, name, namespace string, ...) (controllerutil.OperationResult, *kubevirtv1.VirtualMachineInstance, error)
- func Reconcile(ctx context.Context, c client.Client, name, namespace string, ...) (controllerutil.OperationResult, *kubevirtv1.VirtualMachineInstance, error)
- func WithEphemeralVolumeSource(claimName string) k8s_object.ObjectOption
- func WithReadinessTCPProbe(tcpAction *corev1.TCPSocketAction) k8s_object.ObjectOption
- func WithUserDataSecret(userDataRef *corev1.LocalObjectReference) k8s_object.ObjectOption
Constants ¶
View Source
const ( DiskKeyForBoot = "boot" DiskKeyForCloudInit = "cloud-init" )
Variables ¶
View Source
var (
DefaultResourceMemory = resource.MustParse("1024M")
)
Functions ¶
func CreateOnlyIfNotExist ¶
func CreateOnlyIfNotExist( ctx context.Context, c client.Client, name, namespace string, opts ...k8s_object.ObjectOption, ) (controllerutil.OperationResult, *kubevirtv1.VirtualMachineInstance, error)
func Reconcile ¶
func Reconcile( ctx context.Context, c client.Client, name, namespace string, opts ...k8s_object.ObjectOption, ) (controllerutil.OperationResult, *kubevirtv1.VirtualMachineInstance, error)
func WithEphemeralVolumeSource ¶
func WithEphemeralVolumeSource(claimName string) k8s_object.ObjectOption
func WithReadinessTCPProbe ¶
func WithReadinessTCPProbe(tcpAction *corev1.TCPSocketAction) k8s_object.ObjectOption
func WithUserDataSecret ¶
func WithUserDataSecret(userDataRef *corev1.LocalObjectReference) k8s_object.ObjectOption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.