fix: don't block port 8001 unless it's being forwarded
Description
Restrict blocking port 8001 to when port_forward is actually used
Supporting information
Testing instructions
Steps to test the changes:
- ./kubectl --namespace monitoring port-forward --address 0.0.0.0 deployments/opensearch-dashboard-opensearch-dashboards 8001:5601
- ./kubectl get pods
Checklist
If any of the items below is not applicable, do not remove them, but put a check in it.
-
All providers include the new feature/change -
All affected providers can provision new clusters -
Unit tests are added/updated -
Documentation is added/updated -
The TOOLS_CONTAINER_IMAGE_VERSION
in ci_vars.yml is updated -
The grove-template repository is updated
Additional context
Allows for running multiple kubectl instances and one monitoring at the same time.