Documentation ¶
Index ¶
- func CreateOrUpdateAgentPool(ctx context.Context, agentPoolClient *containerservice.AgentPoolsClient, ...) error
- func CreateOrUpdateCluster(ctx context.Context, cred *Credentials, ...) error
- func CreateResourceGroup(ctx context.Context, groupsClient *resources.GroupsClient, ...) error
- func ExistsCluster(ctx context.Context, clusterClient *containerservice.ManagedClustersClient, ...) bool
- func ExistsResourceGroup(ctx context.Context, groupsClient *resources.GroupsClient, ...) bool
- func NewAgentPoolClient(cred *Credentials) (*containerservice.AgentPoolsClient, error)
- func NewClientAuthorizer(cred *Credentials) (autorest.Authorizer, error)
- func NewClusterClient(cred *Credentials) (*containerservice.ManagedClustersClient, error)
- func NewResourceGroupClient(cred *Credentials) (*resources.GroupsClient, error)
- func RemoveAgentPool(ctx context.Context, agentPoolClient *containerservice.AgentPoolsClient, ...) error
- func RemoveCluster(ctx context.Context, clusterClient *containerservice.ManagedClustersClient, ...) error
- type Credentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateAgentPool ¶
func CreateOrUpdateAgentPool(ctx context.Context, agentPoolClient *containerservice.AgentPoolsClient, spec *aksv1.AKSClusterConfigSpec, np *aksv1.AKSNodePool) error
func CreateOrUpdateCluster ¶
func CreateOrUpdateCluster(ctx context.Context, cred *Credentials, clusterClient *containerservice.ManagedClustersClient, spec *aksv1.AKSClusterConfigSpec) error
CreateOrUpdateCluster creates a new managed Kubernetes cluster
func CreateResourceGroup ¶
func CreateResourceGroup(ctx context.Context, groupsClient *resources.GroupsClient, spec *aksv1.AKSClusterConfigSpec) error
func ExistsCluster ¶
func ExistsCluster(ctx context.Context, clusterClient *containerservice.ManagedClustersClient, spec *aksv1.AKSClusterConfigSpec) bool
ExistsCluster Check if AKS managed Kubernetes cluster exist
func ExistsResourceGroup ¶
func NewAgentPoolClient ¶
func NewAgentPoolClient(cred *Credentials) (*containerservice.AgentPoolsClient, error)
func NewClientAuthorizer ¶
func NewClientAuthorizer(cred *Credentials) (autorest.Authorizer, error)
func NewClusterClient ¶
func NewClusterClient(cred *Credentials) (*containerservice.ManagedClustersClient, error)
func NewResourceGroupClient ¶
func NewResourceGroupClient(cred *Credentials) (*resources.GroupsClient, error)
func RemoveAgentPool ¶
func RemoveAgentPool(ctx context.Context, agentPoolClient *containerservice.AgentPoolsClient, spec *aksv1.AKSClusterConfigSpec, np *aksv1.AKSNodePool) error
RemoveAgentPool Delete AKS Agent Pool
func RemoveCluster ¶
func RemoveCluster(ctx context.Context, clusterClient *containerservice.ManagedClustersClient, spec *aksv1.AKSClusterConfigSpec) error
RemoveCluster Delete AKS managed Kubernetes cluster
Types ¶
type Credentials ¶
type Credentials struct { AuthBaseURL *string BaseURL *string SubscriptionID string TenantID string ClientID string ClientSecret string }
func GetSecrets ¶
func GetSecrets(secretsCache wranglerv1.SecretCache, spec *aksv1.AKSClusterConfigSpec) (*Credentials, error)
Click to show internal directories.
Click to hide internal directories.