@@ -327,7 +327,6 @@ func (m *PodMutator) injectSidecar(
327327 var volumeMounts []corev1.VolumeMount
328328
329329 for _ , featureFlag := range featureFlags {
330- fmt .Println (featureFlag .Spec .FlagDSpec )
331330 if featureFlag .Spec .FlagDSpec != nil {
332331 m .Log .V (1 ).Info ("DEPRECATED: The FlagDSpec property of the FeatureFlagConfiguration CRD has been superseded by " +
333332 "the FlagSourceConfiguration CRD." +
@@ -340,7 +339,7 @@ func (m *PodMutator) injectSidecar(
340339 switch {
341340 // kubernetes sync is the default state
342341 case featureFlag .Spec .SyncProvider == nil || featureFlag .Spec .SyncProvider .IsKubernetes ():
343- fmt .Printf ("FeatureFlagConfiguration %s using kubernetes sync implementation\n " , featureFlag .Name )
342+ m . Log . V ( 1 ). Info ( fmt .Sprintf ("FeatureFlagConfiguration %s using kubernetes sync implementation" , featureFlag .Name ) )
344343 commandSequence = append (
345344 commandSequence ,
346345 "--uri" ,
@@ -352,7 +351,7 @@ func (m *PodMutator) injectSidecar(
352351 )
353352 // if http is explicitly set
354353 case featureFlag .Spec .SyncProvider .IsHttp ():
355- fmt .Printf ("FeatureFlagConfiguration %s using http sync implementation\n " , featureFlag .Name )
354+ m . Log . V ( 1 ). Info ( fmt .Sprintf ("FeatureFlagConfiguration %s using http sync implementation" , featureFlag .Name ) )
356355 if featureFlag .Spec .SyncProvider .HttpSyncConfiguration != nil {
357356 commandSequence = append (
358357 commandSequence ,
@@ -367,11 +366,12 @@ func (m *PodMutator) injectSidecar(
367366 )
368367 }
369368 } else {
370- fmt .Printf ("FeatureFlagConfiguration %s is missing a httpSyncConfiguration\n " , featureFlag .Name )
369+ err := fmt .Errorf ("FeatureFlagConfiguration %s is missing a httpSyncConfiguration" , featureFlag .Name )
370+ m .Log .V (1 ).Error (err , "unable to add http sync provider" )
371371 }
372372 // if filepath is explicitly set
373373 case featureFlag .Spec .SyncProvider .IsFilepath ():
374- fmt .Printf ("FeatureFlagConfiguration %s using filepath sync implementation\n " , featureFlag .Name )
374+ m . Log . V ( 1 ). Info ( fmt .Sprintf ("FeatureFlagConfiguration %s using filepath sync implementation" , featureFlag .Name ) )
375375 commandSequence = append (
376376 commandSequence ,
377377 "--uri" ,
0 commit comments