Documentation
¶
Index ¶
- func Create(ctx context.Context, stateDir string, cfg *UserConfig) *cobra.Command
- func Defaults() *cobra.Command
- func Inspect(ctx context.Context, stateDir string) *cobra.Command
- func KubeConfig(ctx context.Context, stateDir string) *cobra.Command
- func List(ctx context.Context, stateDir string) *cobra.Command
- func Remove(ctx context.Context, stateDir string, cfg *UserConfig) *cobra.Command
- func SSH(ctx context.Context, stateDir string) *cobra.Command
- type AgentNodeConfig
- type UserConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Defaults ¶
Defaults creates the `generate-defaults` subcommand. Use this to generate a default API model.
func KubeConfig ¶
KubeConfig creates a a command to get the kubeconfig for a cluster
func List ¶
List returns a command to list the existing clusters. Note that this lists from the local state, which may differ from state in Azure.
Types ¶
type AgentNodeConfig ¶
AgentNodeConfig is used to configure an agent node pool. It's used by UserConfig
type UserConfig ¶
type UserConfig struct {
Subscription string
Location string
Profile struct {
KubernetesVersion string
Leader struct {
Linux struct {
SKU string
Count *int
}
}
Agent struct {
Linux AgentNodeConfig
Windows AgentNodeConfig
}
Auth struct {
Linux struct {
User string
PublicKeyFile string
}
Windows struct {
User string
PasswordFile string
}
}
}
}
UserConfig represents the user configuration read from a config file
func ReadUserConfig ¶
func ReadUserConfig(configPath string) (UserConfig, error)
ReadUserConfig reads the config from the provided path If
Click to show internal directories.
Click to hide internal directories.