serviceaccount

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ensure

func Ensure(kubeClient kubernetes.Interface, namespace string, sa *corev1.ServiceAccount, onlyCreate bool) (*corev1.ServiceAccount, error)

nolint:wrapcheck // No need to wrap errors here.

func EnsureFromYAML

func EnsureFromYAML(kubeClient kubernetes.Interface, namespace, yaml string) (bool, error)

EnsureFromYAML creates the given service account and secret for it.

func EnsureSecretFromSA

func EnsureSecretFromSA(client kubernetes.Interface, saName, namespace string) (*corev1.Secret, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL