Documentation ¶
Index ¶
- Constants
- func GetCredentialsForCluster(cloud kubermaticv1.CloudSpec, ...) (creds *resources.VMwareCloudDirectorCredentials, err error)
- func ListCatalogs(ctx context.Context, auth Auth) (apiv1.VMwareCloudDirectorCatalogList, error)
- func ListOVDCNetworks(ctx context.Context, auth Auth) (apiv1.VMwareCloudDirectorNetworkList, error)
- func ListStorageProfiles(ctx context.Context, auth Auth) (apiv1.VMwareCloudDirectorStorageProfileList, error)
- func ListTemplates(ctx context.Context, auth Auth, catalogName string) (apiv1.VMwareCloudDirectorTemplateList, error)
- func ValidateCredentials(ctx context.Context, dc *kubermaticv1.DatacenterSpecVMwareCloudDirector, ...) error
- type Auth
- type Client
- type Provider
- func (p *Provider) CleanUpCloudProvider(ctx context.Context, cluster *kubermaticv1.Cluster, ...) (*kubermaticv1.Cluster, error)
- func (p *Provider) DefaultCloudSpec(_ context.Context, _ *kubermaticv1.ClusterSpec) error
- func (p *Provider) InitializeCloudProvider(ctx context.Context, cluster *kubermaticv1.Cluster, ...) (*kubermaticv1.Cluster, error)
- func (p *Provider) ReconcileCluster(ctx context.Context, cluster *kubermaticv1.Cluster, ...) (*kubermaticv1.Cluster, error)
- func (p *Provider) ValidateCloudSpec(_ context.Context, spec kubermaticv1.CloudSpec) error
- func (p *Provider) ValidateCloudSpecUpdate(_ context.Context, oldSpec kubermaticv1.CloudSpec, ...) error
Constants ¶
View Source
const (
ResourceNamePattern = "kubernetes-%s"
)
Variables ¶
This section is empty.
Functions ¶
func GetCredentialsForCluster ¶
func GetCredentialsForCluster(cloud kubermaticv1.CloudSpec, secretKeySelector provider.SecretKeySelectorValueFunc) (creds *resources.VMwareCloudDirectorCredentials, err error)
GetCredentialsForCluster returns the credentials for the passed in cloud spec or an error.
func ListCatalogs ¶
func ListOVDCNetworks ¶
func ListStorageProfiles ¶
func ListTemplates ¶
func ValidateCredentials ¶
func ValidateCredentials(ctx context.Context, dc *kubermaticv1.DatacenterSpecVMwareCloudDirector, username, password, apiToken, organization, vdc string) error
Types ¶
type Auth ¶
type Auth struct { Username string Password string APIToken string Organization string URL string VDC string AllowInsecure bool }
func GetAuthInfo ¶
func GetAuthInfo(spec kubermaticv1.CloudSpec, secretKeySelector provider.SecretKeySelectorValueFunc, dc *kubermaticv1.DatacenterSpecVMwareCloudDirector) (*Auth, error)
type Client ¶
func NewClient ¶
func NewClient(spec kubermaticv1.CloudSpec, secretKeySelector provider.SecretKeySelectorValueFunc, dc *kubermaticv1.DatacenterSpecVMwareCloudDirector) (*Client, error)
func NewClientWithAuth ¶
func NewClientWithCreds ¶
func (*Client) GetAuthenticatedClient ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewCloudProvider ¶
func NewCloudProvider(dc *kubermaticv1.Datacenter, secretKeyGetter provider.SecretKeySelectorValueFunc) (*Provider, error)
NewCloudProvider creates a new VMware Cloud Director provider.
func (*Provider) CleanUpCloudProvider ¶
func (p *Provider) CleanUpCloudProvider(ctx context.Context, cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
func (*Provider) DefaultCloudSpec ¶
func (p *Provider) DefaultCloudSpec(_ context.Context, _ *kubermaticv1.ClusterSpec) error
func (*Provider) InitializeCloudProvider ¶
func (p *Provider) InitializeCloudProvider(ctx context.Context, cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
func (*Provider) ReconcileCluster ¶
func (p *Provider) ReconcileCluster(ctx context.Context, cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
func (*Provider) ValidateCloudSpec ¶
func (*Provider) ValidateCloudSpecUpdate ¶
func (p *Provider) ValidateCloudSpecUpdate(_ context.Context, oldSpec kubermaticv1.CloudSpec, newSpec kubermaticv1.CloudSpec) error
ValidateCloudSpecUpdate verifies whether an update of cloud spec is valid and permitted.
Click to show internal directories.
Click to hide internal directories.