k8s/informers/task/reconciler.go
Method Reconciler.Reconcile
has 10 return statements (exceeds 4 allowed). Open
Open
func (r Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error) {
logger := r.logger.Session("task-completion-reconciler", lager.Data{"namespace": request.Namespace, "pod-name": request.Name})
pod := &corev1.Pod{}
if err := r.runtimeClient.Get(ctx, request.NamespacedName, pod); err != nil {
Function NewReconciler
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
logger lager.Logger,
podClient client.Client,
jobsClient JobsClient,
podUpdater PodsClient,
reporter Reporter,
Method Reconciler.reportIfRequired
has 6 return statements (exceeds 4 allowed). Open
Open
func (r *Reconciler) reportIfRequired(ctx context.Context, pod *corev1.Pod) error {
if pod.Annotations[jobs.AnnotationCCAckedTaskCompletion] == jobs.TaskCompletedTrue {
return nil
}