From 4ff6b5cc845871cae5224651b03032a5f9f6eec5 Mon Sep 17 00:00:00 2001 From: Raffael Sahli Date: Thu, 8 Feb 2024 15:39:55 +0100 Subject: [PATCH] fix: nullify webhook config --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index c61d064..2b9b02b 100644 --- a/main.go +++ b/main.go @@ -227,12 +227,14 @@ func main() { // Conversion Webhook is unsupported since there will be no pods running handling the conversion request if crd.Spec.Conversion != nil { crd.Spec.Conversion.Strategy = "None" + crd.Spec.Conversion.Webhook = nil } + crds = append(crds, &crd) case schema.GroupVersionKind{Group: "", Version: "v1", Kind: "Namespace"}: namespaces[obj.GetName()] = &obj default: - // objects = append(objects, &obj) + objects = append(objects, &obj) } }