in pkg/containercredentials/fake.go [27:47]
func (f *FakeConfig) Get(namespace string, serviceAccount string) *PatchConfig {
if f.Identities == nil {
return nil
}
key := Identity{
Namespace: namespace,
ServiceAccount: serviceAccount,
}
if _, ok := f.Identities[key]; ok {
return &PatchConfig{
Audience: f.Audience,
MountPath: f.MountPath,
VolumeName: f.VolumeName,
TokenPath: f.TokenPath,
FullUri: f.FullUri,
}
}
return nil
}