1
0
mirror of https://github.com/rancher/types.git synced 2025-09-13 13:33:06 +00:00

go generate

This commit is contained in:
galal-hussein
2018-01-31 19:14:27 +02:00
parent d6b26cedb9
commit 2ae886fa71
4 changed files with 69 additions and 9 deletions

View File

@@ -0,0 +1,14 @@
package client
const (
IngressConfigType = "ingressConfig"
IngressConfigFieldNodeSelector = "nodeSelector"
IngressConfigFieldOptions = "options"
IngressConfigFieldType = "type"
)
type IngressConfig struct {
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
Options map[string]string `json:"options,omitempty"`
Type string `json:"type,omitempty"`
}

View File

@@ -6,6 +6,7 @@ const (
RancherKubernetesEngineConfigFieldAuthentication = "authentication"
RancherKubernetesEngineConfigFieldAuthorization = "authorization"
RancherKubernetesEngineConfigFieldIgnoreDockerVersion = "ignoreDockerVersion"
RancherKubernetesEngineConfigFieldIngress = "ingress"
RancherKubernetesEngineConfigFieldNetwork = "network"
RancherKubernetesEngineConfigFieldNodes = "nodes"
RancherKubernetesEngineConfigFieldPrivateRegistries = "privateRegistries"
@@ -20,6 +21,7 @@ type RancherKubernetesEngineConfig struct {
Authentication *AuthnConfig `json:"authentication,omitempty"`
Authorization *AuthzConfig `json:"authorization,omitempty"`
IgnoreDockerVersion *bool `json:"ignoreDockerVersion,omitempty"`
Ingress *IngressConfig `json:"ingress,omitempty"`
Network *NetworkConfig `json:"network,omitempty"`
Nodes []RKEConfigNode `json:"nodes,omitempty"`
PrivateRegistries []PrivateRegistry `json:"privateRegistries,omitempty"`

View File

@@ -6,6 +6,7 @@ const (
RKEConfigNodeFieldDockerSocket = "dockerSocket"
RKEConfigNodeFieldHostnameOverride = "hostnameOverride"
RKEConfigNodeFieldInternalAddress = "internalAddress"
RKEConfigNodeFieldLabels = "labels"
RKEConfigNodeFieldMachineId = "machineId"
RKEConfigNodeFieldRole = "role"
RKEConfigNodeFieldSSHKey = "sshKey"
@@ -14,13 +15,14 @@ const (
)
type RKEConfigNode struct {
Address string `json:"address,omitempty"`
DockerSocket string `json:"dockerSocket,omitempty"`
HostnameOverride string `json:"hostnameOverride,omitempty"`
InternalAddress string `json:"internalAddress,omitempty"`
MachineId string `json:"machineId,omitempty"`
Role []string `json:"role,omitempty"`
SSHKey string `json:"sshKey,omitempty"`
SSHKeyPath string `json:"sshKeyPath,omitempty"`
User string `json:"user,omitempty"`
Address string `json:"address,omitempty"`
DockerSocket string `json:"dockerSocket,omitempty"`
HostnameOverride string `json:"hostnameOverride,omitempty"`
InternalAddress string `json:"internalAddress,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
MachineId string `json:"machineId,omitempty"`
Role []string `json:"role,omitempty"`
SSHKey string `json:"sshKey,omitempty"`
SSHKeyPath string `json:"sshKeyPath,omitempty"`
User string `json:"user,omitempty"`
}