Documentation ¶
Index ¶
- type AzureClient
- func (ac *AzureClient) CreateOrUpdate(ctx context.Context, resourceGroupName, name string, ...) (containerservice.ManagedCluster, error)
- func (ac *AzureClient) Delete(ctx context.Context, resourceGroupName, name string) error
- func (ac *AzureClient) Get(ctx context.Context, resourceGroupName, name string) (containerservice.ManagedCluster, error)
- func (ac *AzureClient) GetCredentials(ctx context.Context, resourceGroupName, name string) ([]byte, error)
- type Client
- type ManagedClusterScope
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureClient ¶
type AzureClient struct {
// contains filtered or unexported fields
}
AzureClient contains the Azure go-sdk Client.
func NewClient ¶
func NewClient(auth azure.Authorizer) *AzureClient
NewClient creates a new VM client from subscription ID.
func (*AzureClient) CreateOrUpdate ¶
func (ac *AzureClient) CreateOrUpdate(ctx context.Context, resourceGroupName, name string, cluster containerservice.ManagedCluster, headers map[string]string) (containerservice.ManagedCluster, error)
CreateOrUpdate creates or updates a managed cluster.
func (*AzureClient) Delete ¶
func (ac *AzureClient) Delete(ctx context.Context, resourceGroupName, name string) error
Delete deletes a managed cluster.
func (*AzureClient) Get ¶
func (ac *AzureClient) Get(ctx context.Context, resourceGroupName, name string) (containerservice.ManagedCluster, error)
Get gets a managed cluster.
func (*AzureClient) GetCredentials ¶
func (ac *AzureClient) GetCredentials(ctx context.Context, resourceGroupName, name string) ([]byte, error)
GetCredentials fetches the admin kubeconfig for a managed cluster.
type Client ¶
type Client interface { Get(context.Context, string, string) (containerservice.ManagedCluster, error) GetCredentials(context.Context, string, string) ([]byte, error) CreateOrUpdate(context.Context, string, string, containerservice.ManagedCluster, map[string]string) (containerservice.ManagedCluster, error) Delete(context.Context, string, string) error }
Client wraps go-sdk.
type ManagedClusterScope ¶ added in v0.5.2
type ManagedClusterScope interface { azure.ClusterDescriber ManagedClusterAnnotations() map[string]string ManagedClusterSpec() (azure.ManagedClusterSpec, error) GetAllAgentPoolSpecs(ctx context.Context) ([]azure.AgentPoolSpec, error) SetControlPlaneEndpoint(clusterv1.APIEndpoint) MakeEmptyKubeConfigSecret() corev1.Secret GetKubeConfigData() []byte SetKubeConfigData([]byte) }
ManagedClusterScope defines the scope interface for a managed cluster.
type Service ¶
type Service struct { Scope ManagedClusterScope Client }
Service provides operations on azure resources.
func (*Service) IsManaged ¶ added in v1.3.0
IsManaged returns always returns true as CAPZ does not support BYO managed cluster.
Directories ¶
Path | Synopsis |
---|---|
Package mock_managedclusters is a generated GoMock package.
|
Package mock_managedclusters is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.