Closed willglynn closed 8 years ago
@willglynn Thanks for the contributions! This looks good. Out of curiosity, which environments don't natively support Docker labels? Kubernetes or something else?
As of this writing, I believe neither Kubernetes nor Marathon provide for the creation of Docker labels, though both have their own internal concepts of labels.
Good to know.
Some non-ECS environments make it difficult to specify Docker labels but easy to specify environment variables. This commit makes
iam-docker
look for theIAM_ROLE
environment variable if no label is available.Incidentally, this change also allows
iam-docker
to act as a drop-in replacement forlyft/metadataproxy
.