1
0
mirror of https://github.com/rancher/types.git synced 2025-08-02 05:11:59 +00:00

Merge pull request #71 from StrongMonkey/add-role

Add role
This commit is contained in:
Alena Prokharchyk 2017-12-15 17:02:16 -08:00 committed by GitHub
commit 44723b98e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -91,6 +91,7 @@ type MachineSpec struct {
MachineTemplateName string `json:"machineTemplateName" norman:"type=reference[machineTemplate]"`
Description string `json:"description"`
Driver string `json:"driver"`
Role string `json:"role"`
MachineCommonParams `json:",inline"`
AmazonEC2Config AmazonEC2Config `json:"amazonEc2Config"`

View File

@ -49,6 +49,7 @@ const (
MachineFieldRemoved = "removed"
MachineFieldRequested = "requested"
MachineFieldResourcePath = "resourcePath"
MachineFieldRole = "role"
MachineFieldSSHPrivateKey = "sshPrivateKey"
MachineFieldSSHUser = "sshUser"
MachineFieldState = "state"
@ -106,6 +107,7 @@ type Machine struct {
Removed string `json:"removed,omitempty"`
Requested map[string]string `json:"requested,omitempty"`
ResourcePath string `json:"resourcePath,omitempty"`
Role string `json:"role,omitempty"`
SSHPrivateKey string `json:"sshPrivateKey,omitempty"`
SSHUser string `json:"sshUser,omitempty"`
State string `json:"state,omitempty"`

View File

@ -23,6 +23,7 @@ const (
MachineSpecFieldMachineTemplateId = "machineTemplateId"
MachineSpecFieldPodCIDR = "podCIDR"
MachineSpecFieldProviderID = "providerID"
MachineSpecFieldRole = "role"
MachineSpecFieldTaints = "taints"
MachineSpecFieldUnschedulable = "unschedulable"
)
@ -49,6 +50,7 @@ type MachineSpec struct {
MachineTemplateId string `json:"machineTemplateId,omitempty"`
PodCIDR string `json:"podCIDR,omitempty"`
ProviderID string `json:"providerID,omitempty"`
Role string `json:"role,omitempty"`
Taints []Taint `json:"taints,omitempty"`
Unschedulable *bool `json:"unschedulable,omitempty"`
}