Skip to content

Commit 3a51cb8

Browse files
authored
Extend api_explore.sh script to inspect /openapi (#108)
Signed-off-by: Sergio Arroutbi <[email protected]>
1 parent 789095e commit 3a51cb8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tools/api_tools/api_explore.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,16 @@ ${K8SC} -n "${NAMESPACE}" get secret "${SECRET}" -o json | jq -Mr '.data["ca.crt
118118
APISERVER=https://$("${K8SC}" -n default get endpoints kubernetes --no-headers | awk '{ print $2 }')
119119

120120
### Test API
121-
echo "---Test API---"
122-
${K8SC} "/openapi/v2"
123-
echo "---Test API---"
121+
echo "---Test API (v2)---"
122+
${K8SC} get --raw "/openapi/v2"
123+
echo "---Test API (v2)---"
124+
echo "---Test API (v3)---"
125+
${K8SC} get --raw "/openapi/v3"
126+
echo "---Test API (v3)---"
127+
echo "---Test API (v3)---"
128+
${K8SC} get --raw "/openapi/v3/apis/nbde.openshift.io/v1alpha1"
129+
echo
130+
echo "---Test API (v3)---"
124131

125132
### Extract logs from pod
126133
echo "---Extract logs from pod---"

0 commit comments

Comments
 (0)