You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2021/02/08 12:51:44 UTC

[camel-k] 07/08: chore(CRD): Fix CRDs post-processing on Mac OS

This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 4d95ad2722545fc36cce924379f0e80fe4be76e4
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Mon Feb 8 12:10:52 2021 +0100

    chore(CRD): Fix CRDs post-processing on Mac OS
---
 script/gen_crd.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/script/gen_crd.sh b/script/gen_crd.sh
index 139a4f6..60ff12b 100755
--- a/script/gen_crd.sh
+++ b/script/gen_crd.sh
@@ -48,7 +48,7 @@ deploy_crd_file() {
     # Mac OSX
     cat "${source}.orig" | sed -n '/^---/,/^status/p;/^status/q' \
       | sed '1d;$d' \
-      | sed $'s/^  creationTimestamp:/  creationTimestamp:\\\n  labels:\\\n    app: camel-k/' >> "$source"
+      | sed -e $'/^  creationTimestamp:/a\\\n  labels:\\\n    app: camel-k' >> "$source"
   fi
 
   for dest in "${@:2}"; do