File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,17 +128,17 @@ timeout 60 jq -n \
128128
129129# Query the Prometheus metrics endpoint to ensure it's working.
130130kubectl get pod \
131- --namespace cyberark \
131+ --namespace $NAMESPACE \
132132 --selector app.kubernetes.io/name=disco-agent \
133133 --output jsonpath={.items[* ].metadata.name} \
134- | xargs -I{} kubectl get --raw /api/v1/namespaces/cyberark /pods/{}:8081/proxy/metrics \
134+ | xargs -I{} kubectl get --raw /api/v1/namespaces/$NAMESPACE /pods/{}:8081/proxy/metrics \
135135 | grep ' ^process_'
136136
137137# Query the pprof endpoint to ensure it's working.
138138kubectl get pod \
139- --namespace cyberark \
139+ --namespace $NAMESPACE \
140140 --selector app.kubernetes.io/name=disco-agent \
141141 --output jsonpath={.items[* ].metadata.name} \
142- | xargs -I{} kubectl get --raw /api/v1/namespaces/cyberark /pods/{}:8081/proxy/debug/pprof/cmdline \
142+ | xargs -I{} kubectl get --raw /api/v1/namespaces/$NAMESPACE /pods/{}:8081/proxy/debug/pprof/cmdline \
143143 | xargs -0
144144
Original file line number Diff line number Diff line change @@ -130,18 +130,18 @@ timeout 120 jq -n \
130130
131131# Query the Prometheus metrics endpoint to ensure it's working.
132132kubectl get pod \
133- --namespace ngts \
133+ --namespace ${NAMESPACE} \
134134 --selector app.kubernetes.io/name=discovery-agent \
135135 --output jsonpath={.items[* ].metadata.name} \
136- | xargs -I{} kubectl get --raw /api/v1/namespaces/ngts /pods/{}:8081/proxy/metrics \
136+ | xargs -I{} kubectl get --raw /api/v1/namespaces/$NAMESPACE /pods/{}:8081/proxy/metrics \
137137 | grep ' ^process_'
138138
139139# Query the pprof endpoint to ensure it's working.
140140kubectl get pod \
141- --namespace ngts \
141+ --namespace ${NAMESPACE} \
142142 --selector app.kubernetes.io/name=discovery-agent \
143143 --output jsonpath={.items[* ].metadata.name} \
144- | xargs -I{} kubectl get --raw /api/v1/namespaces/ngts /pods/{}:8081/proxy/debug/pprof/cmdline \
144+ | xargs -I{} kubectl get --raw /api/v1/namespaces/$NAMESPACE /pods/{}:8081/proxy/debug/pprof/cmdline \
145145 | xargs -0
146146
147147# TODO: should call to SCM and verify that certs are actually uploaded
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ ngts-release:
4040# # Run a basic E2E test on a Kind cluster
4141# # See `hack/ngts/e2e.sh` for the full test script.
4242# # @category NGTS Discovery Agent
43- ngts-test-e2e : $(NEEDS_KIND ) $(NEEDS_KUBECTL ) $(NEEDS_HELM )
43+ ngts-test-e2e : $(NEEDS_KIND ) $(NEEDS_KUBECTL ) $(NEEDS_HELM ) $( NEEDS_YQ )
4444 PATH=" $( bin_dir) /tools:${PATH} " ./hack/ngts/test-e2e.sh
4545
4646.PHONY : ngts-verify
You can’t perform that action at this time.
0 commit comments