Skip to content

Change API version in Kyverno policy examples#2015

Open
Teejay128 wants to merge 1 commit into
kyverno:mainfrom
Teejay128:fix-apiversion-v1alpha1
Open

Change API version in Kyverno policy examples#2015
Teejay128 wants to merge 1 commit into
kyverno:mainfrom
Teejay128:fix-apiversion-v1alpha1

Conversation

@Teejay128
Copy link
Copy Markdown

Updated API version in Kyverno policies from v1alpha1 to v1.

Related issue

Fixes #2005

This PR updates multiple code samples in the Kyverno Quick Start guide that were using the deprecated policies.kyverno.io/v1alpha1 API Version.

Running these samples threw deprecation warning messages as shown below:

AdobeExpressPhotos_7994384a0a724014abd8fd30cbaf5a94_CopyEdited

Proposed Changes

Updated code samples with the old alpha version

apiVersion: policies.kyverno.io/v1alpha1

to use the modern stable v1 version

apiVersion: policies.kyverno.io/v1

This change clears out the error as seen below:

AdobeExpressPhotos_8f43e51593a843049affd02c7af4657e_CopyEdited

and updates the samples to match the stable versions as seen in the Policy Types page.

Checklist

  • I have read the contributing guidelines.
  • I have inspected the website preview for accuracy.
  • I have signed off my issue.

Updated API version in Kyverno policies from v1alpha1 to v1.

Signed-off-by: Joseph Taiwo <104542152+Teejay128@users.noreply.github.com>
@welcome
Copy link
Copy Markdown

welcome Bot commented May 12, 2026

Thanks for opening your first Pull Request here! Please check out our Contributing guidelines and confirm that you Signed off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Quick Start guide uses Deprecated apiVersion "v1alpha1" in code samples

1 participant