File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
231232pub 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)
You can’t perform that action at this time.
0 commit comments