Created
March 12, 2024 14:47
-
-
Save hamzy/1ea43e45757806ff95bd91e32f7465f7 to your computer and use it in GitHub Desktop.
20240312 ./pkg/infrastructure/powervs/clusterapi/powervs.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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