in pkg/containercredentials/config.go [100:116]
func (f *FileConfig) Get(namespace string, serviceAccount string) *PatchConfig {
key := Identity{
Namespace: namespace,
ServiceAccount: serviceAccount,
}
if f.getCacheItem(key) {
return &PatchConfig{
Audience: f.audience,
MountPath: f.mountPath,
VolumeName: f.volumeName,
TokenPath: f.tokenPath,
FullUri: f.fullUri,
}
}
return nil
}