aks

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package aks provides functions and data structures to interact with Azure Kubernetes Service (AKS) resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureResourceReport

type AzureResourceReport struct {
	Resources AzureResources `json:"resources" yaml:"resources"`
	Errors    []string       `json:"errors" yaml:"errors"`
}

AzureResourceReport contains the AzureResources and any non-fatal errors encountered during enumeration.

func EnumerateAKSClusters

func EnumerateAKSClusters(ctx context.Context, cfg config.AzureConfig) (*AzureResourceReport, error)

EnumerateAKSClusters enumerates all AKS clusters in the subscription, returning a report of the clusters and any non-fatal errors encountered.

type AzureResources

type AzureResources struct {
	SubscriptionID string           `json:"subscription_id" yaml:"subscription_id"`
	TenantID       string           `json:"tenant_id" yaml:"tenant_id"`
	AKSClusters    []ClusterDetails `json:"aks_clusters" yaml:"aks_clusters"`
}

AzureResources contains details about all AKS clusters in the subscription.

type ClusterDetails

type ClusterDetails struct {
	Name            string                             `json:"cluster_name" yaml:"cluster_name"`
	ResourceGroup   string                             `json:"resource_group" yaml:"resource_group"`
	ResourceGroupID string                             `json:"resource_group_id" yaml:"resource_group_id"`
	Details         armcontainerservice.ManagedCluster `json:"details" yaml:"details"`
	NodePools       []NodePoolDetails                  `json:"node_pools" yaml:"node_pools"`
}

ClusterDetails contains details about a single AKS cluster, including the cluster details and node pools.

type NodePoolDetails

type NodePoolDetails struct {
	Details armcontainerservice.AgentPool `json:"details" yaml:"details"`
	VMIDs   []string                      `json:"vm_ids" yaml:"vm_ids"`
}

NodePoolDetails contains details about a single AKS node pool and the VMs in the pool.

Jump to

Keyboard shortcuts

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