projectatomic / ContainerApplicationGenericLabels

Default Containerized Application Labels used to document the application and/or image
68 stars 29 forks source link

Use dash case instead of underscore in label names #47

Closed mfojtik closed 8 years ago

mfojtik commented 8 years ago

Are there any reasons why the labels are authoritative_source and not authoritative-source ? Kubernetes and OpenShift labels seems to both follow the foo-bar case. Also the Docker upstream promote the "dash" case: https://docs.docker.com/userguide/labels-custom-metadata/

mfojtik commented 8 years ago

@aweiteka ?

soltysh commented 8 years ago

:+1: we've applied exactly the same patterns in s2i as well. Atomic should not be different in this, imho.

aweiteka commented 8 years ago

It sounds like we've diverged in our convention, highlighting the need for these standards so we can programatically use these things in automation. This repo has several underscore "_" keys specified and we have followed that in our base images. I'm not sure how to decide between the two but the upstream docker convention does tip in favor of dash "-". I doubt there's much automation relying on these keys yet.

Any other stakeholders want to weigh in?

ncdc commented 8 years ago

+1000 to dash

TomasTomecek commented 8 years ago

We don't care much (dash looks nicer though). If you make a change, do it sooner rather than later please. We would prefer not change labels every week.

rhatdan commented 8 years ago

@riekrh @philips PTAL

jmtd commented 8 years ago

Late to reply, but the reason I went with _ for the vcs labels (if memory serves) is it tab-completes, which is a nice-to-have.