Skip to content

Commit 359fc99

Browse files
committed
Reduce log level of noisy logs in ExtensionConfig and topology Cluster controller
Signed-off-by: Stefan Büringer [email protected]
1 parent 7f2a8cd commit 359fc99

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

exp/runtime/internal/controllers/extensionconfig_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu
166166
}
167167

168168
// Register the ExtensionConfig if it was found and patched without error.
169-
log.Info("Registering ExtensionConfig information into registry")
169+
log.V(4).Info("Registering ExtensionConfig information into registry")
170170
if err = r.RuntimeClient.Register(discoveredExtensionConfig); err != nil {
171171
return ctrl.Result{}, errors.Wrapf(err, "failed to register ExtensionConfig %s/%s", extensionConfig.Namespace, extensionConfig.Name)
172172
}
@@ -246,7 +246,7 @@ func reconcileCABundle(ctx context.Context, client client.Client, config *runtim
246246
}
247247
secretName := splitNamespacedName(secretNameRaw)
248248

249-
log.Info(fmt.Sprintf("Injecting CA Bundle into ExtensionConfig from secret %q", secretNameRaw))
249+
log.V(4).Info(fmt.Sprintf("Injecting CA Bundle into ExtensionConfig from secret %q", secretNameRaw))
250250

251251
if secretName.Namespace == "" || secretName.Name == "" {
252252
return errors.Errorf("failed to reconcile caBundle: secret name %q must be in the form <namespace>/<name>", secretNameRaw)

internal/controllers/topology/cluster/reconcile_state.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ const (
6161
// the entire reconcile operation will fail. This might be improved in the future if support for reconciling
6262
// subset of a topology will be implemented.
6363
func (r *Reconciler) reconcileState(ctx context.Context, s *scope.Scope) error {
64-
log := ctrl.LoggerFrom(ctx)
65-
log.Info("Reconciling state for topology owned objects")
66-
6764
// Reconcile the Cluster shim, a temporary object used a mean to collect
6865
// objects/templates that can be orphaned in case of errors during the
6966
// remaining part of the reconcile process.

internal/runtime/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (c *client) IsReady() bool {
9292

9393
func (c *client) Discover(ctx context.Context, extensionConfig *runtimev1.ExtensionConfig) (*runtimev1.ExtensionConfig, error) {
9494
log := ctrl.LoggerFrom(ctx)
95-
log.Info("Performing discovery for ExtensionConfig")
95+
log.V(4).Info("Performing discovery for ExtensionConfig")
9696

9797
hookGVH, err := c.catalog.GroupVersionHook(runtimehooksv1.Discovery)
9898
if err != nil {

0 commit comments

Comments
 (0)