1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-05 17:00:20 +00:00

generated code

This commit is contained in:
moelsayed
2018-02-24 15:10:07 +02:00
committed by Darren Shepherd
parent 319c383f13
commit 9ac09485d6
4 changed files with 11 additions and 8 deletions

View File

@@ -10,8 +10,9 @@ import (
)
var (
NamespaceBackedResource condition.Cond = "BackingNamespaceCreated"
CreatorMadeOwner condition.Cond = "CreatorMadeOwner"
NamespaceBackedResource condition.Cond = "BackingNamespaceCreated"
CreatorMadeOwner condition.Cond = "CreatorMadeOwner"
DefaultNetworkPolicyCreated condition.Cond = "DefaultNetworkPolicyCreated"
)
type Project struct {

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

View File

@@ -4838,9 +4838,9 @@ func (in *RKEConfigNodePlan) DeepCopyInto(out *RKEConfigNodePlan) {
*out = *in
if in.Processes != nil {
in, out := &in.Processes, &out.Processes
*out = make([]Process, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
*out = make(map[string]Process, len(*in))
for key, val := range *in {
(*out)[key] = *val.DeepCopy()
}
}
if in.PortChecks != nil {