1
0
mirror of https://github.com/rancher/types.git synced 2025-07-31 04:49:37 +00:00

Merge pull request #24 from galal-hussein/add_ssh_key_path

Add ssh private key path to rke config
This commit is contained in:
Darren Shepherd 2017-11-21 14:41:07 -08:00 committed by GitHub
commit 421faeabc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -116,6 +116,8 @@ type RancherKubernetesEngineConfig struct {
Authentication AuthConfig `yaml:"auth" json:"auth,omitempty"`
// YAML manifest for user provided addons to be deployed on the cluster
Addons string `yaml:"addons" json:"addons,omitempty"`
// SSH Private Key Path
SSHKeyPath string `yaml:"ssh_key_path" json:"sshKeyPath,omitempty"`
}
type RKEConfigHost struct {

View File

@ -6,6 +6,7 @@ const (
RancherKubernetesEngineConfigFieldAuthentication = "authentication"
RancherKubernetesEngineConfigFieldHosts = "hosts"
RancherKubernetesEngineConfigFieldNetwork = "network"
RancherKubernetesEngineConfigFieldSSHKeyPath = "sshKeyPath"
RancherKubernetesEngineConfigFieldServices = "services"
)
@ -14,5 +15,6 @@ type RancherKubernetesEngineConfig struct {
Authentication AuthConfig `json:"authentication,omitempty"`
Hosts []RKEConfigHost `json:"hosts,omitempty"`
Network NetworkConfig `json:"network,omitempty"`
SSHKeyPath string `json:"sshKeyPath,omitempty"`
Services RKEConfigServices `json:"services,omitempty"`
}