Skip to content

Commit ee8492e

Browse files
committed
Don't put CRD manifests into olm.yaml.
Reverts f4060ed.
1 parent 2159df5 commit ee8492e

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ endif
224224
./scripts/package_release.sh $(ver) deploy/$(target)/manifests/$(ver) deploy/$(target)/values.yaml
225225
ln -sfFn ./$(ver) deploy/$(target)/manifests/latest
226226
ifeq ($(quickstart), true)
227-
./scripts/package_quickstart.sh deploy/$(target)/manifests/$(ver) deploy/chart/crds deploy/$(target)/quickstart/olm.yaml deploy/$(target)/quickstart/crds.yaml deploy/$(target)/quickstart/install.sh
227+
./scripts/package_quickstart.sh deploy/$(target)/manifests/$(ver) deploy/$(target)/quickstart/olm.yaml deploy/$(target)/quickstart/crds.yaml deploy/$(target)/quickstart/install.sh
228228
endif
229229

230230
.PHONY: run-console-local

scripts/package_quickstart.sh

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,24 @@ if [[ ${#@} < 3 ]]; then
99
exit 1
1010
fi
1111

12-
manifestdir=$1
13-
crddir=$2
14-
out=$3
15-
outcrds=$4
16-
outscript=$5
12+
dir=$1
13+
out=$2
14+
outcrds=$3
15+
outscript=$4
1716

1817
rm -f ${out}
1918
rm -f ${outcrds}
2019
touch ${out}
2120
touch ${outcrds}
2221

23-
for f in ${manifestdir}/*.yaml
22+
for f in ${dir}/*.yaml
2423
do
25-
awk 'NR==1 && !/^---*/ {print "---"} !/^[[:space:]]*#/ {print}' $f >> ${out}
26-
done
27-
28-
for f in ${crddir}/*.yaml
29-
do
30-
awk 'NR==1 && !/^---*/ {print "---"} !/^[[:space:]]*#/ {print}' $f >> ${outcrds}
24+
if [[ $f == *.crd.yaml ]]
25+
then
26+
awk 'NR==1 && !/^---*/ {print "---"} !/^[[:space:]]*#/ {print}' $f >> ${outcrds}
27+
else
28+
awk 'NR==1 && !/^---*/ {print "---"} !/^[[:space:]]*#/ {print}' $f >> ${out}
29+
fi
3130
done
3231

3332
echo "Wrote manifests to ${out} and ${outcrds}"

0 commit comments

Comments
 (0)