Skip to content

Commit

Permalink
modify ScaledJob CRD patch for version v1 (#1208)
Browse files Browse the repository at this point in the history
Signed-off-by: Zbynek Roubalik <[email protected]>
  • Loading branch information
zroubalik authored Oct 1, 2020
1 parent 2ca2c19 commit 38b3e9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ resources:
- bases/keda.sh_triggerauthentications.yaml
# +kubebuilder:scaffold:crdkustomizeresource

## ScaledJob CRD needs to be patched because of an issue with required properties
## https://github.com/kedacore/keda/issues/927
patchesJson6902:
- target:
version: v1beta1
version: v1
group: apiextensions.k8s.io
kind: CustomResourceDefinition
name: scaledjobs.keda.sh
Expand Down
6 changes: 3 additions & 3 deletions config/crd/patches/scaledjob_patch.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
- op: add
path: /spec/validation/openAPIV3Schema/properties/spec/properties/jobTargetRef/properties/template/properties/spec/properties/containers/items/properties/ports/items/required/-
path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/jobTargetRef/properties/template/properties/spec/properties/containers/items/properties/ports/items/required/-
value: protocol

- op: add
path: /spec/validation/openAPIV3Schema/properties/spec/properties/jobTargetRef/properties/template/properties/spec/properties/ephemeralContainers/items/properties/ports/items/required/-
path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/jobTargetRef/properties/template/properties/spec/properties/ephemeralContainers/items/properties/ports/items/required/-
value: protocol

- op: add
path: /spec/validation/openAPIV3Schema/properties/spec/properties/jobTargetRef/properties/template/properties/spec/properties/initContainers/items/properties/ports/items/required/-
path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/jobTargetRef/properties/template/properties/spec/properties/initContainers/items/properties/ports/items/required/-
value: protocol

0 comments on commit 38b3e9b

Please sign in to comment.