Documentation ¶
Index ¶
- func CheckLogAnalyticsWorkspaceForMonitoring(ctx context.Context, client services.WorkplacesClientInterface, ...) (workspaceID string, err error)
- func CreateCluster(ctx context.Context, cred *Credentials, ...) error
- func CreateOrUpdateAgentPool(ctx context.Context, agentPoolClient services.AgentPoolsClientInterface, ...) error
- func CreateResourceGroup(ctx context.Context, groupsClient services.ResourceGroupsClientInterface, ...) error
- func ExistsCluster(ctx context.Context, clusterClient services.ManagedClustersClientInterface, ...) (bool, error)
- func ExistsResourceGroup(ctx context.Context, groupsClient services.ResourceGroupsClientInterface, ...) (bool, error)
- func GetCachedTenantID(secretClient secretClient, subscriptionID string, secret *corev1.Secret) (string, error)
- func GetClusterAccessProfile(ctx context.Context, clusterClient services.ManagedClustersClientInterface, ...) (containerservice.ManagedClusterAccessProfile, error)
- func GetEnvironment(env string) azure.Environment
- func NewClientAuthorizer(cred *Credentials) (autorest.Authorizer, error)
- func NewClusterClient(cred *Credentials) (*containerservice.ManagedClustersClient, error)
- func RemoveAgentPool(ctx context.Context, agentPoolClient services.AgentPoolsClientInterface, ...) error
- func RemoveCluster(ctx context.Context, clusterClient services.ManagedClustersClientInterface, ...) error
- func UpdateCluster(ctx context.Context, cred *Credentials, ...) error
- func UpdateClusterTags(ctx context.Context, clusterClient services.ManagedClustersClientInterface, ...) (containerservice.ManagedClustersUpdateTagsFuture, error)
- type Credentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCluster ¶ added in v1.0.6
func CreateCluster(ctx context.Context, cred *Credentials, clusterClient services.ManagedClustersClientInterface, workplaceClient services.WorkplacesClientInterface, spec *aksv1.AKSClusterConfigSpec, phase string) error
CreateCluster creates a new managed Kubernetes cluster. In this case, there will be no existing upstream cluster. We are provisioning a brand new one.
func CreateOrUpdateAgentPool ¶
func CreateOrUpdateAgentPool(ctx context.Context, agentPoolClient services.AgentPoolsClientInterface, spec *aksv1.AKSClusterConfigSpec, np *aksv1.AKSNodePool) error
CreateOrUpdateAgentPool creates a new pool(s) in AKS. If one already exists it updates the upstream node pool with any provided updates.
func CreateResourceGroup ¶
func CreateResourceGroup(ctx context.Context, groupsClient services.ResourceGroupsClientInterface, spec *aksv1.AKSClusterConfigSpec) error
func ExistsCluster ¶
func ExistsCluster(ctx context.Context, clusterClient services.ManagedClustersClientInterface, spec *aksv1.AKSClusterConfigSpec) (bool, error)
ExistsCluster Check if AKS managed Kubernetes cluster exist
func ExistsResourceGroup ¶
func GetCachedTenantID ¶
func GetClusterAccessProfile ¶ added in v1.1.0
func GetClusterAccessProfile(ctx context.Context, clusterClient services.ManagedClustersClientInterface, resourceGroupName string, resourceName string, roleName string) (containerservice.ManagedClusterAccessProfile, error)
func GetEnvironment ¶ added in v1.1.1
func GetEnvironment(env string) azure.Environment
func NewClientAuthorizer ¶
func NewClientAuthorizer(cred *Credentials) (autorest.Authorizer, error)
func NewClusterClient ¶
func NewClusterClient(cred *Credentials) (*containerservice.ManagedClustersClient, error)
func RemoveAgentPool ¶
func RemoveAgentPool(ctx context.Context, agentPoolClient services.AgentPoolsClientInterface, spec *aksv1.AKSClusterConfigSpec, np *aksv1.AKSNodePool) error
RemoveAgentPool Delete AKS Agent Pool
func RemoveCluster ¶
func RemoveCluster(ctx context.Context, clusterClient services.ManagedClustersClientInterface, spec *aksv1.AKSClusterConfigSpec) error
RemoveCluster Delete AKS managed Kubernetes cluster
func UpdateCluster ¶ added in v1.0.6
func UpdateCluster(ctx context.Context, cred *Credentials, clusterClient services.ManagedClustersClientInterface, workplaceClient services.WorkplacesClientInterface, spec *aksv1.AKSClusterConfigSpec, phase string) error
UpdateCluster updates an existing managed Kubernetes cluster. Before updating, it pulls any existing configuration and then only updates managed fields.
func UpdateClusterTags ¶ added in v1.1.0
func UpdateClusterTags(ctx context.Context, clusterClient services.ManagedClustersClientInterface, resourceGroupName string, resourceName string, parameters containerservice.TagsObject) (containerservice.ManagedClustersUpdateTagsFuture, error)
Types ¶
type Credentials ¶
type Credentials struct { AuthBaseURL *string BaseURL *string SubscriptionID string TenantID string ClientID string ClientSecret string }
func GetSecrets ¶
func GetSecrets(_ wranglerv1.SecretCache, secretClient wranglerv1.SecretClient, spec *aksv1.AKSClusterConfigSpec) (*Credentials, error)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
mock_services
Package mock_services is a generated GoMock package.
|
Package mock_services is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.