Skip to content

fix: don't block port 8001 unless it's being forwarded

Paulo Viadanna requested to merge viadanna/kubectl-port-forwarding into main

Description

Restrict blocking port 8001 to when port_forward is actually used

Supporting information

Testing instructions

Steps to test the changes:

  1. ./kubectl --namespace monitoring port-forward --address 0.0.0.0 deployments/opensearch-dashboard-opensearch-dashboards 8001:5601
  2. ./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.

Merge request reports