-
Notifications
You must be signed in to change notification settings - Fork 37
Conversation
|
||
[[override]] | ||
name = "github.com/moby/moby" | ||
revision = "4a804016ab8b9fd55a45cff9687a1de12dee5eb7" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removes the following warning when running dep
:
Warning: the following project(s) have [[constraint]] stanzas in Gopkg.toml:
✗ github.com/moby/moby
However, these projects are not direct dependencies of the current project:
they are not imported in any .go files, nor are they in the 'required' list in
Gopkg.toml. Dep only applies [[constraint]] rules to direct dependencies, so
these rules will have no effect.
Either import/require packages from these projects so that they become direct
dependencies, or convert each [[constraint]] to an [[override]] to enforce rules
on these projects, if they happen to be transitive dependencies,
Warning: Gopkg.lock is out of sync with Gopkg.toml or the project's imports.
268b6da
to
09b993a
Compare
func buildLabelsAndAnnotations(dockerLabels map[string]string) (labels map[string]string, annotations map[string]string) { | ||
for k, v := range dockerLabels { | ||
if strings.HasPrefix(k, annotationLabelPrefix) { | ||
if annotations == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only initialize map if we have at least one annotation, so nil is returned otherwise
@ewilde I think that The prefix of "annotation: " appears to work, but I had expected one single "annotation" label into which we would serialise all the annotations. Something like: _, labels["com.openfaas.annotations"] = json.Marshal(&userAnnotations) Since this is just an internal representation we should be able to change it after the merge? |
After merging #26 via @LucasRoesler there is a small conflict on Gopkg.lock. (should be quick to resolve) |
@alexellis agree better label prefix would be
|
Store stack.yml annotation meta data in deploy, update and read handlers Relates to openfaas/faas#682 Signed-off-by: Edward Wilde <ewilde@gmail.com>
@@ -26,6 +26,8 @@ import ( | |||
"github.com/openfaas/faas/gateway/requests" | |||
) | |||
|
|||
const annotationLabelPrefix = "com.openfaas.annotations." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using recommended key format as suggested
Tasks
Store stack.yml annotation meta data in deploy, update and read
handlers
Relates to openfaas/faas#682
Signed-off-by: Edward Wilde ewilde@gmail.com
Motivation and Context
How Has This Been Tested?
Using the
deploy.sh
script fromfaas
and changingfaas-swarm
tolatest-dev
in the docker-composeTest stack.yml
http://localhost:8080/system/functions
Test stack.yml
http://localhost:8080/system/functions
Test stack.yml
http://localhost:8080/system/functions
Types of changes
Checklist:
git commit -s