@@ -227,18 +227,15 @@ func NewValidationReconciler(
227227 resources .Logging .Status .Problems = append (resources .Logging .Status .Problems , problem )
228228 }
229229
230- checkResults := resources .Logging .Status .ConfigCheckResults
231- if len (checkResults ) > 0 {
232- for hash , r := range checkResults {
233- if ! r {
234- problem := fmt .Sprintf ("Configuration with checksum %s has failed. " +
235- "Config secrets: `kubectl get secret -n %s -l %s=%s`. " +
236- "Configcheck pod log: `kubectl logs -n %s -l %s=%s --tail -1`" ,
237- hash ,
238- resources .Logging .Spec .ControlNamespace , configcheck .HashLabel , hash ,
239- resources .Logging .Spec .ControlNamespace , configcheck .HashLabel , hash )
240- resources .Logging .Status .Problems = append (resources .Logging .Status .Problems , problem )
241- }
230+ for hash , r := range resources .Logging .Status .ConfigCheckResults {
231+ if ! r {
232+ problem := fmt .Sprintf ("Configuration with checksum %s has failed. " +
233+ "Config secrets: `kubectl get secret -n %s -l %s=%s`. " +
234+ "Configcheck pod log: `kubectl logs -n %s -l %s=%s --tail -1`" ,
235+ hash ,
236+ resources .Logging .Spec .ControlNamespace , configcheck .HashLabel , hash ,
237+ resources .Logging .Spec .ControlNamespace , configcheck .HashLabel , hash )
238+ resources .Logging .Status .Problems = append (resources .Logging .Status .Problems , problem )
242239 }
243240 }
244241
0 commit comments