1
0
mirror of https://github.com/rancher/types.git synced 2025-08-29 09:02:45 +00:00

Generated changes

This commit is contained in:
rajashree 2019-03-03 12:23:31 -08:00 committed by Alena Prokharchyk
parent 049122e019
commit be4f618a3b
2 changed files with 7 additions and 24 deletions

View File

@ -4518,21 +4518,6 @@ func (in *MultiClusterAppSpec) DeepCopyInto(out *MultiClusterAppSpec) {
copy(*out, *in)
}
in.UpgradeStrategy.DeepCopyInto(&out.UpgradeStrategy)
if in.TargetToRole != nil {
in, out := &in.TargetToRole, &out.TargetToRole
*out = make(map[string][]string, len(*in))
for key, val := range *in {
var outVal []string
if val == nil {
(*out)[key] = nil
} else {
in, out := &val, &outVal
*out = make([]string, len(*in))
copy(*out, *in)
}
(*out)[key] = outVal
}
}
return
}

View File

@ -6,19 +6,17 @@ const (
MultiClusterAppSpecFieldMembers = "members"
MultiClusterAppSpecFieldRevisionHistoryLimit = "revisionHistoryLimit"
MultiClusterAppSpecFieldRoles = "roles"
MultiClusterAppSpecFieldTargetToRole = "targetToRole"
MultiClusterAppSpecFieldTargets = "targets"
MultiClusterAppSpecFieldTemplateVersionID = "templateVersionId"
MultiClusterAppSpecFieldUpgradeStrategy = "upgradeStrategy"
)
type MultiClusterAppSpec struct {
Answers []Answer `json:"answers,omitempty" yaml:"answers,omitempty"`
Members []Member `json:"members,omitempty" yaml:"members,omitempty"`
RevisionHistoryLimit int64 `json:"revisionHistoryLimit,omitempty" yaml:"revisionHistoryLimit,omitempty"`
Roles []string `json:"roles,omitempty" yaml:"roles,omitempty"`
TargetToRole map[string][]string `json:"targetToRole,omitempty" yaml:"targetToRole,omitempty"`
Targets []Target `json:"targets,omitempty" yaml:"targets,omitempty"`
TemplateVersionID string `json:"templateVersionId,omitempty" yaml:"templateVersionId,omitempty"`
UpgradeStrategy *UpgradeStrategy `json:"upgradeStrategy,omitempty" yaml:"upgradeStrategy,omitempty"`
Answers []Answer `json:"answers,omitempty" yaml:"answers,omitempty"`
Members []Member `json:"members,omitempty" yaml:"members,omitempty"`
RevisionHistoryLimit int64 `json:"revisionHistoryLimit,omitempty" yaml:"revisionHistoryLimit,omitempty"`
Roles []string `json:"roles,omitempty" yaml:"roles,omitempty"`
Targets []Target `json:"targets,omitempty" yaml:"targets,omitempty"`
TemplateVersionID string `json:"templateVersionId,omitempty" yaml:"templateVersionId,omitempty"`
UpgradeStrategy *UpgradeStrategy `json:"upgradeStrategy,omitempty" yaml:"upgradeStrategy,omitempty"`
}