1
0
mirror of https://github.com/rancher/types.git synced 2025-09-19 00:46:53 +00:00

go generate

This commit is contained in:
orangedeng
2019-07-27 10:55:41 +08:00
committed by Alena Prokharchyk
parent 365da17d01
commit f3b0d3f5ed
3 changed files with 39 additions and 3 deletions

View File

@@ -33,6 +33,6 @@ type RKEConfigNode struct {
SSHCertPath string `json:"sshCertPath,omitempty" yaml:"sshCertPath,omitempty"`
SSHKey string `json:"sshKey,omitempty" yaml:"sshKey,omitempty"`
SSHKeyPath string `json:"sshKeyPath,omitempty" yaml:"sshKeyPath,omitempty"`
Taints []Taint `json:"taints,omitempty" yaml:"taints,omitempty"`
Taints []RKETaint `json:"taints,omitempty" yaml:"taints,omitempty"`
User string `json:"user,omitempty" yaml:"user,omitempty"`
}

View File

@@ -0,0 +1,16 @@
package client
const (
RKETaintType = "rkeTaint"
RKETaintFieldEffect = "effect"
RKETaintFieldKey = "key"
RKETaintFieldTimeAdded = "timeAdded"
RKETaintFieldValue = "value"
)
type RKETaint struct {
Effect string `json:"effect,omitempty" yaml:"effect,omitempty"`
Key string `json:"key,omitempty" yaml:"key,omitempty"`
TimeAdded string `json:"timeAdded,omitempty" yaml:"timeAdded,omitempty"`
Value string `json:"value,omitempty" yaml:"value,omitempty"`
}