aks

package
v1.0.1-rc4 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateAgentPool

func CreateOrUpdateAgentPool(ctx context.Context, agentPoolClient *containerservice.AgentPoolsClient, spec *aksv1.AKSClusterConfigSpec, np *aksv1.AKSNodePool) error

func CreateOrUpdateCluster

func CreateOrUpdateCluster(ctx context.Context, cred *Credentials, clusterClient *containerservice.ManagedClustersClient, spec *aksv1.AKSClusterConfigSpec) error

CreateOrUpdateCluster creates a new managed Kubernetes cluster

func CreateResourceGroup

func CreateResourceGroup(ctx context.Context, groupsClient *resources.GroupsClient, spec *aksv1.AKSClusterConfigSpec) error

func ExistsCluster

func ExistsCluster(ctx context.Context, clusterClient *containerservice.ManagedClustersClient, spec *aksv1.AKSClusterConfigSpec) bool

ExistsCluster Check if AKS managed Kubernetes cluster exist

func ExistsResourceGroup

func ExistsResourceGroup(ctx context.Context, groupsClient *resources.GroupsClient, resourceGroup string) bool

func NewAgentPoolClient

func NewAgentPoolClient(cred *Credentials) (*containerservice.AgentPoolsClient, error)

func NewClientAuthorizer

func NewClientAuthorizer(cred *Credentials) (autorest.Authorizer, error)

func NewResourceGroupClient

func NewResourceGroupClient(cred *Credentials) (*resources.GroupsClient, error)

func RemoveAgentPool

func RemoveAgentPool(ctx context.Context, agentPoolClient *containerservice.AgentPoolsClient, spec *aksv1.AKSClusterConfigSpec, np *aksv1.AKSNodePool) error

RemoveAgentPool Delete AKS Agent Pool

func RemoveCluster

func RemoveCluster(ctx context.Context, clusterClient *containerservice.ManagedClustersClient, spec *aksv1.AKSClusterConfigSpec) error

RemoveCluster Delete AKS managed Kubernetes cluster

Types

type Credentials

type Credentials struct {
	AuthBaseURL    *string
	BaseURL        *string
	SubscriptionID string
	TenantID       string
	ClientID       string
	ClientSecret   string
}

func GetSecrets

func GetSecrets(secretsCache wranglerv1.SecretCache, spec *aksv1.AKSClusterConfigSpec) (*Credentials, error)

Jump to

Keyboard shortcuts

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