You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# gets the directory of the this test hook script (POSIX-compliant)
8
+
# workaround for determining the filepath of the LABELER_OBJECT
9
+
# in chainsaw-based uptest v1.x versions
10
+
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")"&&pwd -P)
10
11
11
-
if!${KUBECTL} get service sample-service -o jsonpath='{.metadata.annotations}'| grep -v "last-applied-configuration";then# This annotation should not be present when SSA is enabled
if${KUBECTL} get service sample-service -o jsonpath='{.metadata.annotations}'| grep "last-applied-configuration";then# This annotation should not be present when SSA is enabled
12
17
echo"SSA validation failed! Annotation 'last-applied-configuration' should not exist when SSA is enabled!"
13
-
#exit 1
18
+
exit 1
14
19
fi
15
20
if! (${KUBECTL} get service sample-service -o jsonpath='{.metadata.labels.some-key}'| grep -q "some-value"&&${KUBECTL} get service sample-service -o jsonpath='{.metadata.labels.another-key}'| grep -q "another-value");then
16
21
echo"SSA validation failed! Labels 'some-key' and 'another-key' from both Objects should exist with values 'some-value' and 'another-value' respectively!"
0 commit comments