github.com/openshift/installer@v1.4.17/pkg/asset/cluster/baremetal/baremetal.go (about) 1 // Package baremetal extracts bare metal metadata from install 2 // configurations. 3 package baremetal 4 5 import ( 6 "github.com/openshift/installer/pkg/types" 7 "github.com/openshift/installer/pkg/types/baremetal" 8 ) 9 10 // Metadata converts an install configuration to bare metal metadata. 11 func Metadata(config *types.InstallConfig) *baremetal.Metadata { 12 return &baremetal.Metadata{ 13 LibvirtURI: config.Platform.BareMetal.LibvirtURI, 14 } 15 }