common

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package common provides shared utility functions for AKS MCP components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractAKSParameters

func ExtractAKSParameters(params map[string]interface{}) (subscriptionID, resourceGroup, clusterName string, err error)

ExtractAKSParameters extracts and validates the common AKS parameters from the params map

func GetClusterDetails

func GetClusterDetails(ctx context.Context, client *azureclient.AzureClient, subscriptionID, resourceGroup, clusterName string) (*armcontainerservice.ManagedCluster, error)

GetClusterDetails gets the details of an AKS cluster

func GetDefaultSubscriptionID added in v0.0.11

func GetDefaultSubscriptionID(cfg *config.ConfigData) (string, error)

GetDefaultSubscriptionID attempts to get the subscription ID from environment variable or Azure CLI

Types

This section is empty.

Jump to

Keyboard shortcuts

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