diff --git a/config/crd/kustomization.yaml b/config/crd/kustomization.yaml index 4ac65198d..8ca9dd9f5 100644 --- a/config/crd/kustomization.yaml +++ b/config/crd/kustomization.yaml @@ -16,6 +16,14 @@ patchesStrategicMerge: #- patches/cainjection_in_redshiftsinks.yaml # +kubebuilder:scaffold:crdkustomizecainjectionpatch +patchesJson6902: +- target: + group: apiextensions.k8s.io + version: v1beta1 + kind: CustomResourceDefinition + name: redshiftsinks.tipoca.k8s.practo.dev + path: patches/k8s_list_map_keys.yaml + # the following config is for teaching kustomize how to do kustomization for CRDs. configurations: - kustomizeconfig.yaml diff --git a/config/crd/patches/k8s_list_map_keys.yaml b/config/crd/patches/k8s_list_map_keys.yaml new file mode 100644 index 000000000..5fef6c31e --- /dev/null +++ b/config/crd/patches/k8s_list_map_keys.yaml @@ -0,0 +1,11 @@ +- op: replace + path: /spec/validation/openAPIV3Schema/properties/spec/properties/batcher/properties/podTemplate/properties/spec/properties/initContainers/items/properties/ports/items/required + value: + - containerPort + - protocol + +- op: replace + path: /spec/validation/openAPIV3Schema/properties/spec/properties/batcher/properties/podTemplate/properties/spec/properties/containers/items/properties/ports/items/required + value: + - containerPort + - protocol