Skip to content

Commit

Permalink
chore: Improve error message when configmap is not found. Fixes #7356 (
Browse files Browse the repository at this point in the history
  • Loading branch information
terrytangyuan committed Dec 9, 2021
1 parent 22b0326 commit d3c2f5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion workflow/common/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ func GetConfigMapValue(configMapInformer cache.SharedIndexInformer, namespace, n
}
return cmValue, nil
}
return "", fmt.Errorf("ConfigMap '%s' does not exist", name)
return "", fmt.Errorf("ConfigMap '%s' does not exist. Please make sure it has the label %s: %s to be detectable by the controller",
name, LabelKeyConfigMapType, LabelValueTypeConfigMapParameter)
}

0 comments on commit d3c2f5d

Please sign in to comment.