kyverno / policies

Kyverno policies for security and best practices
Apache License 2.0
333 stars 243 forks source link

remove missing image and fix failing tests #1173

Closed JimBugwadia closed 1 month ago

JimBugwadia commented 1 month ago

Related Issue(s)

n/a

Description

Fix tests:

  1. Remove image ghcr.io/samj1912/myapp that was causing test failures:
failed to load data error="failed to fetch image descriptor: ghcr.io/samj1912/myapp:latest, error: failed to fetch image descriptor: ghcr.io/samj1912/myapp:latest, error: failed to fetch image reference: ghcr.io/samj1912/myapp:latest, error: GET https://ghcr.io/token?scope=repository%3Asamj1912%2Fmyapp%3Apull&service=ghcr.io: DENIED: requested access to the resource is denied" logger=DefaultContextLoaderFactory name=imageData
  1. Fix tests in pod-security-cel/restricted/disallow-privilege-escalation.

Checklist