Documentation ¶
Overview ¶
Package authenticationtoken contains shared utility methods for the management of the authentication token.
Index ¶
- func GetAuthToken(ctx context.Context, clusterID string, k8sClient client.Client) (string, error)
- func GetAuthTokenSecretEventHandler(c client.Client) handler.EventHandler
- func GetAuthTokenSecretPredicate() predicate.Predicate
- func StoreInSecret(ctx context.Context, clientset kubernetes.Interface, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthToken ¶
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 ¶
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.