Fix copy/paste error in configmap volumes, this is likely the cause of #20

This commit is contained in:
Erik St. Martin
2017-12-12 10:33:16 -05:00
parent 28cd1d082b
commit 4224cd737c

View File

@@ -472,7 +472,7 @@ func (p *ACIProvider) getVolumes(pod *v1.Pod) ([]aci.Volume, error) {
if v.ConfigMap != nil { if v.ConfigMap != nil {
paths := make(map[string]string) paths := make(map[string]string)
configMap, err := p.resourceManager.GetConfigMap(v.ConfigMap.Name, pod.Namespace) configMap, err := p.resourceManager.GetConfigMap(v.ConfigMap.Name, pod.Namespace)
if v.Secret.Optional != nil && !*v.Secret.Optional && k8serr.IsNotFound(err) { if v.ConfigMap.Optional != nil && !*v.ConfigMap.Optional && k8serr.IsNotFound(err) {
return nil, fmt.Errorf("ConfigMap %s is required by Pod %s and does not exist", v.ConfigMap.Name, pod.Name) return nil, fmt.Errorf("ConfigMap %s is required by Pod %s and does not exist", v.ConfigMap.Name, pod.Name)
} }
if configMap == nil { if configMap == nil {