Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Feat run labels #715

Merged
merged 3 commits into from
Oct 31, 2019
Merged

Feat run labels #715

merged 3 commits into from
Oct 31, 2019

Conversation

rumpl
Copy link
Member

@rumpl rumpl commented Oct 25, 2019

- What I did
Added --label flag when running an application

This will add the given labels to all the containers inside the
application (except for the invocation image). The labels are passed
over by file, this is to be able to easely add new parameters in the
future and limit the explosion of parameters we have in our bundle

- Description for the changelog
Add labels to service containers with the --label flag on run.

- A picture of a cute animal (not mandatory but encouraged)
image

@codecov
Copy link

codecov bot commented Oct 28, 2019

Codecov Report

Merging #715 into master will decrease coverage by 0.09%.
The diff coverage is 94.44%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #715     +/-   ##
========================================
- Coverage   71.49%   71.4%   -0.1%     
========================================
  Files          59      59             
  Lines        3280    3175    -105     
========================================
- Hits         2345    2267     -78     
+ Misses        605     602      -3     
+ Partials      330     306     -24
Impacted Files Coverage Δ
internal/names.go 100% <ø> (ø) ⬆️
internal/commands/image/list.go 83.33% <100%> (ø) ⬆️
internal/commands/run.go 61.11% <100%> (-8.97%) ⬇️
internal/packager/cnab.go 97.91% <100%> (+0.18%) ⬆️
internal/commands/parameters.go 86.51% <84.61%> (-0.33%) ⬇️
internal/commands/remove.go 52% <0%> (-8.57%) ⬇️
internal/commands/update.go 58.18% <0%> (-7.21%) ⬇️
types/parameters/parameters.go 92.06% <0%> (-4.77%) ⬇️
internal/commands/push.go 45.22% <0%> (-2.57%) ⬇️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cbf819c...903f3c0. Read the comment docs.

Copy link
Member

@eunomie eunomie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

internal/packager/cnab.go Outdated Show resolved Hide resolved
Copy link
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This will add the given labels to all the containers inside the
application (except for the invocation image). The labels are passed
over by file, this is to be able to easely add new parameters in the
future and limit the explosion of parameters we have in our bundle

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
Copy link
Contributor

@jcsirot jcsirot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jcsirot jcsirot merged commit 3e2545d into docker:master Oct 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants