From 1d6522ab128405dc679037a20eeef68e0adc9209 Mon Sep 17 00:00:00 2001 From: tof1a <34772214+tof1a@users.noreply.github.com> Date: Thu, 2 Mar 2023 10:26:33 +0100 Subject: [PATCH] Fix missing definition in CRD (#24) --- pkg/crd/crds.go | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/pkg/crd/crds.go b/pkg/crd/crds.go index 6d04cf3..29222f9 100644 --- a/pkg/crd/crds.go +++ b/pkg/crd/crds.go @@ -130,6 +130,62 @@ var ( Maximum: pointers.NewFloat64(8), Minimum: pointers.NewFloat64(1), }, + "nodeSelector": { + Type: "object", + XPreserveUnknownFields: pointers.NewBool(true), + }, + "resources": { + Type: "object", + Properties: map[string]extsv1.JSONSchemaProps{ + "limits": { + Type: "object", + Properties: map[string]extsv1.JSONSchemaProps{ + "cpu": { + Type: "string", + }, + "memory": { + Type: "string", + }, + }, + }, + "requests": { + Type: "object", + Properties: map[string]extsv1.JSONSchemaProps{ + "cpu": { + Type: "string", + }, + "memory": { + Type: "string", + }, + }, + }, + }, + }, + "tolerations": { + Type: "array", + Items: &extsv1.JSONSchemaPropsOrArray{ + Schema: &extsv1.JSONSchemaProps{ + Type: "object", + Properties: map[string]extsv1.JSONSchemaProps{ + "effect": { + Type: "string", + }, + "key": { + Type: "string", + }, + "operator": { + Type: "string", + }, + "tolerationSeconds": { + Type: "integer", + }, + "value": { + Type: "string", + }, + }, + }, + }, + }, "version": { Type: "string", Pattern: `^\d+\.\d+\.\d+(\.\d+)?$`,