managedclusters

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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) (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 ManagedClusterScope added in v0.5.2

type ManagedClusterScope interface {
	logr.Logger
	azure.ClusterDescriber
	ManagedClusterSpec() (azure.ManagedClusterSpec, error)
	GetAgentPoolSpecs(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 New added in v0.5.2

func New(scope ManagedClusterScope) *Service

New creates a new service.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context) error

Delete deletes the virtual network with the provided name.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context) error

Reconcile idempotently creates or updates a managed cluster, if possible.

Directories

Path Synopsis
Package mock_managedclusters is a generated GoMock package.
Package mock_managedclusters is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL