type fakeManager … // NewFakeManager creates empty/fake ConfigMap manager func NewFakeManager() Manager { … } func (s *fakeManager) GetConfigMap(namespace, name string) (*v1.ConfigMap, error) { … } func (s *fakeManager) RegisterPod(pod *v1.Pod) { … } func (s *fakeManager) UnregisterPod(pod *v1.Pod) { … }