authenticationtoken

package
v0.4.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Overview

Package authenticationtoken contains shared utility methods for the management of the authentication token.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthToken

func GetAuthToken(ctx context.Context, clusterID string, k8sClient client.Client) (string, error)

GetAuthToken loads the auth token for a foreignCluster with a given clusterID.

func GetAuthTokenSecretEventHandler

func GetAuthTokenSecretEventHandler(c client.Client) handler.EventHandler

GetAuthTokenSecretEventHandler returns an event handler that reacts on changes over authentication token secrets and triggers the reconciliation of the related ForeignCluster resource (if any exists).

func GetAuthTokenSecretPredicate

func GetAuthTokenSecretPredicate() predicate.Predicate

GetAuthTokenSecretPredicate returns the predicate to select the secrets containing authentication tokens for the remote clusters.

func StoreInSecret

func StoreInSecret(ctx context.Context, clientset kubernetes.Interface,
	clusterID, authToken, liqoNamespace string) error

StoreInSecret stores an authentication token for a given remote cluster in a secret, or updates it if it already exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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