From dc84ae34388848d9aebde6050a3ae69ee17e0065 Mon Sep 17 00:00:00 2001 From: bjrara Date: Thu, 29 Oct 2020 16:46:50 +0800 Subject: [PATCH] Fix defaultkubeconfig in config.yaml to resolve variable exposure in remediation when conf is missing (#758) Co-authored-by: mengyzhou --- cfg/config.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cfg/config.yaml b/cfg/config.yaml index b31cab1..52360fb 100644 --- a/cfg/config.yaml +++ b/cfg/config.yaml @@ -48,8 +48,7 @@ master: defaultconf: /etc/kubernetes/manifests/kube-scheduler.yaml kubeconfig: - /etc/kubernetes/scheduler.conf - defaultkubeconfig: - - /etc/kubernetes/scheduler.conf + defaultkubeconfig: /etc/kubernetes/scheduler.conf controllermanager: bins: @@ -67,8 +66,7 @@ master: defaultconf: /etc/kubernetes/manifests/kube-controller-manager.yaml kubeconfig: - /etc/kubernetes/controller-manager.conf - defaultkubeconfig: - - /etc/kubernetes/controller-manager.conf + defaultkubeconfig: /etc/kubernetes/controller-manager.conf etcd: optional: true