Skip to content

Commit

Permalink
chore: remove unused parameter from determinePodCoverage
Browse files Browse the repository at this point in the history
Signed-off-by: deggja <[email protected]>
  • Loading branch information
deggja committed Aug 31, 2024
1 parent d6772cd commit 083b40e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/pkg/k8s/cilium-scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func addUniquePodDetail(podDetails []string, detail string) []string {
}

// determinePodCoverage identifies unprotected pods in a namespace based on the fetched Cilium policies.
func determinePodCoverage(clientset *kubernetes.Clientset, nsName string, policies []*unstructured.Unstructured, hasDenyAll bool, writer *bufio.Writer, scanResult *ScanResult) ([]string, error) {
func determinePodCoverage(clientset *kubernetes.Clientset, nsName string, policies []*unstructured.Unstructured, hasDenyAll bool, writer *bufio.Writer) ([]string, error) {
unprotectedPods := []string{}

pods, err := clientset.CoreV1().Pods(nsName).List(context.TODO(), metav1.ListOptions{})
Expand Down Expand Up @@ -224,7 +224,7 @@ func processNamespacePoliciesCilium(dynamicClient dynamic.Interface, clientset *
return err
}

unprotectedPods, err := determinePodCoverage(clientset, nsName, ciliumPolicies, hasDenyAll, writer, scanResult)
unprotectedPods, err := determinePodCoverage(clientset, nsName, ciliumPolicies, hasDenyAll, writer)
if err != nil {
return err
}
Expand Down

0 comments on commit 083b40e

Please sign in to comment.