Skip to content

Commit

Permalink
Fix for invalid cronjob spec kubernetes-sigs/kubebuilder#1466
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-Gong committed Dec 7, 2020
1 parent b356b1d commit b56b09f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,12 @@ patchesStrategicMerge:

# the following config is for teaching kustomize how to do kustomization for CRDs.
configurations:
- kustomizeconfig.yaml
- kustomizeconfig.yaml

patchesJson6902:
- target:
group: apiextensions.k8s.io
version: v1beta1
kind: CustomResourceDefinition
name: cronjobs.batch.tutorial.kubebuilder.io
path: patches/k8s_list_map_keys.yaml
11 changes: 11 additions & 0 deletions config/crd/patches/k8s_list_map_keys.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
- op: replace
path: /spec/validation/openAPIV3Schema/properties/spec/properties/jobTemplate/properties/spec/properties/template/properties/spec/properties/initContainers/items/properties/ports/items/required
value:
- containerPort
- protocol

- op: replace
path: /spec/validation/openAPIV3Schema/properties/spec/properties/jobTemplate/properties/spec/properties/template/properties/spec/properties/containers/items/properties/ports/items/required
value:
- containerPort
- protocol

0 comments on commit b56b09f

Please sign in to comment.