serviceaccount

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

Cache implements serviceaccount.ServiceAccountTokenClusterGetter.

func NewCache

func NewCache() *Cache

NewCache returns an initialized Cache. Call Stop to release resources.

func (*Cache) Cluster

Cluster returns a ServiceAccountTokenGetter scoped to the given cluster.

func (*Cache) SetInformers

func (c *Cache) SetInformers(kcpInformers kcpinformers.SharedInformerFactory)

SetInformers sets the kcp informer factory to check if a logical cluster is on the local shard.

func (*Cache) SetKubeShardClient

func (c *Cache) SetKubeShardClient(kubeShardClient kubernetes.ClusterInterface)

SetKubeShardClient sets the client used to communicate with other shards.

func (*Cache) Stop

func (c *Cache) Stop()

Stop releases background resources used by the cache.

func (*Cache) TokenGetter

TokenGetter implements the OptionalTokenGetter for the kubeapiserver. It sets the kube informer factory to retrieve service accounts and secrets.

Jump to

Keyboard shortcuts

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