cluster

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandGroup

func CommandGroup(parent *cobra.Command, cmdCtx *cmd.CommandContext)

Types

type ClusterDetails

type ClusterDetails struct {
	NodesResourceGroup    *armresources.ResourceGroup
	KubernetesCluster     *armcontainerservice.ManagedCluster
	VirtualNetwork        *armnetwork.VirtualNetwork
	KubeCli               kubernetes.Interface
	Kubectl               func(context.Context) *exec.Cmd
	KubeconfigData        []byte
	KubeCACertificateData []byte
	GatewayPoolName       string
}

type CreateCluster

type CreateCluster struct {
	Azure                *azsdk.ClientSet
	Name                 string
	Location             string
	Logger               *slog.Logger
	SystemPoolNodeSKU    string
	SystemPoolNodeCount  int32
	GatewayPoolNodeSKU   string
	GatewayPoolNodeCount int32
	SSHDir               string
	DataDir              DataDir
	DatacenterConfig     *DatacenterConfig
}

func (*CreateCluster) Do

type CreateClusterOutput

type CreateClusterOutput struct {
	ClusterName            string
	FQDN                   string
	NodePoolsResourceGroup string
	ResourceGroup          string
	SubscriptionID         string
	KubeconfigPath         string
}

type DataDir

type DataDir struct {
	Root           string
	UnboundedForge string
	Site           string
}

func (*DataDir) SitePath

func (d *DataDir) SitePath(extra ...string) string

func (*DataDir) UnboundedForgePath

func (d *DataDir) UnboundedForgePath(extra ...string) string

type DatacenterConfig

type DatacenterConfig struct {
	Provider    string
	ConfigFile  string
	ExtraParams map[string]string
}

type DeleteCluster

type DeleteCluster struct {
	Azure  *azsdk.ClientSet
	Name   string
	Logger *slog.Logger
}

func (*DeleteCluster) Do

func (dc *DeleteCluster) Do(ctx context.Context) error

type GetClusterDetails

type GetClusterDetails struct {
	ManagedClusterGetter interface {
		Get(ctx context.Context, rg, name string) (*armcontainerservice.ManagedCluster, error)
		GetUserCredentials(ctx context.Context, rgName, name string) ([]byte, error)
	}

	GetResourceGroup  func(ctx context.Context, name string) (*armresources.ResourceGroup, error)
	GetVirtualNetwork func(ctx context.Context, rg, name string) (*armnetwork.VirtualNetwork, error)
	Logger            *slog.Logger
	DataDir           DataDir
	Name              string
}

func NewGetClusterDetails

func NewGetClusterDetails(azCli *azsdk.ClientSet, logger *slog.Logger, dataDir DataDir, clusterName string) *GetClusterDetails

func (*GetClusterDetails) Get

Jump to

Keyboard shortcuts

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