We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee8492e commit dce33a2Copy full SHA for dce33a2
scripts/copy_crds.sh
@@ -6,10 +6,12 @@ set -o pipefail
6
7
SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
8
CRD_PATH="${SCRIPT_ROOT}/vendor/github.com/operator-framework/api/crds"
9
-for f in ${CRD_PATH}/*.yaml ; do
+
10
+rm "${SCRIPT_ROOT}"/deploy/chart/crds/*.yaml
11
+for f in "${CRD_PATH}"/*.yaml ; do
12
if [[ ! "${f}" =~ .*_operators\.yaml ]]; then
13
echo "copying ${f}"
- cp "${f}" "${SCRIPT_ROOT}/deploy/chart/crds/0000_50_olm_00-${f##*/operators.coreos.com_}"
14
+ cp "${f}" "${SCRIPT_ROOT}/deploy/chart/crds/0000_50_olm_00-$(basename "$f" | sed 's/^.*_\([^.]\+\)\.yaml/\1.crd.yaml/')"
15
fi
16
done
17
0 commit comments