Skip to content

Commit

Permalink
Decrease verbosity of Prometheus firewall rule checking
Browse files Browse the repository at this point in the history
Prow log viewer extracts its output as an error
  • Loading branch information
jkaniuk committed Nov 27, 2019
1 parent ab51d13 commit 15e1cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run-e2e-with-prometheus-fw-rule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set -o pipefail

# Add firewall rule for Prometheus port (9090)
if [[ -n "${KUBE_GKE_NETWORK:-}" ]]; then
if ! gcloud compute firewall-rules describe "${KUBE_GKE_NETWORK}-9090" > /dev/null; then
if ! gcloud compute firewall-rules describe "${KUBE_GKE_NETWORK}-9090" > /dev/null 2>&1; then
PROMETHEUS_RULE_NAME="${KUBE_GKE_NETWORK}-9090"
echo "Prometheus firewall rule not found, creating..."
echo COMMAND: gcloud compute firewall-rules create --network "${KUBE_GKE_NETWORK}" --source-ranges 0.0.0.0/0 --allow tcp:9090 "${PROMETHEUS_RULE_NAME}"
Expand Down

0 comments on commit 15e1cf8

Please sign in to comment.