From f2faeaa76f42c4484db70766fc1d7a3a122ee38f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tibor=20=C5=A0imko?=
Date: Mon, 6 May 2024 14:23:41 +0200
Subject: [PATCH] fix(config): remove hard-coded component host name domain
(#458)
Removes hard-coded infrastructure component host name domain
"svc.local.cluster", since this assumption is not really necessary and
made REANA not to work under some deployment scenarios, such as on
SSL-RIVER.
Closes #457
---
reana_commons/config.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/reana_commons/config.py b/reana_commons/config.py
index fc20cb35..87296b29 100644
--- a/reana_commons/config.py
+++ b/reana_commons/config.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of REANA.
-# Copyright (C) 2018, 2019, 2020, 2021, 2022, 2023 CERN.
+# Copyright (C) 2018, 2019, 2020, 2021, 2022, 2023, 2024 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
@@ -99,9 +99,7 @@ def load(cls, kind):
"""Kubernetes namespace in which REANA infrastructure is currently deployed."""
REANA_INFRASTRUCTURE_COMPONENTS_HOSTNAMES = {
- component_name: (
- "{component_prefix}-{component_name}.{namespace}.svc.cluster.local"
- ).format(
+ component_name: ("{component_prefix}-{component_name}.{namespace}").format(
component_prefix=REANA_COMPONENT_PREFIX,
component_name=component_name,
namespace=REANA_INFRASTRUCTURE_KUBERNETES_NAMESPACE,