Documentation ¶
Index ¶
- Variables
- func BuildClient(kfg []byte) (*kubernetes.Clientset, error)
- func CreateServiceAccount(ctx context.Context, cli kubernetes.Clientset, name string, namespace string) (*corev1.ServiceAccount, error)
- func CreateServiceAccountSecret(ctx context.Context, cli kubernetes.Clientset, name string, namespace string, ...) (*corev1.Secret, error)
- func DeleteServiceAccountSecret(ctx context.Context, cli kubernetes.Clientset, name string, namespace string) error
- func GetConfigDefaultNamespace() (*string, error)
- func GetCurrentContextClient() (*kubernetes.Clientset, error)
- func GetLastServiceAccountSecrets(ctx context.Context, cli kubernetes.Clientset, name string, namespace string) (*corev1.Secret, error)
- func GetRESTConfig() (*rest.Config, error)
- func GetServiceAccountSecrets(ctx context.Context, cli kubernetes.Clientset, name string, namespace string) ([]corev1.Secret, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSecretNotFound = fmt.Errorf("service account's secret not found")
Functions ¶
func BuildClient ¶
func BuildClient(kfg []byte) (*kubernetes.Clientset, error)
func CreateServiceAccount ¶
func CreateServiceAccount(ctx context.Context, cli kubernetes.Clientset, name string, namespace string) (*corev1.ServiceAccount, error)
func GetCurrentContextClient ¶
func GetCurrentContextClient() (*kubernetes.Clientset, error)
func GetRESTConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.