Fix copy/paste error in configmap volumes, this is likely the cause of #20
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user