Documentation ¶
Index ¶
- func CreateOrUpdateServiceAccount(ctx context.Context, kubeClient client.Client, ...) error
- func DeleteServiceAccount(ctx context.Context, kubeClient client.Client, namespace, name string) error
- func GetKubeClient() (client.Client, error)
- func GetKubeConfig() (*rest.Config, error)
- func GetObject(ctx context.Context, kubeClient client.Client, namespace string, name string, ...) (client.Object, error)
- func GetServiceAccount(ctx context.Context, kubeClient client.Client, namespace, name string) (*corev1.ServiceAccount, error)
- func ListAzureIdentity(ctx context.Context, kubeClient client.Client, namespace string) ([]aadpodv1.AzureIdentity, error)
- func ListAzureIdentityBinding(ctx context.Context, kubeClient client.Client, namespace string) ([]aadpodv1.AzureIdentityBinding, error)
- func ListPods(ctx context.Context, kubeClient client.Client, namespace string, ...) (map[string]corev1.Pod, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateServiceAccount ¶
func CreateOrUpdateServiceAccount(ctx context.Context, kubeClient client.Client, namespace, name, clientID, tenantID string, tokenExpiration time.Duration) error
Create ServiceAccount in the cluster If the ServiceAccount already exists, error is returned
func DeleteServiceAccount ¶
func DeleteServiceAccount(ctx context.Context, kubeClient client.Client, namespace, name string) error
Delete ServiceAccount in the cluster
func GetKubeClient ¶
GetKubeClient returns a Kubernetes clientset.
func GetKubeConfig ¶
GetKubeConfig returns the kubeconfig
func GetObject ¶ added in v0.10.0
func GetObject(ctx context.Context, kubeClient client.Client, namespace string, name string, obj client.Object) (client.Object, error)
GetObject returns an object from the Kubernetes cluster.
func GetServiceAccount ¶ added in v0.10.0
func GetServiceAccount(ctx context.Context, kubeClient client.Client, namespace, name string) (*corev1.ServiceAccount, error)
Get ServiceAccount in the cluster
func ListAzureIdentity ¶ added in v0.10.0
func ListAzureIdentity(ctx context.Context, kubeClient client.Client, namespace string) ([]aadpodv1.AzureIdentity, error)
ListAzureIdentity returns a list of AzureIdentity
func ListAzureIdentityBinding ¶ added in v0.10.0
func ListAzureIdentityBinding(ctx context.Context, kubeClient client.Client, namespace string) ([]aadpodv1.AzureIdentityBinding, error)
ListAzureIdentityBinding returns a list of AzureIdentityBinding
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.