We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ff2b41 commit d769c21Copy full SHA for d769c21
rust/crd/src/lib.rs
@@ -721,13 +721,13 @@ impl DruidCluster {
721
722
/// The fully-qualified domain name of the role-level load-balanced Kubernetes `Service`
723
pub fn role_service_fqdn(&self, role: &DruidRole) -> Option<String> {
724
+ let cluster_domain = KUBERNETES_CLUSTER_DOMAIN
725
+ .get()
726
+ .expect("KUBERNETES_CLUSTER_DOMAIN must first be set by calling initialize_operator");
727
Some(format!(
- "{}.{}.svc.{}",
728
+ "{}.{}.svc.{cluster_domain}",
729
self.role_service_name(role)?,
730
self.metadata.namespace.as_ref()?,
- KUBERNETES_CLUSTER_DOMAIN.get().expect(
- "KUBERNETES_CLUSTER_DOMAIN must first be set by calling initialize_operator"
- ),
731
))
732
}
733
0 commit comments