Re-enable webhook during e2e tests and fix panic on start

Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
James Munnelly 2018-11-07 16:02:03 +00:00
parent 96dc275df9
commit 719dd915d1
2 changed files with 4 additions and 8 deletions

View File

@ -22,7 +22,6 @@ import (
"github.com/openshift/generic-admission-server/pkg/cmd"
"github.com/jetstack/cert-manager/pkg/apis/certmanager/validation/webhooks"
"github.com/jetstack/cert-manager/pkg/logs"
)
var certHook cmd.ValidatingAdmissionHook = &webhooks.CertificateAdmissionHook{}
@ -30,9 +29,6 @@ var issuerHook cmd.ValidatingAdmissionHook = &webhooks.IssuerAdmissionHook{}
var clusterIssuerHook cmd.ValidatingAdmissionHook = &webhooks.ClusterIssuerAdmissionHook{}
func main() {
logs.InitLogs()
defer logs.FlushLogs()
// Avoid "logging before flag.Parse" errors from glog
flag.CommandLine.Parse([]string{})

View File

@ -19,10 +19,10 @@ extraArgs:
- --leader-election-retry-period=2s
webhook:
# enabled: true
# image:
# tag: build
# pullPolicy: Never
enabled: true
image:
tag: build
pullPolicy: Never
resources:
requests:
cpu: 10m