1
0
mirror of https://github.com/rancher/types.git synced 2025-09-18 16:10:58 +00:00

Merge pull request #417 from moelsayed/process_labels

Process labels
This commit is contained in:
Alena Prokharchyk
2018-05-08 10:09:13 -07:00
committed by GitHub
2 changed files with 9 additions and 0 deletions

View File

@@ -291,6 +291,8 @@ type Process struct {
Privileged bool `json:"privileged,omitempty"`
// Process healthcheck
HealthCheck HealthCheck `json:"healthCheck,omitempty"`
// Process docker container Labels
Labels map[string]string `json:"labels,omitempty"`
}
type HealthCheck struct {

View File

@@ -5185,6 +5185,13 @@ func (in *Process) DeepCopyInto(out *Process) {
copy(*out, *in)
}
out.HealthCheck = in.HealthCheck
if in.Labels != nil {
in, out := &in.Labels, &out.Labels
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
return
}