Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Invalid variables #2625

Closed
chipzoller opened this issue Oct 28, 2021 · 1 comment · Fixed by #2647
Closed

[BUG] Invalid variables #2625

chipzoller opened this issue Oct 28, 2021 · 1 comment · Fixed by #2647
Assignees
Labels
bug Something isn't working

Comments

@chipzoller
Copy link
Member

chipzoller commented Oct 28, 2021

Software version numbers
State the version numbers of applications involved in the bug.

  • Kubernetes version: 1.21
  • Kubernetes platform (if applicable; ex., EKS, GKE, OpenShift): K3d
  • Kyverno version: 1.5.1

Describe the bug
Kyverno prints an invalid variable method when attempting to create a ClusterPolicy which uses the foreach validation functionality with a context referring to an API call.

EDIT: It also fails similarly for non foreach policies.

To Reproduce
Steps to reproduce the behavior:

  1. See message and thread here.

Expected behavior
Kyverno allows the ClusterPolicy to be created.

cc @JimBugwadia (per contributors' call on 10/28/21, adding initial milestone for patch)

@chipzoller chipzoller added the bug Something isn't working label Oct 28, 2021
@chipzoller chipzoller added this to the Kyverno Release 1.5.2 milestone Oct 28, 2021
@JimBugwadia JimBugwadia self-assigned this Oct 28, 2021
@chipzoller
Copy link
Member Author

Another user failure noted in this Slack conversation.

@chipzoller chipzoller changed the title [BUG] Invalid variables when using foreach with a context [BUG] Invalid variables Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants