type fakeManager … // NewFakeManager creates empty/fake secret manager func NewFakeManager() Manager { … } // NewFakeManagerWithSecrets creates a fake secret manager with the provided secrets func NewFakeManagerWithSecrets(secrets []*v1.Secret) Manager { … } // GetSecret function returns the searched secret if it was provided during the manager initialization, otherwise, it returns an error. // If the manager was initialized without any secrets, it returns a nil secret." func (s *fakeManager) GetSecret(namespace, name string) (*v1.Secret, error) { … } // RegisterPod implements the RegisterPod method for testing purposes. func (s *fakeManager) RegisterPod(pod *v1.Pod) { … } // UnregisterPod implements the UnregisterPod method for testing purposes. func (s *fakeManager) UnregisterPod(pod *v1.Pod) { … }