Skip to content

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

@Teejay128

Description

@Teejay128

Page link

https://kyverno.io/docs/introduction/quick-start/

Description

While following the quick start guide, I noticed a warning in the terminal when I ran certain commands.

Warning: policies.kyverno.io/v1alpha1 ValidatingPolicy is deprecated; use policies.kyverno.io/v1 ValidatingPolicy
validatingpolicy.policies.kyverno.io/require-labels created

This bug exists in the code samples for validating, mutating, and generating resources sections, and I figure it might exist even beyond this page.

Suggested Action

Updating all instances of policies.kyverno.io/v1alpha1 to policies.kyverno.io/v1 and any other similar deprecations.

Expected behavior

Using the stable version policies.kyverno.io/v1 would get rid of the warnings gotten from running the code samples and prevent further similar disruptions in the documentation.

Slack discussion

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions