@@ -212,7 +212,7 @@ func (b *StorageStatefulSetBuilder) buildVolumes() []corev1.Volume {
212
212
volumes = append (volumes , buildTLSVolume (interconnectTLSVolumeName , b .Spec .Service .Interconnect .TLSConfiguration ))
213
213
}
214
214
215
- if b .Spec .Service .Status .TLSConfiguration != nil && b . Spec . Service . Status . TLSConfiguration .Enabled {
215
+ if b .Spec .Service .Status .TLSConfiguration .Enabled {
216
216
volumes = append (volumes ,
217
217
buildTLSVolume (statusOriginTLSVolumeName , b .Spec .Service .Status .TLSConfiguration ),
218
218
corev1.Volume {
@@ -329,7 +329,7 @@ func (b *StorageStatefulSetBuilder) buildCaStorePatchingInitContainerVolumeMount
329
329
})
330
330
}
331
331
332
- if b .Spec .Service .Status .TLSConfiguration != nil && b . Spec . Service . Status . TLSConfiguration .Enabled {
332
+ if b .Spec .Service .Status .TLSConfiguration .Enabled {
333
333
volumeMounts = append (volumeMounts , corev1.VolumeMount {
334
334
Name : statusOriginTLSVolumeName ,
335
335
ReadOnly : true ,
@@ -446,7 +446,7 @@ func (b *StorageStatefulSetBuilder) buildVolumeMounts() []corev1.VolumeMount {
446
446
})
447
447
}
448
448
449
- if b .Spec .Service .Status .TLSConfiguration != nil && b . Spec . Service . Status . TLSConfiguration .Enabled {
449
+ if b .Spec .Service .Status .TLSConfiguration .Enabled {
450
450
volumeMounts = append (volumeMounts , corev1.VolumeMount {
451
451
Name : statusTLSVolumeName ,
452
452
ReadOnly : true ,
@@ -506,7 +506,7 @@ func (b *StorageStatefulSetBuilder) buildContainerArgs() ([]string, []string) {
506
506
fmt .Sprintf ("%s=%s" , api .LabelDeploymentKey , api .LabelDeploymentValueKubernetes ),
507
507
)
508
508
509
- if b .Spec .Service .Status .TLSConfiguration != nil && b . Spec . Service . Status . TLSConfiguration .Enabled {
509
+ if b .Spec .Service .Status .TLSConfiguration .Enabled {
510
510
args = append (args ,
511
511
"--mon-cert" ,
512
512
fmt .Sprintf ("%s/%s" , statusTLSVolumeMountPath , statusBundleFileName ),
0 commit comments