Add customizable container labels (#146)
This commit is contained in:
@@ -46,6 +46,9 @@ type Configuration struct {
|
||||
// server process.
|
||||
EnvVars environment.Variables `json:"environment"`
|
||||
|
||||
// Labels is a map of container labels that should be applied to the running server process.
|
||||
Labels map[string]string `json:"labels"`
|
||||
|
||||
Allocations environment.Allocations `json:"allocations"`
|
||||
Build environment.Limits `json:"build"`
|
||||
CrashDetectionEnabled bool `json:"crash_detection_enabled"`
|
||||
|
||||
@@ -205,6 +205,7 @@ func (m *Manager) InitServer(data remote.ServerConfigurationResponse) (*Server,
|
||||
Mounts: s.Mounts(),
|
||||
Allocations: s.cfg.Allocations,
|
||||
Limits: s.cfg.Build,
|
||||
Labels: s.cfg.Labels,
|
||||
}
|
||||
|
||||
envCfg := environment.NewConfiguration(settings, s.GetEnvironmentVariables())
|
||||
|
||||
Reference in New Issue
Block a user