diff --git a/pkg/crd/markers/zz_generated.markerhelp.go b/pkg/crd/markers/zz_generated.markerhelp.go index 3acf3c983..61dc86cc1 100644 --- a/pkg/crd/markers/zz_generated.markerhelp.go +++ b/pkg/crd/markers/zz_generated.markerhelp.go @@ -198,7 +198,7 @@ func (Minimum) Help() *markers.DefinitionHelp { return &markers.DefinitionHelp{ Category: "CRD validation", DetailedHelp: markers.DetailedHelp{ - Summary: "specifies the minimum numeric value that this field can have.", + Summary: "specifies the minimum numeric value that this field can have. Negative integers are supported.", Details: "", }, FieldHelp: map[string]markers.DetailedHelp{}, diff --git a/pkg/webhook/parser.go b/pkg/webhook/parser.go index dda54dc93..d9cfd6321 100644 --- a/pkg/webhook/parser.go +++ b/pkg/webhook/parser.go @@ -244,10 +244,6 @@ func (c Config) clientConfig() admissionregv1.WebhookClientConfig { Namespace: "system", Path: &path, }, - // OpenAPI marks the field as required before 1.13 because of a bug that got fixed in - // https://github.com/kubernetes/api/commit/e7d9121e9ffd63cea0288b36a82bcc87b073bd1b - // Put "\n" as an placeholder as a workaround til 1.13+ is almost everywhere. - CABundle: []byte("\n"), } } diff --git a/pkg/webhook/testdata/manifests.v1beta1.yaml b/pkg/webhook/testdata/manifests.v1beta1.yaml index b8603f65f..e6ea5f758 100644 --- a/pkg/webhook/testdata/manifests.v1beta1.yaml +++ b/pkg/webhook/testdata/manifests.v1beta1.yaml @@ -10,7 +10,6 @@ webhooks: - v1 - v1beta1 clientConfig: - caBundle: Cg== service: name: webhook-service namespace: system @@ -38,7 +37,6 @@ metadata: name: validating-webhook-configuration webhooks: - clientConfig: - caBundle: Cg== service: name: webhook-service namespace: system diff --git a/pkg/webhook/testdata/manifests.yaml b/pkg/webhook/testdata/manifests.yaml index 6f6f92b59..285be0243 100644 --- a/pkg/webhook/testdata/manifests.yaml +++ b/pkg/webhook/testdata/manifests.yaml @@ -10,7 +10,6 @@ webhooks: - v1 - v1beta1 clientConfig: - caBundle: Cg== service: name: webhook-service namespace: system @@ -41,7 +40,6 @@ webhooks: - v1 - v1beta1 clientConfig: - caBundle: Cg== service: name: webhook-service namespace: system