authenticationtoken

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 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