Skip to content

Commit

Permalink
Patch the crd json due to a bug in k8s 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
alok87 committed Nov 10, 2020
1 parent f239fec commit 4754dc0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions redshiftsink/config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions redshiftsink/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/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

0 comments on commit 4754dc0

Please sign in to comment.