Skip to content

Instantly share code, notes, and snippets.

@hamzy
Created March 12, 2024 14:47
Show Gist options
  • Select an option

  • Save hamzy/1ea43e45757806ff95bd91e32f7465f7 to your computer and use it in GitHub Desktop.

Select an option

Save hamzy/1ea43e45757806ff95bd91e32f7465f7 to your computer and use it in GitHub Desktop.
20240312 ./pkg/infrastructure/powervs/clusterapi/powervs.go
package clusterapi
import (
"context"
"github.com/openshift/installer/pkg/infrastructure/clusterapi"
powervstypes "github.com/openshift/installer/pkg/types/powervs"
)
// Provider is the vSphere implementation of the clusterapi InfraProvider.
type Provider struct {
clusterapi.InfraProvider
}
var _ clusterapi.PreProvider = (*Provider)(nil)
var _ clusterapi.Provider = (*Provider)(nil)
// Name returns the PowerVS provider name.
func (p Provider) Name() string {
return powervstypes.Name
}
// PreProvision creates the PowerVS objects required prior to running capv.
func (p Provider) PreProvision(ctx context.Context, in clusterapi.PreProvisionInput) error {
return nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment