Fix small errors
This commit is contained in:
parent
f3abcba174
commit
1a6ce56ba7
|
|
@ -33,7 +33,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
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 {
|
func newReadyVPALister(stopChannel <-chan struct{}) vpa_lister.VerticalPodAutoscalerLister {
|
||||||
|
|
@ -53,7 +53,7 @@ func newReadyVPALister(stopChannel <-chan struct{}) vpa_lister.VerticalPodAutosc
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
certs := initCerts(certsDir)
|
certs := initCerts(*certsDir)
|
||||||
stopChannel := make(chan struct{})
|
stopChannel := make(chan struct{})
|
||||||
vpaLister := newReadyVPALister(stopChannel)
|
vpaLister := newReadyVPALister(stopChannel)
|
||||||
as := &admissionServer{logic.NewRecommendationProvider(vpaLister)}
|
as := &admissionServer{logic.NewRecommendationProvider(vpaLister)}
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ rules:
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
- patch
|
- patch
|
||||||
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue