Commit 1c0be2d6 authored by Satnam Singh's avatar Satnam Singh

Merge pull request #5367 from timothysc/kublet-etcd-cleanup

Minor cleanup for etcd cleaning from kubelet
parents 871c5ddd 308bb84c
...@@ -850,7 +850,7 @@ func (kl *Kubelet) makeEnvironmentVariables(ns string, container *api.Container) ...@@ -850,7 +850,7 @@ func (kl *Kubelet) makeEnvironmentVariables(ns string, container *api.Container)
} }
for _, value := range container.Env { for _, value := range container.Env {
// The code is in transition from using etcd+BoundPods to apiserver+Pods. // Accesses apiserver+Pods.
// So, the master may set service env vars, or kubelet may. In case both are doing // So, the master may set service env vars, or kubelet may. In case both are doing
// it, we delete the key from the kubelet-generated ones so we don't have duplicate // it, we delete the key from the kubelet-generated ones so we don't have duplicate
// env vars. // env vars.
......
...@@ -40,8 +40,6 @@ const ( ...@@ -40,8 +40,6 @@ const (
// These constants identify the sources of pods // These constants identify the sources of pods
// Updates from a file // Updates from a file
FileSource = "file" FileSource = "file"
// Updates from etcd
EtcdSource = "etcd" // Not supported by current kubelets.
// Updates from querying a web page // Updates from querying a web page
HTTPSource = "http" HTTPSource = "http"
// Updates received to the kubelet server // Updates received to the kubelet server
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment