secureCodeBox/secureCodeBox

View on GitHub
auto-discovery/kubernetes/controllers/container_scan_controller.go

Summary

Maintainability
A
1 hr
Test Coverage

Method ContainerScanReconciler.generateScanWithVolumeMounts has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func (r *ContainerScanReconciler) generateScanWithVolumeMounts(pod corev1.Pod, imageID string, scanConfig configv1.ScanConfig, namespace corev1.Namespace, secrets []corev1.LocalObjectReference) executionv1.ScheduledScan {
Severity: Minor
Found in auto-discovery/kubernetes/controllers/container_scan_controller.go - About 35 mins to fix

    Method ContainerScanReconciler.createScheduledScanWithImagePullSecrets has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (r *ContainerScanReconciler) createScheduledScanWithImagePullSecrets(ctx context.Context, pod corev1.Pod, imageID string, scanConfig configv1.ScanConfig, secrets []corev1.LocalObjectReference) {
    Severity: Minor
    Found in auto-discovery/kubernetes/controllers/container_scan_controller.go - About 35 mins to fix

      Method ContainerScanReconciler.Reconcile has 5 return statements (exceeds 4 allowed).
      Open

      func (r *ContainerScanReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
          log := r.Log
      
          log.V(8).Info("Something happened to a pod", "pod", req.Name, "namespace", req.Namespace)
      
      
      Severity: Major
      Found in auto-discovery/kubernetes/controllers/container_scan_controller.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status