Skip to content

Commit

Permalink
Replace ConfigMap with Secret in logs about Reaper's truststore creation
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvoncek committed Oct 25, 2024
1 parent 0f46a52 commit 312ab96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controllers/reaper/reaper_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,18 +504,18 @@ func (r *ReaperReconciler) reconcileTrustStoresSecret(ctx context.Context, actua
}
if err := r.Client.Get(ctx, sKey, s); err != nil {
if errors.IsNotFound(err) {
logger.Info("Creating Reaper's truststore ConfigMap", "ConfigMap", sKey)
logger.Info("Creating Reaper's truststore Secret", "Secret", sKey)
if err = controllerutil.SetControllerReference(actualReaper, s, r.Scheme); err != nil {
logger.Error(err, "Failed to set owner on truststore ConfigMap")
logger.Error(err, "Failed to set owner on truststore Secret")
return err
}
if err = r.Client.Create(ctx, s); err != nil {
logger.Error(err, "Failed to create Reaper's truststore ConfigMap")
logger.Error(err, "Failed to create Reaper's truststore Secret")
return err
}
return nil
}
logger.Error(err, "Failed to get Reaper's truststores ConfigMap")
logger.Error(err, "Failed to get Reaper's truststore Secret")
return err
}
return nil
Expand Down

0 comments on commit 312ab96

Please sign in to comment.