github.com/openshift/installer@v1.4.17/pkg/infrastructure/ibmcloud/clusterapi/clusterapi.go (about) 1 package clusterapi 2 3 import ( 4 "context" 5 6 "github.com/openshift/installer/pkg/infrastructure/clusterapi" 7 ibmcloudtypes "github.com/openshift/installer/pkg/types/ibmcloud" 8 ) 9 10 var _ clusterapi.PreProvider = (*Provider)(nil) 11 var _ clusterapi.Provider = (*Provider)(nil) 12 13 // Provider implements IBM Cloud CAPI installation. 14 type Provider struct{} 15 16 // Name returns the IBM Cloud provider name. 17 func (p Provider) Name() string { 18 return ibmcloudtypes.Name 19 } 20 21 // PublicGatherEndpoint indicates that machine ready checks should NOT wait for an ExternalIP 22 // in the status when declaring machines ready. 23 func (Provider) PublicGatherEndpoint() clusterapi.GatherEndpoint { return clusterapi.InternalIP } 24 25 // PreProvision creates the IBM Cloud objects required prior to running capibmcloud. 26 func (p Provider) PreProvision(ctx context.Context, in clusterapi.PreProvisionInput) error { 27 return nil 28 }