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

[FeatureRequest]: use any in match filter due to deprecation #297

Open
1 task done
jkleinlercher opened this issue Jul 28, 2023 · 0 comments
Open
1 task done

[FeatureRequest]: use any in match filter due to deprecation #297

jkleinlercher opened this issue Jul 28, 2023 · 0 comments
Labels
enhancement New feature or request triage Triage

Comments

@jkleinlercher
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

What is the idea?

According to https://kyverno.io/docs/writing-policies/match-exclude/#resource-filters :

Specifying resource filters directly under match and exclude has been marked for deprecation and will be removed in a future release. It is highly recommended you specify them under any or all blocks.

However the psp-migration tool returns filters like this:

      match:
        resources:
          kinds:
            - Pod

should be

      match:
        any:
        - resources:
            kinds:
              - Pod
@jkleinlercher jkleinlercher added enhancement New feature or request triage Triage labels Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage Triage
Projects
None yet
Development

No branches or pull requests

1 participant