From 974f4e645991f587a4f2c1606fcf15c11b368e2d Mon Sep 17 00:00:00 2001 From: Mikhail Mazurskiy Date: Sun, 6 Jan 2019 13:21:24 +1100 Subject: [PATCH] Use correct functions for configmap case --- pkg/controller/bundlec/controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/bundlec/controller.go b/pkg/controller/bundlec/controller.go index a2cf663..7a18f5f 100644 --- a/pkg/controller/bundlec/controller.go +++ b/pkg/controller/bundlec/controller.go @@ -210,7 +210,7 @@ func configMapNamespaceNameIndexKeysForContainers(namespace string, containers [ if configMapRef == nil { continue } - indexKeys = append(indexKeys, bySecretNamespaceNameIndexKey(namespace, configMapRef.Name)) + indexKeys = append(indexKeys, byConfigMapNamespaceNameIndexKey(namespace, configMapRef.Name)) } for _, env := range container.Env { valueFrom := env.ValueFrom @@ -222,7 +222,7 @@ func configMapNamespaceNameIndexKeysForContainers(namespace string, containers [ if configMapKeyRef == nil { continue } - indexKeys = append(indexKeys, bySecretNamespaceNameIndexKey(namespace, configMapKeyRef.Name)) + indexKeys = append(indexKeys, byConfigMapNamespaceNameIndexKey(namespace, configMapKeyRef.Name)) } } return indexKeys