Config is deprecated, use PodManifestPath

This commit is contained in:
Michael Taufen 2017-01-30 10:56:08 -08:00
parent b5f6ba3488
commit bc615ae923
4 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ type KubeletConfigSpec struct {
// Configuration flags - a subset of https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/componentconfig/types.go
// config is the path to the config file or directory of files
Config string `json:"config,omitempty" flag:"config"`
PodManifestPath string `json:"podManifestPath,omitempty" flag:"pod-manifest-path"`
//// syncFrequency is the max period between synchronizing running
//// containers and config
//SyncFrequency unversioned.Duration `json:"syncFrequency"`

View File

@ -26,7 +26,7 @@ type KubeletConfigSpec struct {
// Configuration flags - a subset of https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/componentconfig/types.go
// config is the path to the config file or directory of files
Config string `json:"config,omitempty" flag:"config"`
PodManifestPath string `json:"podManifestPath,omitempty" flag:"pod-manifest-path"`
//// syncFrequency is the max period between synchronizing running
//// containers and config
//SyncFrequency unversioned.Duration `json:"syncFrequency"`

View File

@ -1159,7 +1159,7 @@ func Convert_kops_KubeSchedulerConfig_To_v1alpha1_KubeSchedulerConfig(in *kops.K
func autoConvert_v1alpha1_KubeletConfigSpec_To_kops_KubeletConfigSpec(in *KubeletConfigSpec, out *kops.KubeletConfigSpec, s conversion.Scope) error {
out.APIServers = in.APIServers
out.LogLevel = in.LogLevel
out.Config = in.Config
out.PodManifestPath = in.PodManifestPath
out.HostnameOverride = in.HostnameOverride
out.AllowPrivileged = in.AllowPrivileged
out.EnableDebuggingHandlers = in.EnableDebuggingHandlers
@ -1195,7 +1195,7 @@ func Convert_v1alpha1_KubeletConfigSpec_To_kops_KubeletConfigSpec(in *KubeletCon
func autoConvert_kops_KubeletConfigSpec_To_v1alpha1_KubeletConfigSpec(in *kops.KubeletConfigSpec, out *KubeletConfigSpec, s conversion.Scope) error {
out.APIServers = in.APIServers
out.LogLevel = in.LogLevel
out.Config = in.Config
out.PodManifestPath = in.PodManifestPath
out.HostnameOverride = in.HostnameOverride
out.AllowPrivileged = in.AllowPrivileged
out.EnableDebuggingHandlers = in.EnableDebuggingHandlers

View File

@ -1,6 +1,6 @@
Kubelet:
EnableDebuggingHandlers: true
Config: /etc/kubernetes/manifests
PodManifestPath: /etc/kubernetes/manifests
AllowPrivileged: true
LogLevel: 2
ClusterDNS: {{ WellKnownServiceIP 10 }}