Documentation ¶
Index ¶
- Constants
- type AKSClient
- type AggregateClient
- func (c AggregateClient) DeleteManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster) error
- func (c AggregateClient) EnsureManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster, secret string) error
- func (c AggregateClient) GetKubeConfig(ctx context.Context, ac *v1alpha3.AKSCluster) ([]byte, error)
- func (c AggregateClient) GetManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster) (containerservice.ManagedCluster, error)
Constants ¶
const ( // AgentPoolProfileName is a format string for the name of the automatically // created cluster agent pool profile AgentPoolProfileName = "agentpool" // NetworkContributorRoleID lets the AKS cluster managed networks, but not // access them. NetworkContributorRoleID = "/providers/Microsoft.Authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AKSClient ¶
type AKSClient interface { GetManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster) (containerservice.ManagedCluster, error) EnsureManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster, secret string) error DeleteManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster) error GetKubeConfig(ctx context.Context, ac *v1alpha3.AKSCluster) ([]byte, error) }
An AKSClient can create, read, and delete AKS clusters and the various other resources they require.
func NewAggregateClient ¶
NewAggregateClient produces the various clients used by the AKS controller.
type AggregateClient ¶
type AggregateClient struct { ManagedClusters containerservice.ManagedClustersClient Applications graphrbac.ApplicationsClient ServicePrincipals graphrbac.ServicePrincipalsClient RoleAssignments authorization.RoleAssignmentsClient }
An AggregateClient aggregates the various clients used by the AKS controller.
func (AggregateClient) DeleteManagedCluster ¶
func (c AggregateClient) DeleteManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster) error
DeleteManagedCluster deletes the supplied AKS cluster, including its service principals and any role assignments.
func (AggregateClient) EnsureManagedCluster ¶
func (c AggregateClient) EnsureManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster, secret string) error
EnsureManagedCluster ensures the supplied AKS cluster exists, including ensuring any required service principals and role assignments exist.
func (AggregateClient) GetKubeConfig ¶
func (c AggregateClient) GetKubeConfig(ctx context.Context, ac *v1alpha3.AKSCluster) ([]byte, error)
GetKubeConfig produces a kubeconfig file that configures access to the supplied AKS cluster.
func (AggregateClient) GetManagedCluster ¶
func (c AggregateClient) GetManagedCluster(ctx context.Context, ac *v1alpha3.AKSCluster) (containerservice.ManagedCluster, error)
GetManagedCluster returns the requested Azure managed cluster.