Documentation ¶
Index ¶
- func GetCredentialsForCluster(cloud kubermaticv1.CloudSpec, ...) (string, string, error)
- func GetDatastoreList(dc *kubermaticv1.DatacenterSpecVSphere, username, password string, ...) ([]*object.Datastore, error)
- type Folder
- type NetworkInfo
- type Provider
- func (v *Provider) CleanUpCloudProvider(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
- func (v *Provider) DefaultCloudSpec(cloud *kubermaticv1.CloudSpec) error
- func (v *Provider) InitializeCloudProvider(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
- func (v *Provider) ValidateCloudSpec(spec kubermaticv1.CloudSpec) error
- func (v *Provider) ValidateCloudSpecUpdate(oldSpec kubermaticv1.CloudSpec, newSpec kubermaticv1.CloudSpec) error
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCredentialsForCluster ¶
func GetCredentialsForCluster(cloud kubermaticv1.CloudSpec, secretKeySelector provider.SecretKeySelectorValueFunc, dc *kubermaticv1.DatacenterSpecVSphere) (string, string, error)
func GetDatastoreList ¶ added in v2.17.0
func GetDatastoreList(dc *kubermaticv1.DatacenterSpecVSphere, username, password string, caBundle *x509.CertPool) ([]*object.Datastore, error)
GetDatastoreList returns a slice of Datastore of the datacenter from the passed cloudspec.
Types ¶
type Folder ¶
type Folder struct {
Path string
}
Folder represents a vsphere folder.
func GetVMFolders ¶
func GetVMFolders(dc *kubermaticv1.DatacenterSpecVSphere, username, password string, caBundle *x509.CertPool) ([]Folder, error)
GetVMFolders returns a slice of VSphereFolders of the datacenter from the passed cloudspec.
type NetworkInfo ¶
func GetNetworks ¶
func GetNetworks(dc *kubermaticv1.DatacenterSpecVSphere, username, password string, caBundle *x509.CertPool) ([]NetworkInfo, error)
GetNetworks returns a slice of VSphereNetworks of the datacenter from the passed cloudspec.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider represents the vsphere provider.
func NewCloudProvider ¶
func NewCloudProvider(dc *kubermaticv1.Datacenter, secretKeyGetter provider.SecretKeySelectorValueFunc, caBundle *x509.CertPool) (*Provider, error)
NewCloudProvider creates a new vSphere provider.
func (*Provider) CleanUpCloudProvider ¶
func (v *Provider) CleanUpCloudProvider(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
CleanUpCloudProvider we always check if the folder is there and remove it if yes because we know its absolute path This covers cases where the finalizer was not added We also remove the finalizer if either the folder is not present or we successfully deleted it
func (*Provider) DefaultCloudSpec ¶
func (v *Provider) DefaultCloudSpec(cloud *kubermaticv1.CloudSpec) error
DefaultCloudSpec adds defaults to the cloud spec
func (*Provider) InitializeCloudProvider ¶
func (v *Provider) InitializeCloudProvider(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
InitializeCloudProvider initializes the vsphere cloud provider by setting up vm folders for the cluster.
func (*Provider) ValidateCloudSpec ¶
func (v *Provider) ValidateCloudSpec(spec kubermaticv1.CloudSpec) error
ValidateCloudSpec validates whether a vsphere client can be constructed for the passed cloudspec and perform some additional checks on datastore config.
func (*Provider) ValidateCloudSpecUpdate ¶
func (v *Provider) ValidateCloudSpecUpdate(oldSpec kubermaticv1.CloudSpec, newSpec kubermaticv1.CloudSpec) error
ValidateCloudSpecUpdate verifies whether an update of cloud spec is valid and permitted