token

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PodKind string = "Pod"
)

Variables

View Source
var ErrNotFound = errors.New("translate: not found")
View Source
var PodServiceAccountTokenSecretName string

Functions

func GetSecretIfExists

func GetSecretIfExists(ctx *synccontext.SyncContext, pClient client.Client, vPodName, vNamespace string) (*corev1.Secret, error)

func IgnoreAcceptableErrors

func IgnoreAcceptableErrors(err error) error

func SATokenSecret

func SATokenSecret(ctx *synccontext.SyncContext, pClient client.Client, vPod *corev1.Pod, tokens map[string]string) error

func SecretNameFromPodName

func SecretNameFromPodName(ctx *synccontext.SyncContext, podName, namespace string) types.NamespacedName

func SetPodAsOwner

func SetPodAsOwner(ctx context.Context, pPod *corev1.Pod, pClient client.Client, secret *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
JackTT - Gopher 🇻🇳