Skip to content

Commit

Permalink
Remove controller port-forward in web dev script (#6396)
Browse files Browse the repository at this point in the history
Now that we no longer have a `controller` pod after #6039, there is no
need to port-forward the controller pod in the bin/web script. This
change removes the code that does that.

Signed-off-by: Dennis Adjei-Baah <dennis@buoyant.io>
  • Loading branch information
Dennis Adjei-Baah authored Jun 29, 2021
1 parent 38b0ca8 commit 138aff5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions bin/web
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,9 @@ USAGE
}; function --help { '-h' ;}

check-for-linkerd-and-viz() {
controller_pod=$(get-pod linkerd controller)
metrics_api_pod=$(get-pod linkerd-viz metrics-api)
grafana_pod=$(get-pod linkerd-viz grafana)

if [[ -z "${controller_pod// }" ]]; then
err 'Controller is not running. Have you installed Linkerd?'
exit 1
fi

if [[ -z "${metrics_api_pod// }" ]]; then
err 'Metrics-api is not running. Have you installed Linkerd-Viz?'
exit 1
Expand Down Expand Up @@ -111,7 +105,6 @@ run() {
build

check-for-linkerd-and-viz && (
port-forward linkerd controller 8185 8085 &
port-forward linkerd-viz metrics-api 8085 &
port-forward linkerd-viz grafana 3000 &
)
Expand Down

0 comments on commit 138aff5

Please sign in to comment.