From 1a6ce56ba7bd912804377dba21715fcde2389c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Kulczy=C5=84ski?= Date: Wed, 24 Jan 2018 18:57:09 +0100 Subject: [PATCH] Fix small errors --- vertical-pod-autoscaler/admission-controller/main.go | 4 ++-- vertical-pod-autoscaler/deploy/vpa-rbac.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/vertical-pod-autoscaler/admission-controller/main.go b/vertical-pod-autoscaler/admission-controller/main.go index 7526619759..40cb8077b8 100644 --- a/vertical-pod-autoscaler/admission-controller/main.go +++ b/vertical-pod-autoscaler/admission-controller/main.go @@ -33,7 +33,7 @@ import ( ) var ( - certsDir = *flag.String("certs-dir", "/etc/tls-certs", `Where the TLS cert files are stored.`) + certsDir = flag.String("certs-dir", "/etc/tls-certs", `Where the TLS cert files are stored.`) ) func newReadyVPALister(stopChannel <-chan struct{}) vpa_lister.VerticalPodAutoscalerLister { @@ -53,7 +53,7 @@ func newReadyVPALister(stopChannel <-chan struct{}) vpa_lister.VerticalPodAutosc func main() { flag.Parse() - certs := initCerts(certsDir) + certs := initCerts(*certsDir) stopChannel := make(chan struct{}) vpaLister := newReadyVPALister(stopChannel) as := &admissionServer{logic.NewRecommendationProvider(vpaLister)} diff --git a/vertical-pod-autoscaler/deploy/vpa-rbac.yaml b/vertical-pod-autoscaler/deploy/vpa-rbac.yaml index 0fb9e10760..1f61cd0a87 100644 --- a/vertical-pod-autoscaler/deploy/vpa-rbac.yaml +++ b/vertical-pod-autoscaler/deploy/vpa-rbac.yaml @@ -33,6 +33,7 @@ rules: - list - watch - patch +--- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: