Skip to content

Commit 220cda7

Browse files
committed
Capture in variable
1 parent ca081e2 commit 220cda7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rust/operator-binary/src/kerberos.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ fn principal_host_part(hbase: &HbaseCluster) -> Result<String, Error> {
293293
let hbase_namespace = hbase.namespace().context(ObjectMissingNamespaceSnafu {
294294
hbase: ObjectRef::from_obj(hbase),
295295
})?;
296+
let cluster_domain = KUBERNETES_CLUSTER_DOMAIN
297+
.get()
298+
.expect("KUBERNETES_CLUSTER_DOMAIN must first be set by calling initialize_operator");
296299
Ok(format!(
297-
"{hbase_name}.{hbase_namespace}.svc.{cluster_domain}@${{env.KERBEROS_REALM}}",
298-
cluster_domain = KUBERNETES_CLUSTER_DOMAIN
299-
.get()
300-
.expect("KUBERNETES_CLUSTER_DOMAIN must first be set by calling initialize_operator"),
300+
"{hbase_name}.{hbase_namespace}.svc.{cluster_domain}@${{env.KERBEROS_REALM}}"
301301
))
302302
}

0 commit comments

Comments
 (0)