From a43579309b24678ae2c5623c0ed0d6a65376f81a Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Tue, 8 May 2018 04:41:14 +0200 Subject: [PATCH] Add bastion host configuration to rke --- apis/management.cattle.io/v3/rke_types.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/apis/management.cattle.io/v3/rke_types.go b/apis/management.cattle.io/v3/rke_types.go index f19bccca..a583578e 100644 --- a/apis/management.cattle.io/v3/rke_types.go +++ b/apis/management.cattle.io/v3/rke_types.go @@ -37,6 +37,23 @@ type RancherKubernetesEngineConfig struct { PrefixPath string `yaml:"prefix_path" json:"prefixPath,omitempty"` // Number of status check retries for addon deployment jobs AddonJobRetries int `yaml:"addon_job_retries" json:"addonJobRetries,omitempty" norman:"default=5"` + // Bastion/Jump Host configuration + BastionHost BastionHost `yaml:"bastion_host" json:"bastionHost,omitempty"` +} + +type BastionHost struct { + // Address of Bastion Host + Address string `yaml:"address" json:"address,omitempty"` + // SSH Port of Bastion Host + Port string `yaml:"port" json:"port,omitempty"` + // ssh User to Bastion Host + User string `yaml:"user" json:"user,omitempty"` + // SSH Agent Auth enable + SSHAgentAuth bool `yaml:"ssh_agent_auth,omitempty" json:"sshAgentAuth,omitempty"` + // SSH Private Key + SSHKey string `yaml:"ssh_key" json:"sshKey,omitempty"` + // SSH Private Key Path + SSHKeyPath string `yaml:"ssh_key_path" json:"sshKeyPath,omitempty"` } type PrivateRegistry struct {