compute

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AgentPoolProfileName is a format string for the name of the automatically
	// created cluster agent pool profile
	AgentPoolProfileName = "agentpool"

	// NetworkContributorRoleID lets the AKS cluster managed networks, but not
	// access them.
	NetworkContributorRoleID = "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AKSClient

type AKSClient interface {
	GetManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster) (containerservice.ManagedCluster, error)
	EnsureManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster, secret string) error
	DeleteManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster) error
	GetKubeConfig(ctx context.Context, ac *v1alpha3.AKSCluster) ([]byte, error)
}

An AKSClient can create, read, and delete AKS clusters and the various other resources they require.

func NewAggregateClient

func NewAggregateClient(creds map[string]string, auth autorest.Authorizer) (AKSClient, error)

NewAggregateClient produces the various clients used by the AKS controller.

type AggregateClient

type AggregateClient struct {
	ManagedClusters   containerservice.ManagedClustersClient
	Applications      graphrbac.ApplicationsClient
	ServicePrincipals graphrbac.ServicePrincipalsClient
	RoleAssignments   authorization.RoleAssignmentsClient
}

An AggregateClient aggregates the various clients used by the AKS controller.

func (AggregateClient) DeleteManagedCluster

func (c AggregateClient) DeleteManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster) error

DeleteManagedCluster deletes the supplied AKS cluster, including its service principals and any role assignments.

func (AggregateClient) EnsureManagedCluster

func (c AggregateClient) EnsureManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster, secret string) error

EnsureManagedCluster ensures the supplied AKS cluster exists, including ensuring any required service principals and role assignments exist.

func (AggregateClient) GetKubeConfig

func (c AggregateClient) GetKubeConfig(ctx context.Context, ac *v1alpha3.AKSCluster) ([]byte, error)

GetKubeConfig produces a kubeconfig file that configures access to the supplied AKS cluster.

func (AggregateClient) GetManagedCluster

GetManagedCluster returns the requested Azure managed cluster.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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