Documentation ¶
Index ¶
- Constants
- func ValidateCredentials(ctx context.Context, credentials Credentials) error
- type Azure
- func (a *Azure) AddICMPRulesIfRequired(cluster *kubermaticv1.Cluster) error
- func (a *Azure) CleanUpCloudProvider(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
- func (a *Azure) DefaultCloudSpec(cloud *kubermaticv1.CloudSpec) error
- func (a *Azure) InitializeCloudProvider(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
- func (a *Azure) ReconcileCluster(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
- func (a *Azure) ValidateCloudSpec(cloud kubermaticv1.CloudSpec) error
- func (a *Azure) ValidateCloudSpecUpdate(oldSpec kubermaticv1.CloudSpec, newSpec kubermaticv1.CloudSpec) error
- type ClientSet
- type Credentials
Constants ¶
View Source
const ( // FinalizerSecurityGroup will instruct the deletion of the security group. FinalizerSecurityGroup = "kubermatic.k8c.io/cleanup-azure-security-group" // FinalizerRouteTable will instruct the deletion of the route table. FinalizerRouteTable = "kubermatic.k8c.io/cleanup-azure-route-table" // FinalizerSubnet will instruct the deletion of the subnet. FinalizerSubnet = "kubermatic.k8c.io/cleanup-azure-subnet" // FinalizerVNet will instruct the deletion of the virtual network. FinalizerVNet = "kubermatic.k8c.io/cleanup-azure-vnet" // FinalizerResourceGroup will instruct the deletion of the resource group. FinalizerResourceGroup = "kubermatic.k8c.io/cleanup-azure-resource-group" // FinalizerAvailabilitySet will instruct the deletion of the availability set. FinalizerAvailabilitySet = "kubermatic.k8c.io/cleanup-azure-availability-set" )
Variables ¶
This section is empty.
Functions ¶
func ValidateCredentials ¶ added in v2.20.0
func ValidateCredentials(ctx context.Context, credentials Credentials) error
Types ¶
type Azure ¶
type Azure struct {
// contains filtered or unexported fields
}
func New ¶
func New(dc *kubermaticv1.Datacenter, secretKeyGetter provider.SecretKeySelectorValueFunc) (*Azure, error)
New returns a new Azure provider.
func (*Azure) AddICMPRulesIfRequired ¶
func (a *Azure) AddICMPRulesIfRequired(cluster *kubermaticv1.Cluster) error
func (*Azure) CleanUpCloudProvider ¶
func (a *Azure) CleanUpCloudProvider(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
func (*Azure) DefaultCloudSpec ¶
func (a *Azure) DefaultCloudSpec(cloud *kubermaticv1.CloudSpec) error
func (*Azure) InitializeCloudProvider ¶
func (a *Azure) InitializeCloudProvider(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
func (*Azure) ReconcileCluster ¶ added in v2.19.0
func (a *Azure) ReconcileCluster(cluster *kubermaticv1.Cluster, update provider.ClusterUpdater) (*kubermaticv1.Cluster, error)
func (*Azure) ValidateCloudSpec ¶
func (a *Azure) ValidateCloudSpec(cloud kubermaticv1.CloudSpec) error
func (*Azure) ValidateCloudSpecUpdate ¶
func (a *Azure) ValidateCloudSpecUpdate(oldSpec kubermaticv1.CloudSpec, newSpec kubermaticv1.CloudSpec) error
ValidateCloudSpecUpdate verifies whether an update of cloud spec is valid and permitted.
type ClientSet ¶ added in v2.19.0
type ClientSet struct { // Autorest client is used to wait for completion of futures Autorest *autorest.Client Groups resourcesapi.GroupsClientAPI Networks networkapi.VirtualNetworksClientAPI Subnets networkapi.SubnetsClientAPI RouteTables networkapi.RouteTablesClientAPI SecurityGroups networkapi.SecurityGroupsClientAPI AvailabilitySets computeapi.AvailabilitySetsClientAPI }
ClientSet provides a set of Azure service clients that are necessary to reconcile resources needed by KKP.
func GetClientSet ¶ added in v2.19.0
func GetClientSet(cloud kubermaticv1.CloudSpec, credentials Credentials) (*ClientSet, error)
GetClientSet returns a ClientSet using the passed credentials as authorization.
type Credentials ¶
type Credentials struct { TenantID string SubscriptionID string ClientID string ClientSecret string }
func GetCredentialsForCluster ¶
func GetCredentialsForCluster(cloud kubermaticv1.CloudSpec, secretKeySelector provider.SecretKeySelectorValueFunc) (Credentials, error)
GetCredentialsForCluster returns the credentials for the passed in cloud spec or an error.
Click to show internal directories.
Click to hide internal directories.