Skip to content

Commit 1fc3237

Browse files
committed
Check whether the correct yq is available
[ci skip]
1 parent 9cb3aac commit 1fc3237

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: charts/rabbitmq/test.sh

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
# This product may include a number of subcomponents with separate copyright notices and license terms. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license, as noted in the LICENSE file.
1010

1111
set -e
12+
set -o pipefail
13+
14+
if ! yq --version | grep -q 'yq version 3'; then
15+
echo "Please install https://github.com/mikefarah/yq v3"
16+
exit 1
17+
fi
1218

1319
for p in $(kubectl eg rabbitmqclusters.rabbitmq.com | yq d - spec.resources | yq d - spec.tolerations | yq d - spec.override | yq d - spec.affinity | yq r - spec | grep -v ' - ' | awk -F: '{ print $1 }'); do
1420
grep -q "$p " templates/rabbitmq.yaml

0 commit comments

Comments
 (0)