Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Commit

Permalink
Use correct functions for configmap case
Browse files Browse the repository at this point in the history
  • Loading branch information
ash2k committed Jan 6, 2019
1 parent 9a54577 commit 974f4e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/bundlec/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 974f4e6

Please sign in to comment.