@@ -480,29 +480,35 @@ func TestProbes_PointToMountedScriptsWhenCustomSet(t *testing.T) {
480480
481481func TestProbeVolumes_CustomConfigMapOverride (t * testing.T ) {
482482 tests := []struct {
483- name string
484- setup func (df * resourcesv1.Dragonfly )
485- volumeName string
486- wantCM string
487- defaultCMName string // should NOT appear in generated resources
483+ name string
484+ setup func (df * resourcesv1.Dragonfly )
485+ volumeName string
486+ wantCM string
487+ defaultCMName string // should NOT appear in generated resources
488488 }{
489489 {
490- name : "custom liveness" ,
491- setup : func (df * resourcesv1.Dragonfly ) { df .Spec .CustomLivenessProbeConfigMap = & corev1.LocalObjectReference {Name : "my-liveness" } },
490+ name : "custom liveness" ,
491+ setup : func (df * resourcesv1.Dragonfly ) {
492+ df .Spec .CustomLivenessProbeConfigMap = & corev1.LocalObjectReference {Name : "my-liveness" }
493+ },
492494 volumeName : LivenessProbeVolumeName ,
493495 wantCM : "my-liveness" ,
494496 defaultCMName : "test-df-" + LivenessProbeConfigMapSuffix ,
495497 },
496498 {
497- name : "custom readiness" ,
498- setup : func (df * resourcesv1.Dragonfly ) { df .Spec .CustomReadinessProbeConfigMap = & corev1.LocalObjectReference {Name : "my-readiness" } },
499+ name : "custom readiness" ,
500+ setup : func (df * resourcesv1.Dragonfly ) {
501+ df .Spec .CustomReadinessProbeConfigMap = & corev1.LocalObjectReference {Name : "my-readiness" }
502+ },
499503 volumeName : ReadinessProbeVolumeName ,
500504 wantCM : "my-readiness" ,
501505 defaultCMName : "test-df-" + ReadinessProbeConfigMapSuffix ,
502506 },
503507 {
504- name : "custom startup" ,
505- setup : func (df * resourcesv1.Dragonfly ) { df .Spec .CustomStartupProbeConfigMap = & corev1.LocalObjectReference {Name : "my-startup" } },
508+ name : "custom startup" ,
509+ setup : func (df * resourcesv1.Dragonfly ) {
510+ df .Spec .CustomStartupProbeConfigMap = & corev1.LocalObjectReference {Name : "my-startup" }
511+ },
506512 volumeName : StartupProbeVolumeName ,
507513 wantCM : "my-startup" ,
508514 defaultCMName : "test-df-" + StartupProbeConfigMapSuffix ,
0 commit comments