controller

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenReconciler

type TokenReconciler struct {
	cache.Cache
	HubClient            client.Client
	HubNativeClient      kubernetes.Interface
	SpokeNativeClient    kubernetes.Interface
	SpokeDiscoveryClient discovery.DiscoveryInterface
	SpokeClientConfig    *rest.Config
	SpokeNamespace       string
	ClusterName          string
	SpokeCache           cache.Cache
	// CreateTokenByDefaultSecret indicates whether to create the service account token by getting the default secret,
	// if the api server is < 1.22, this should be true, otherwise, it should be false and the token will be requested
	// by token request api
	CreateTokenByDefaultSecret bool
}

func (*TokenReconciler) Reconcile

func (r *TokenReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

func (*TokenReconciler) SetupWithManager

func (r *TokenReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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