From 8f9c6841b823798a94bd17bfccc9ab74f620789a Mon Sep 17 00:00:00 2001 From: "Joshua C. Forest" Date: Thu, 21 Nov 2024 10:50:15 -0500 Subject: [PATCH] Add another prometheus check I found in _helpers.tpl --- ci/rstudio-workbench/tests/prometheus_test.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ci/rstudio-workbench/tests/prometheus_test.yaml b/ci/rstudio-workbench/tests/prometheus_test.yaml index 4bae9f00..bb211e67 100644 --- a/ci/rstudio-workbench/tests/prometheus_test.yaml +++ b/ci/rstudio-workbench/tests/prometheus_test.yaml @@ -85,3 +85,20 @@ tests: - equal: path: "spec.template.spec.containers[1].ports[0].containerPort" value: 9108 + - it: should ensure the metrics port is used in the rstudio container if prometheus is enabled and legacy is not true + template: deployment.yaml + set: + prometheus: + enabled: true + legacy: false + port: 8989 + asserts: + - equal: + path: "spec.template.spec.containers[0].name" + value: "rstudio" + - equal: + path: "spec.template.spec.containers[0].ports[1].name" + value: "metrics" + - equal: + path: "spec.template.spec.containers[0].ports[1].containerPort" + value: 8989