auto-discovery/kubernetes/controllers/container_scan_controller.go
Method ContainerScanReconciler.generateScanWithVolumeMounts
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (r *ContainerScanReconciler) generateScanWithVolumeMounts(pod corev1.Pod, imageID string, scanConfig configv1.ScanConfig, namespace corev1.Namespace, secrets []corev1.LocalObjectReference) executionv1.ScheduledScan {
Method ContainerScanReconciler.createScheduledScanWithImagePullSecrets
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (r *ContainerScanReconciler) createScheduledScanWithImagePullSecrets(ctx context.Context, pod corev1.Pod, imageID string, scanConfig configv1.ScanConfig, secrets []corev1.LocalObjectReference) {
Method ContainerScanReconciler.Reconcile
has 5 return statements (exceeds 4 allowed). Open
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)