Skip to content

Commit

Permalink
update generate-crd-yaml.sh to be macOS-compatible (projectcontour#4972)
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Kriss <[email protected]>
  • Loading branch information
skriss authored Jan 11, 2023
1 parent 8c96516 commit 63dd999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/generate-crd-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ go run sigs.k8s.io/controller-tools/cmd/controller-gen \
# https://github.com/kubernetes/kubernetes/pull/114585
ls "${TEMPDIR}"/*.yaml | xargs cat | sed '/^$/d' \
| awk '/group: projectcontour.io/{print " preserveUnknownFields: false"}1' \
| sed -E 's/(\s*)description: ResourceClaim/\1x-kubernetes-map-type: atomic\n&/' \
| sed -E 's/(.*)description: ResourceClaim/\1x-kubernetes-map-type: atomic\n&/' \
> "${REPO}/examples/contour/01-crds.yaml"

0 comments on commit 63dd999

Please sign in to comment.