Skip to content

Commit

Permalink
Allow user to specify ntp source and dns domain
Browse files Browse the repository at this point in the history
Signed-off-by: Salvatore Daniele <[email protected]>
  • Loading branch information
SalDaniele committed Dec 14, 2023
1 parent 7348228 commit c0a04ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clusterDeployer.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ def create_cluster(self) -> None:
cfg["api_ip"] = self._cc.api_ip
cfg["ingress_ip"] = self._cc.ingress_ip
cfg["vip_dhcp_allocation"] = False
cfg["additional_ntp_source"] = "clock.redhat.com"
cfg["base_dns_domain"] = "redhat.com"
cfg["additional_ntp_source"] = self._cc.ntp_source
cfg["base_dns_domain"] = self._cc.base_dns_domain
cfg["sno"] = self._cc.is_sno()
if self._cc.proxy:
cfg["proxy"] = self._cc.proxy
Expand Down
6 changes: 6 additions & 0 deletions clustersConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ class ClustersConfig:
noproxy: Optional[str] = None
preconfig: List[ExtraConfigArgs] = []
postconfig: List[ExtraConfigArgs] = []
ntp_source: str = "clock.redhat.com"
base_dns_domain: str = "redhat.com"

def __init__(self, yaml_path: str):
self._cluster_info: Optional[ClusterInfo] = None
Expand Down Expand Up @@ -150,6 +152,10 @@ def __init__(self, yaml_path: str):
self.name = cc["name"]
self.api_ip = cc["api_ip"]
self.ingress_ip = cc["ingress_ip"]
if "ntp_source" in cc:
self.ntp_source = cc["ntp_source"]
if "base_dns_domain" in cc:
self.base_dns_domain = cc["base_dns_domain"]

self.kubeconfig = path.join(getcwd(), f'kubeconfig.{cc["name"]}')
if "kubeconfig" in cc:
Expand Down

0 comments on commit c0a04ac

Please sign in to comment.