From 90a98ae9fae2bd11b44d78c435056a9f8f2f39f6 Mon Sep 17 00:00:00 2001 From: Wainer dos Santos Moschetta Date: Tue, 6 Aug 2024 11:35:26 -0300 Subject: [PATCH] docs/OPERATOR_HUB: fix copy instruction We want to copy the sub-folder of bundle into the cc-operator/${TARGET_RELEASE} folder. Signed-off-by: Wainer dos Santos Moschetta --- docs/OPERATOR_HUB.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/OPERATOR_HUB.md b/docs/OPERATOR_HUB.md index eb4d342b..251f5e9f 100644 --- a/docs/OPERATOR_HUB.md +++ b/docs/OPERATOR_HUB.md @@ -34,7 +34,10 @@ Follow the steps: 5. Copy the bundle directory to the community-operators repository directory. On the example below I got the community-operators repository cloned to `../../../github.com/k8s-operatorhub/community-operators`: ```shell - cp -r bundle ../../../github.com/k8s-operatorhub/community-operators/operators/cc-operator/${TARGET_RELEASE} + dest_dir="../../../github.com/k8s-operatorhub/community-operators/operators/cc-operator/${TARGET_RELEASE}" + rm -rf "$dest_dir" + mkdir "$dest_dir" + cp -r bundle/* "$dest_dir" ``` 6. Prepare a commit and push to your tree