kubernetes/pkg/controller/serviceaccount/legacy_serviceaccount_token_cleaner.go

const dateFormat

const DefaultCleanerSyncInterval

type LegacySATokenCleanerOptions

type LegacySATokenCleaner

// NewLegacySATokenCleaner returns a new *NewLegacySATokenCleaner.
func NewLegacySATokenCleaner(saInformer coreinformers.ServiceAccountInformer, secretInformer coreinformers.SecretInformer, podInformer coreinformers.PodInformer, client clientset.Interface, cl clock.Clock, options LegacySATokenCleanerOptions) (*LegacySATokenCleaner, error) {}

func (tc *LegacySATokenCleaner) Run(ctx context.Context) {}

func (tc *LegacySATokenCleaner) evaluateSATokens(ctx context.Context) {}

func (tc *LegacySATokenCleaner) getMountedSecretNames(secretNamespace string, namespaceToUsedSecretNames map[string]sets.String) (sets.String, error) {}

func (tc *LegacySATokenCleaner) getServiceAccount(secret *v1.Secret) (*v1.ServiceAccount, error) {}

// get the latest possible TrackedSince time information from the configMap label.
func (tc *LegacySATokenCleaner) latestPossibleTrackedSinceTime(ctx context.Context) (time.Time, error) {}

func hasSecretReference(serviceAccount *v1.ServiceAccount, secretName string) bool {}