const dateFormat …
const DefaultCleanerSyncInterval …
type LegacySATokenCleanerOptions …
type LegacySATokenCleaner …
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) { … }
func (tc *LegacySATokenCleaner) latestPossibleTrackedSinceTime(ctx context.Context) (time.Time, error) { … }
func hasSecretReference(serviceAccount *v1.ServiceAccount, secretName string) bool { … }