Skip to content

Commit 5e2b764

Browse files
piobig2871mbuechse
andauthored
Update Tests/kaas/k8s-version-policy/k8s_version_policy.py
Co-authored-by: Matthias Büchse <[email protected]> Signed-off-by: Piotr <[email protected]>
1 parent 5ab2bd0 commit 5e2b764

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Tests/kaas/k8s-version-policy/k8s_version_policy.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,8 @@ async def get_k8s_pod_images(kubeconfig, context=None) -> list[str]:
441441
return list(images)
442442

443443

444-
async def scan_k8s_images(kubeconfig, context=None) -> None:
444+
async def scan_k8s_images(images_to_scan) -> None:
445445
"""Scan the images used in the Kubernetes cluster for vulnerabilities."""
446-
images_to_scan = await get_k8s_pod_images(kubeconfig, context)
447446

448447
for image in images_to_scan:
449448
logger.info(f"Scanning image: {image}")

0 commit comments

Comments
 (0)