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]: Kyverno-policies helm chart has hardcoded Kubernetes version annotations #1165

Open
2 tasks done
sergey198828 opened this issue Sep 20, 2024 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@sergey198828
Copy link

Kyverno Version

1.12

Kubernetes Version

1.28

Kubernetes Platform

Other (specify in description)

Description

When deploy policies using Kyverno-policies helm chart 3.2.5 I can see Chart.yaml is specified kubeVersion: '>=1.25.0-0' and appVersion: v1.12.5.

When I view effective yaml of policies I see:

kyverno.io/kyverno-version: 1.6.0
policies.kyverno.io/minversion: 1.6.0
kyverno.io/kubernetes-version: "1.22-1.23"

There is no value I can change this.

Steps to reproduce

  1. helm repo add kyverno https://kyverno.github.io/kyverno/
  2. helm template kyverno/kyverno-policies --version 3.2.5 | grep kyverno.io/kyverno-version
  3. helm template kyverno/kyverno-policies --version 3.2.5 | grep kyverno.io/kubernetes-version

Expected behavior

I would like to have a value in values.yaml using which I can control this behavior

Screenshots

No response

Kyverno logs

No response

Slack discussion

No response

Troubleshooting

  • I have read and followed the documentation AND the troubleshooting guide.
  • I have searched other issues in this repository and mine is not recorded.
@sergey198828 sergey198828 added the bug Something isn't working label Sep 20, 2024
@realshuting
Copy link
Member

Thanks @sergey198828 for creating the issue.

kyverno.io/kyverno-version: 1.6.0 should be updated upon each new Kyverno release. Feel free to raise a PR for the fix.

kyverno.io/kubernetes-version: "1.22-1.23" should be the Kubernetes versions we tested and verified, they don't seem to be updated though.

@sergey198828
Copy link
Author

Thanks @realshuting, opened Pull request.
kyverno/kyverno#11258

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Status: No status
Development

No branches or pull requests

2 participants