Skip to content

Commit 3cf5e34

Browse files
committed
renamed headless service
1 parent 0f396f5 commit 3cf5e34

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

rust/operator-binary/src/hbase_controller.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ fn build_hbase_env_sh(
11901190
}
11911191

11921192
fn headless_service_name(role_group_name: &str) -> String {
1193-
format!("{name}-metrics", name = role_group_name)
1193+
format!("{name}-headless", name = role_group_name)
11941194
}
11951195

11961196
#[cfg(test)]

tests/templates/kuttl/kerberos/42-test-rest-server.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
- /bin/bash
1515
- -c
1616
- |
17-
status_code=$(curl --write-out '%{http_code}' --silent --insecure --output /dev/null "https://hbase-restserver-default-metrics:8080")
17+
status_code=$(curl --write-out '%{http_code}' --silent --insecure --output /dev/null "https://hbase-restserver-default-headless:8080")
1818
1919
if [[ "$status_code" -eq 401 ]] ; then
2020
echo "[PASS] Successfully got 401 as we did not authenticate"

tests/templates/kuttl/opa/42-test-rest-server.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
- /bin/bash
1515
- -c
1616
- |
17-
status_code=$(curl --write-out '%{http_code}' --silent --insecure --output /dev/null "https://hbase-restserver-default-metrics:8080")
17+
status_code=$(curl --write-out '%{http_code}' --silent --insecure --output /dev/null "https://hbase-restserver-default-headless:8080")
1818
1919
if [[ "$status_code" -eq 401 ]] ; then
2020
echo "[PASS] Successfully got 401 as we did not authenticate"

tests/templates/kuttl/profiling/run-profiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def fetch_flamegraph(service_url, refresh_path):
5555

5656

5757
def test_profiling(role, port):
58-
service_url = f"http://test-hbase-{role}-default-metrics:{port}"
58+
service_url = f"http://test-hbase-{role}-default-headless:{port}"
5959

6060
print(f"Test profiling on {service_url}")
6161

tests/templates/kuttl/smoke/50-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ kind: TestAssert
44
metadata:
55
name: test-hbase
66
commands:
7-
- script: kubectl exec --namespace=$NAMESPACE hbase-test-runner-0 -- python /tmp/test-hbase.py http://test-hbase-restserver-default-metrics:8080
7+
- script: kubectl exec --namespace=$NAMESPACE hbase-test-runner-0 -- python /tmp/test-hbase.py http://test-hbase-restserver-default-headless:8080
88
- script: kubectl exec --namespace=$NAMESPACE hbase-test-runner-0 -- python /tmp/test_prometheus_metrics.py $NAMESPACE
99
timeout: 240

tests/templates/kuttl/smoke/test_prometheus_metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def check_metrics(
1010
namespace: str, role: str, port: int, expected_metrics: list[str]
1111
) -> None:
1212
response: requests.Response = requests.get(
13-
f"http://test-hbase-{role}-default-metrics:{port}/prometheus",
13+
f"http://test-hbase-{role}-default-headless:{port}/prometheus",
1414
timeout=10,
1515
)
1616
assert response.ok, "Requesting metrics failed"

0 commit comments

Comments
 (0)