Skip to content

Commit de3079c

Browse files
author
Max Jonas Werner
committed
fix default status e2e test
Since the kubectl version used in the workflow (v1.16.4) has a bug (kubernetes/kubernetes#23386) with the output of jsonpath formatting being a Go representation instead of JSON. Signed-off-by: Max Jonas Werner <mail@makk.es>
1 parent 116a6a6 commit de3079c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/e2e.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ jobs:
5959
- name: Run default status test
6060
run: |
6161
kubectl apply -f config/testdata/status-defaults
62-
RESULT=$(kubectl get helmrelease status-defaults -o jsonpath={.status})
63-
EXPECTED='{"observedGeneration":-1}'
62+
RESULT=$(kubectl get helmrelease status-defaults -o go-template={{.status}})
63+
EXPECTED='map[observedGeneration:-1]'
6464
if [ "${RESULT}" != "${EXPECTED}" ] ; then
6565
echo -e "${RESULT}\n\ndoes not equal\n\n${EXPECTED}"
6666
exit 1

0 commit comments

Comments
 (0)