diff --git a/config/helm/aws-node-termination-handler/templates/clusterrole.yaml b/config/helm/aws-node-termination-handler/templates/clusterrole.yaml index 0583f5f5..eaa19713 100644 --- a/config/helm/aws-node-termination-handler/templates/clusterrole.yaml +++ b/config/helm/aws-node-termination-handler/templates/clusterrole.yaml @@ -18,6 +18,7 @@ rules: - pods verbs: - list + - get - apiGroups: - "" resources: diff --git a/test/e2e/prometheus-metrics-test b/test/e2e/prometheus-metrics-test index 0f7682bf..9e42da83 100755 --- a/test/e2e/prometheus-metrics-test +++ b/test/e2e/prometheus-metrics-test @@ -143,7 +143,7 @@ PORT_FORWARD_PID=$! trap 'kill ${PORT_FORWARD_PID}' EXIT SIGINT SIGTERM ERR echo "✅ Port-forwarded pod $POD_NAME" -sleep 1 +sleep 30 METRICS_RESPONSE=$(curl -L localhost:7000/metrics) echo "✅ Fetched /metrics."