From df250307c2a1420c7df3f7d807b5517c7c8393d9 Mon Sep 17 00:00:00 2001 From: James Munnelly Date: Fri, 7 Jan 2022 12:20:31 +0000 Subject: [PATCH] Fix test failures Signed-off-by: James Munnelly --- internal/apis/config/webhook/fuzzer/fuzzer.go | 3 +++ internal/webhook/feature/features.go | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/internal/apis/config/webhook/fuzzer/fuzzer.go b/internal/apis/config/webhook/fuzzer/fuzzer.go index 879e4eb6a..7a0d63aac 100644 --- a/internal/apis/config/webhook/fuzzer/fuzzer.go +++ b/internal/apis/config/webhook/fuzzer/fuzzer.go @@ -36,6 +36,9 @@ var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} { if s.SecurePort == nil { s.SecurePort = pointer.Int(123) } + if s.PprofAddress == "" { + s.PprofAddress = "something:1234" + } }, } } diff --git a/internal/webhook/feature/features.go b/internal/webhook/feature/features.go index ac05dd7b3..fb6c49317 100644 --- a/internal/webhook/feature/features.go +++ b/internal/webhook/feature/features.go @@ -1,3 +1,19 @@ +/* +Copyright 2022 The cert-manager Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package feature import (