managedclusters

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 17 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, 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 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 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 managed cluster.

func (*Service) IsManaged added in v1.3.0

func (s *Service) IsManaged(ctx context.Context) (bool, error)

IsManaged returns always returns true as CAPZ does not support BYO managed cluster.

func (*Service) Name added in v1.3.0

func (s *Service) Name() string

Name returns the service 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