Skip to content
This repository was archived by the owner on Oct 3, 2019. It is now read-only.

Handle docker image with missing labels #5

Open
groovytron opened this issue Jun 8, 2017 · 1 comment
Open

Handle docker image with missing labels #5

groovytron opened this issue Jun 8, 2017 · 1 comment

Comments

@groovytron
Copy link
Owner

org.label-schema.memory-hint could not be present (example).

How do we handle such cases?

  • Answer with a 400 HTTP status code wit the error message This container image doesn't contain all the needed metadatas.
  • Something else?
@groovytron
Copy link
Owner Author

label-schema had defined a key for the CPU in a draft but it comes across as being removed. The goal now is to check the presence of the key org.label.schema.cpu-hint. If one or both of those keys were missing, put default values (0.1 for cpus and 32 for memory).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant