github.com/openshift/installer@v1.4.17/pkg/asset/ignition/bootstrap/vsphere/template.go (about)

     1  package vsphere
     2  
     3  import (
     4  	"github.com/openshift/installer/pkg/types/vsphere"
     5  )
     6  
     7  // TemplateData holds data specific to templates used for the vsphere platform.
     8  type TemplateData struct {
     9  	// UserProvidedIPs specifies whether users provided IP addresses in the install config.
    10  	UserProvidedVIPs bool
    11  }
    12  
    13  // GetTemplateData returns platform-specific data for bootstrap templates.
    14  func GetTemplateData(config *vsphere.Platform) *TemplateData {
    15  	var templateData TemplateData
    16  
    17  	templateData.UserProvidedVIPs = len(config.APIVIPs) > 0
    18  
    19  	return &templateData
    20  }