From efe8c45673d9e2132cd78cb46e61340b5ffc4421 Mon Sep 17 00:00:00 2001 From: moelsayed Date: Sat, 18 Nov 2017 03:11:27 +0200 Subject: [PATCH] add RKE cluster addons --- apis/cluster.cattle.io/v1/types.go | 2 ++ .../cluster/v1/zz_generated_rancher_kubernetes_engine_config.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/apis/cluster.cattle.io/v1/types.go b/apis/cluster.cattle.io/v1/types.go index 340776cd..e13e8d32 100644 --- a/apis/cluster.cattle.io/v1/types.go +++ b/apis/cluster.cattle.io/v1/types.go @@ -114,6 +114,8 @@ type RancherKubernetesEngineConfig struct { Network NetworkConfig `yaml:"network" json:"network,omitempty"` // Authentication configuration used in the cluster (default: x509) 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"` } type RKEConfigHost struct { diff --git a/client/cluster/v1/zz_generated_rancher_kubernetes_engine_config.go b/client/cluster/v1/zz_generated_rancher_kubernetes_engine_config.go index cead79bc..9a76d9b5 100644 --- a/client/cluster/v1/zz_generated_rancher_kubernetes_engine_config.go +++ b/client/cluster/v1/zz_generated_rancher_kubernetes_engine_config.go @@ -2,6 +2,7 @@ package client const ( RancherKubernetesEngineConfigType = "rancherKubernetesEngineConfig" + RancherKubernetesEngineConfigFieldAddons = "addons" RancherKubernetesEngineConfigFieldAuthentication = "authentication" RancherKubernetesEngineConfigFieldHosts = "hosts" RancherKubernetesEngineConfigFieldNetwork = "network" @@ -9,6 +10,7 @@ const ( ) type RancherKubernetesEngineConfig struct { + Addons string `json:"addons,omitempty"` Authentication AuthConfig `json:"authentication,omitempty"` Hosts []RKEConfigHost `json:"hosts,omitempty"` Network NetworkConfig `json:"network,omitempty"`