aks

package
v1.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLogAnalyticsWorkspaceForMonitoring

func CheckLogAnalyticsWorkspaceForMonitoring(ctx context.Context, client *operationalinsights.WorkspacesClient,
	location string, group string, wsg string, wsn string) (workspaceID string, err error)

func CreateCluster added in v1.0.6

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

CreateCluster creates a new managed Kubernetes cluster. In this case, there will be no existing upstream cluster. We are provisioning a brand new one.

func CreateManagedCluster added in v1.0.6

func CreateManagedCluster(ctx context.Context, cred *Credentials, spec *aksv1.AKSClusterConfigSpec, phase string) (containerservice.ManagedCluster, error)

CreateManagedCluster creates a new managed Kubernetes cluster.

func CreateOrUpdateAgentPool

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

CreateOrUpdateAgentPool creates a new pool(s) in AKS. If one already exists it updates the upstream node pool with any provided updates.

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, error)

ExistsCluster Check if AKS managed Kubernetes cluster exist

func ExistsResourceGroup

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

func GetCachedTenantID

func GetCachedTenantID(secretClient secretClient, subscriptionID string, secret *v1.Secret) (string, error)

func NewAgentPoolClient

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

func NewClientAuthorizer

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

func NewOperationInsightsWorkspaceClient

func NewOperationInsightsWorkspaceClient(cred *Credentials) (*operationalinsights.WorkspacesClient, 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

func UpdateCluster added in v1.0.6

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

UpdateCluster updates an existing managed Kubernetes cluster. Before updating, it pulls any existing configuration and then only updates managed fields.

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, secretClient wranglerv1.SecretClient, spec *aksv1.AKSClusterConfigSpec) (*Credentials, error)

Jump to

Keyboard shortcuts

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