Skip to content

Commit aabbecf

Browse files
committed
add metrics service to tls cert
1 parent b6c96b8 commit aabbecf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

rust/operator-binary/src/hbase_controller.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,7 @@ fn build_rolegroup_statefulset(
10921092
if hbase.has_kerberos_enabled() {
10931093
add_kerberos_pod_config(
10941094
hbase,
1095+
rolegroup_ref,
10951096
&mut hbase_container,
10961097
&mut pod_builder,
10971098
merged_config

rust/operator-binary/src/kerberos.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use stackable_operator::{
1111
},
1212
},
1313
kube::{ResourceExt, runtime::reflector::ObjectRef},
14+
role_utils::RoleGroupRef,
1415
shared::time::Duration,
1516
utils::cluster_info::KubernetesClusterInfo,
1617
};
@@ -230,6 +231,7 @@ pub fn kerberos_ssl_client_settings(hbase: &v1alpha1::HbaseCluster) -> BTreeMap<
230231

231232
pub fn add_kerberos_pod_config(
232233
hbase: &v1alpha1::HbaseCluster,
234+
rolegroup_ref: &RoleGroupRef<v1alpha1::HbaseCluster>,
233235
cb: &mut ContainerBuilder,
234236
pb: &mut PodBuilder,
235237
requested_secret_lifetime: Duration,
@@ -264,6 +266,8 @@ pub fn add_kerberos_pod_config(
264266
SecretOperatorVolumeSourceBuilder::new(https_secret_class)
265267
.with_pod_scope()
266268
.with_node_scope()
269+
// We need to add the metrics service for scraping
270+
.with_service_scope(rolegroup_ref.rolegroup_metrics_service_name())
267271
.with_format(SecretFormat::TlsPkcs12)
268272
.with_tls_pkcs12_password(TLS_STORE_PASSWORD)
269273
.with_auto_tls_cert_lifetime(requested_secret_lifetime)

0 commit comments

Comments
 (0)