1
0
mirror of https://github.com/rancher/types.git synced 2025-09-15 22:39:05 +00:00

Change process list to a map

This commit is contained in:
moelsayed
2018-02-24 14:18:35 +02:00
committed by Darren Shepherd
parent 9127a90d2c
commit 3ca3cb6bd6

View File

@@ -251,13 +251,15 @@ type RKEPlan struct {
type RKEConfigNodePlan struct {
// Node address
Address string `json:"address,omitempty"`
// List of processes that should run on the node
Processes []Process `json:"processes,omitempty"`
// map of named processes that should run on the node
Processes map[string]Process `json:"processes,omitempty"`
// List of portchecks that should be open on the node
PortChecks []PortCheck `json:"portChecks,omitempty"`
}
type Process struct {
// Process name, this should be the container name
Name string `json:"name,omitempty"`
// Process Entrypoint command
Command []string `json:"command,omitempty"`
// Process args