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 ¶
func (cc *CreateCluster) Do(ctx context.Context) (*CreateClusterOutput, error)
type CreateClusterOutput ¶
type DataDir ¶
func (*DataDir) UnboundedForgePath ¶
type DatacenterConfig ¶
type DeleteCluster ¶
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 (*GetClusterDetails) Get ¶
func (g *GetClusterDetails) Get(ctx context.Context) (*ClusterDetails, error)
Click to show internal directories.
Click to hide internal directories.