Add labels for containers
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
76d69b4ed8
commit
d6bd304c92
8 changed files with 134 additions and 109 deletions
|
@ -12,7 +12,7 @@ type StartEvent struct {
|
|||
|
||||
func (h *StartEvent) Handle(e *Event) error {
|
||||
start := time.Now()
|
||||
container, err := runtime.New(h.s.stateDir, e.ID, e.BundlePath)
|
||||
container, err := runtime.New(h.s.stateDir, e.ID, e.BundlePath, e.Labels)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -64,6 +64,7 @@ type Event struct {
|
|||
ResizeTty bool
|
||||
Width int
|
||||
Height int
|
||||
Labels []string
|
||||
}
|
||||
|
||||
type Handler interface {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue