github.com/openshift/installer@v1.4.17/pkg/asset/cluster/nutanix/nutanix.go (about)

     1  package nutanix
     2  
     3  import (
     4  	"strconv"
     5  
     6  	"github.com/openshift/installer/pkg/types"
     7  	"github.com/openshift/installer/pkg/types/nutanix"
     8  )
     9  
    10  // Metadata converts an install configuration to Nutanix metadata.
    11  func Metadata(config *types.InstallConfig) *nutanix.Metadata {
    12  	return &nutanix.Metadata{
    13  		PrismCentral: config.Nutanix.PrismCentral.Endpoint.Address,
    14  		Username:     config.Nutanix.PrismCentral.Username,
    15  		Password:     config.Nutanix.PrismCentral.Password,
    16  		Port:         strconv.Itoa(int(config.Nutanix.PrismCentral.Endpoint.Port)),
    17  	}
    18  }