Fix small errors

This commit is contained in:
Tomek Kulczyński 2018-01-24 18:57:09 +01:00
parent f3abcba174
commit 1a6ce56ba7
2 changed files with 3 additions and 2 deletions

View File

@ -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)}

View File

@ -33,6 +33,7 @@ rules:
- list
- watch
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata: