From a91f35a64cb658b3c3c3e343fdeab1cb32d152b1 Mon Sep 17 00:00:00 2001 From: Shane Utt Date: Wed, 25 Aug 2021 14:53:11 -0400 Subject: [PATCH 1/2] chore: remove noisy obj processing log entry for ctrls --- hack/generators/controllers/networking/main.go | 1 - 1 file changed, 1 deletion(-) diff --git a/hack/generators/controllers/networking/main.go b/hack/generators/controllers/networking/main.go index 3217adbcd4..ce71b9b6bf 100644 --- a/hack/generators/controllers/networking/main.go +++ b/hack/generators/controllers/networking/main.go @@ -445,7 +445,6 @@ func (r *{{.PackageAlias}}{{.Type}}Reconciler) Reconcile(ctx context.Context, re } {{end}} // update the kong Admin API with the changes - log.Info("updating the proxy with new {{.Type}}", "namespace", obj.Namespace, "name", obj.Name) if err := r.Proxy.UpdateObject(obj); err != nil { return ctrl.Result{}, err } From b259deaddc3ad0fcacd306fcb0b25547e866fbf1 Mon Sep 17 00:00:00 2001 From: Shane Utt Date: Wed, 25 Aug 2021 14:54:04 -0400 Subject: [PATCH 2/2] chore: run generators --- .../configuration/zz_generated_controllers.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/internal/controllers/configuration/zz_generated_controllers.go b/internal/controllers/configuration/zz_generated_controllers.go index 24100edc00..42eb927c49 100644 --- a/internal/controllers/configuration/zz_generated_controllers.go +++ b/internal/controllers/configuration/zz_generated_controllers.go @@ -101,7 +101,6 @@ func (r *CoreV1ServiceReconciler) Reconcile(ctx context.Context, req ctrl.Reques } // update the kong Admin API with the changes - log.Info("updating the proxy with new Service", "namespace", obj.Namespace, "name", obj.Name) if err := r.Proxy.UpdateObject(obj); err != nil { return ctrl.Result{}, err } @@ -171,7 +170,6 @@ func (r *CoreV1EndpointsReconciler) Reconcile(ctx context.Context, req ctrl.Requ } // update the kong Admin API with the changes - log.Info("updating the proxy with new Endpoints", "namespace", obj.Namespace, "name", obj.Name) if err := r.Proxy.UpdateObject(obj); err != nil { return ctrl.Result{}, err } @@ -241,7 +239,6 @@ func (r *CoreV1SecretReconciler) Reconcile(ctx context.Context, req ctrl.Request } // update the kong Admin API with the changes - log.Info("updating the proxy with new Secret", "namespace", obj.Namespace, "name", obj.Name) if err := r.Proxy.UpdateObject(obj); err != nil { return ctrl.Result{}, err } @@ -323,7 +320,6 @@ func (r *NetV1IngressReconciler) Reconcile(ctx context.Context, req ctrl.Request } // update the kong Admin API with the changes - log.Info("updating the proxy with new Ingress", "namespace", obj.Namespace, "name", obj.Name) if err := r.Proxy.UpdateObject(obj); err != nil { return ctrl.Result{}, err } @@ -405,7 +401,6 @@ func (r *NetV1Beta1IngressReconciler) Reconcile(ctx context.Context, req ctrl.Re } // update the kong Admin API with the changes - log.Info("updating the proxy with new Ingress", "namespace", obj.Namespace, "name", obj.Name) if err := r.Proxy.UpdateObject(obj); err != nil { return ctrl.Result{}, err } @@ -487,7 +482,6 @@ func (r *ExtV1Beta1IngressReconciler) Reconcile(ctx context.Context, req ctrl.Re } // update the kong Admin API with the changes - log.Info("updating the proxy with new Ingress", "namespace", obj.Namespace, "name", obj.Name) if err := r.Proxy.UpdateObject(obj); err != nil { return ctrl.Result{}, err } @@ -557,7 +551,6 @@ func (r *KongV1KongIngressReconciler) Reconcile(ctx context.Context, req ctrl.Re } // update the kong Admin API with the changes - log.Info("updating the proxy with new KongIngress", "namespace", obj.Namespace, "name", obj.Name) if err := r.Proxy.UpdateObject(obj); err != nil { return ctrl.Result{}, err } @@ -627,7 +620,6 @@ func (r *KongV1KongPluginReconciler) Reconcile(ctx context.Context, req ctrl.Req } // update the kong Admin API with the changes - log.Info("updating the proxy with new KongPlugin", "namespace", obj.Namespace, "name", obj.Name) if err := r.Proxy.UpdateObject(obj); err != nil { return ctrl.Result{}, err } @@ -709,7 +701,6 @@ func (r *KongV1KongClusterPluginReconciler) Reconcile(ctx context.Context, req c } // update the kong Admin API with the changes - log.Info("updating the proxy with new KongClusterPlugin", "namespace", obj.Namespace, "name", obj.Name) if err := r.Proxy.UpdateObject(obj); err != nil { return ctrl.Result{}, err } @@ -791,7 +782,6 @@ func (r *KongV1KongConsumerReconciler) Reconcile(ctx context.Context, req ctrl.R } // update the kong Admin API with the changes - log.Info("updating the proxy with new KongConsumer", "namespace", obj.Namespace, "name", obj.Name) if err := r.Proxy.UpdateObject(obj); err != nil { return ctrl.Result{}, err } @@ -873,7 +863,6 @@ func (r *KongV1Beta1TCPIngressReconciler) Reconcile(ctx context.Context, req ctr } // update the kong Admin API with the changes - log.Info("updating the proxy with new TCPIngress", "namespace", obj.Namespace, "name", obj.Name) if err := r.Proxy.UpdateObject(obj); err != nil { return ctrl.Result{}, err } @@ -955,7 +944,6 @@ func (r *KongV1Beta1UDPIngressReconciler) Reconcile(ctx context.Context, req ctr } // update the kong Admin API with the changes - log.Info("updating the proxy with new UDPIngress", "namespace", obj.Namespace, "name", obj.Name) if err := r.Proxy.UpdateObject(obj); err != nil { return ctrl.Result{}, err } @@ -1037,7 +1025,6 @@ func (r *Knativev1alpha1IngressReconciler) Reconcile(ctx context.Context, req ct } // update the kong Admin API with the changes - log.Info("updating the proxy with new Ingress", "namespace", obj.Namespace, "name", obj.Name) if err := r.Proxy.UpdateObject(obj); err != nil { return ctrl.Result{}, err }