Skip to content

Policy without tag is pulled successfully but then it cannot be found #1547

@kravciak

Description

@kravciak

When tag is missing

  • pulling step uses latest tag as default, policy is downloaded
  • scaffold step does not use latest as default and it fails
~ kwctl scaffold manifest -t ClusterAdmissionPolicy registry://ghcr.io/kubewarden/policies/pod-privileged
2026-03-04T08:33:22.275480Z  INFO kwctl: cannot find policy with uri: registry://ghcr.io/kubewarden/policies/pod-privileged, trying to pull it from remote registry
  Successfully pulled policy from registry://ghcr.io/kubewarden/policies/pod-privileged
Error: Cannot find policy with uri: registry://ghcr.io/kubewarden/policies/pod-privileged

~ kwctl --version
kwctl 1.32.0

It works fine when I use specific tag registry://ghcr.io/kubewarden/policies/pod-privileged:latest

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Pending review

Relationships

None yet

Development

No branches or pull requests

Issue actions