Skip to content

Commit 124f549

Browse files
committed
fix annotation/label values in test
1 parent 7965941 commit 124f549

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/build-test.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -692,9 +692,9 @@ jobs:
692692
--kotsadm-registry ttl.sh \
693693
--kotsadm-namespace automated-${{ github.run_id }} \
694694
--additional-labels testlabel1=testvalue1 \
695-
--additional-labels test.label/two=test.value/two \
695+
--additional-labels test.label/two=test.value.two \
696696
--additional-annotations testannotation1=testannotationvalue1 \
697-
--additional-annotations test.annotation/two=testannotation.value/two \
697+
--additional-annotations test.annotation/two=testannotation.value.two \
698698
--kotsadm-tag 24h | tee output.txt
699699
700700
if ! grep -q "The Kubernetes RBAC policy that the Admin Console is running with does not have access to complete the Preflight Checks. It's recommended that you run these manually before proceeding." output.txt; then
@@ -770,33 +770,33 @@ jobs:
770770
exit 1
771771
fi
772772
echo "label two"
773-
if ! kubectl get pod -n "$APP_SLUG" -l app=kotsadm -o jsonpath='{.items[0].metadata.labels.test\.label/two}' | grep -q 'test.value/two'; then
773+
if ! kubectl get pod -n "$APP_SLUG" -l app=kotsadm -o jsonpath='{.items[0].metadata.labels.test\.label/two}' | grep -q 'test.value.two'; then
774774
echo "kotsadm pod does not have the correct test.label/two label"
775775
kubectl get pod -n "$APP_SLUG" -l app=kotsadm -o jsonpath='{.items[0].metadata.labels}'
776776
exit 1
777777
fi
778-
if ! kubectl get pod -n "$APP_SLUG" -l app=kotsadm-minio -o jsonpath='{.items[0].metadata.labels.test\.label/two}' | grep -q 'test.value/two'; then
778+
if ! kubectl get pod -n "$APP_SLUG" -l app=kotsadm-minio -o jsonpath='{.items[0].metadata.labels.test\.label/two}' | grep -q 'test.value.two'; then
779779
echo "kotsadm-minio pod does not have the correct test.label/two label"
780780
kubectl get pod -n "$APP_SLUG" -l app=kotsadm-minio -o jsonpath='{.items[0].metadata.labels}'
781781
exit 1
782782
fi
783-
if ! kubectl get pod -n "$APP_SLUG" -l app=kotsadm-rqlite -o jsonpath='{.items[0].metadata.labels.test\.label/two}' | grep -q 'test.value/two'; then
783+
if ! kubectl get pod -n "$APP_SLUG" -l app=kotsadm-rqlite -o jsonpath='{.items[0].metadata.labels.test\.label/two}' | grep -q 'test.value.two'; then
784784
echo "kotsadm-rqlite pod does not have the correct test.label/two label"
785785
kubectl get pod -n "$APP_SLUG" -l app=kotsadm-rqlite -o jsonpath='{.items[0].metadata.labels}'
786786
exit 1
787787
fi
788788
echo "annotation two"
789-
if ! kubectl get pod -n "$APP_SLUG" -l app=kotsadm -o jsonpath='{.items[0].metadata.annotations.test\.annotation/two}' | grep -q 'testannotation.value/two'; then
789+
if ! kubectl get pod -n "$APP_SLUG" -l app=kotsadm -o jsonpath='{.items[0].metadata.annotations.test\.annotation/two}' | grep -q 'testannotation.value.two'; then
790790
echo "kotsadm pod does not have the correct test.annotation/two annotation"
791791
kubectl get pod -n "$APP_SLUG" -l app=kotsadm -o jsonpath='{.items[0].metadata.annotations}'
792792
exit 1
793793
fi
794-
if ! kubectl get pod -n "$APP_SLUG" -l app=kotsadm-minio -o jsonpath='{.items[0].metadata.annotations.test\.annotation/two}' | grep -q 'testannotation.value/two'; then
794+
if ! kubectl get pod -n "$APP_SLUG" -l app=kotsadm-minio -o jsonpath='{.items[0].metadata.annotations.test\.annotation/two}' | grep -q 'testannotation.value.two'; then
795795
echo "kotsadm-minio pod does not have the correct test.annotation/two annotation"
796796
kubectl get pod -n "$APP_SLUG" -l app=kotsadm-minio -o jsonpath='{.items[0].metadata.annotations}'
797797
exit 1
798798
fi
799-
if ! kubectl get pod -n "$APP_SLUG" -l app=kotsadm-rqlite -o jsonpath='{.items[0].metadata.annotations.test\.annotation/two}' | grep -q 'testannotation.value/two'; then
799+
if ! kubectl get pod -n "$APP_SLUG" -l app=kotsadm-rqlite -o jsonpath='{.items[0].metadata.annotations.test\.annotation/two}' | grep -q 'testannotation.value.two'; then
800800
echo "kotsadm-rqlite pod does not have the correct test.annotation/two annotation"
801801
kubectl get pod -n "$APP_SLUG" -l app=kotsadm-rqlite -o jsonpath='{.items[0].metadata.annotations}'
802802
exit 1

0 commit comments

Comments
 (0)