serviceaccount

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentServiceAccount

func CurrentServiceAccount(ctx context.Context, cli client.Client, ns, name string) (*corev1.ServiceAccount, error)

CurrentServiceAccount returns the current ServiceAccount for the provided ns/name.

func DesiredServiceAccount

func DesiredServiceAccount(name string, contour *operatorv1alpha1.Contour) *corev1.ServiceAccount

DesiredServiceAccount generates the desired ServiceAccount resource for the given contour.

func EnsureServiceAccount

func EnsureServiceAccount(ctx context.Context, cli client.Client, name string, contour *operatorv1alpha1.Contour) (*corev1.ServiceAccount, error)

EnsureServiceAccount ensures a ServiceAccount resource exists with the provided name and contour namespace/name for the owning contour labels.

Types

This section is empty.

Jump to

Keyboard shortcuts

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