util

package
v0.0.0-...-3871800 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0, BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DNSPolicy

func DNSPolicy(policy string) (corev1.DNSPolicy, error)

func DecodeProviderSpecAndSecret

func DecodeProviderSpecAndSecret(machineClass *v1alpha1.MachineClass) (*api.KubeVirtProviderSpec, error)

DecodeProviderSpecAndSecret converts request parameters to api.ProviderSpec

func ParseResources

func ParseResources(cpus, memory string) (*corev1.ResourceList, error)

func PrepareErrorf

func PrepareErrorf(err error, format string, args ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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