Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TemplateNamespace stores the default namespace for kubevirt templates
TemplateNamespace = "openshift"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateFinder ¶
type TemplateFinder struct {
// contains filtered or unexported fields
}
TemplateFinder attempts to find a template based on given parameters
func NewTemplateFinder ¶
func NewTemplateFinder(templateProvider templates.TemplateProvider, osFinder os.OSFinder) *TemplateFinder
NewTemplateFinder creates new TemplateFinder
func (*TemplateFinder) FindTemplate ¶
func (f *TemplateFinder) FindTemplate(vm *ovirtsdk.Vm) (*templatev1.Template, error)
FindTemplate attempts to find best match for a template based on the source VM
func (*TemplateFinder) GetMetadata ¶ added in v0.0.2
func (f *TemplateFinder) GetMetadata(template *templatev1.Template, vm *ovirtsdk.Vm) (map[string]string, map[string]string, error)
GetMetadata fetches OS and workload specific labels and annotations
Click to show internal directories.
Click to hide internal directories.