@@ -280,6 +280,7 @@ pub struct SecretOperatorVolumeSourceBuilder {
280280 kerberos_service_names : Vec < String > ,
281281 tls_pkcs12_password : Option < String > ,
282282 auto_tls_cert_lifetime : Option < Duration > ,
283+ auto_tls_cert_domain_components_in_subject_dn : Option < bool > ,
283284 provision_parts : SecretClassVolumeProvisionParts ,
284285}
285286
@@ -302,6 +303,7 @@ impl SecretOperatorVolumeSourceBuilder {
302303 kerberos_service_names : Vec :: new ( ) ,
303304 tls_pkcs12_password : None ,
304305 auto_tls_cert_lifetime : None ,
306+ auto_tls_cert_domain_components_in_subject_dn : None ,
305307 provision_parts,
306308 }
307309 }
@@ -311,6 +313,14 @@ impl SecretOperatorVolumeSourceBuilder {
311313 self
312314 }
313315
316+ pub fn with_auto_tls_cert_domain_components_in_subject_dn (
317+ & mut self ,
318+ enabled : impl Into < bool > ,
319+ ) -> & mut Self {
320+ self . auto_tls_cert_domain_components_in_subject_dn = Some ( enabled. into ( ) ) ;
321+ self
322+ }
323+
314324 pub fn with_node_scope ( & mut self ) -> & mut Self {
315325 self . scopes . push ( SecretOperatorVolumeScope :: Node ) ;
316326 self
@@ -391,6 +401,13 @@ impl SecretOperatorVolumeSourceBuilder {
391401 ) ;
392402 }
393403
404+ if let Some ( enabled) = self . auto_tls_cert_domain_components_in_subject_dn {
405+ annotations. insert (
406+ Annotation :: auto_tls_cert_domain_components_in_subject_dn ( enabled)
407+ . context ( ParseAnnotationSnafu ) ?,
408+ ) ;
409+ }
410+
394411 Ok ( EphemeralVolumeSource {
395412 volume_claim_template : Some ( PersistentVolumeClaimTemplate {
396413 metadata : Some ( ObjectMetaBuilder :: new ( ) . annotations ( annotations) . build ( ) ) ,
0 commit comments