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

1332 wildcard keys in patterns #1361

Merged
merged 3 commits into from
Dec 5, 2020
Merged

Conversation

JimBugwadia
Copy link
Member

@JimBugwadia JimBugwadia commented Dec 5, 2020

Fixes #1332.


Fixed handling of anchors and wildcards in patterns:

kubectl-kyverno.exe apply C:\Users\jbugwadia\Code\go\src\github.com\kyverno\policies\pod-security\default\restrict-apparmor-profiles.yaml  -r C:\Users\jbugwadia\Code\go\src\github.com\kyverno\policies\pod-security\tests\default\test-restrict-apparmor-profiles.yaml

applying 1 policy to 1 resource...

policy restrict-apparmor-profiles -> resource default/Deployment/test failed:
1. autogen-app-armor: Validation error: Specifying other AppArmor profiles is disallowed.
The annotation container.apparmor.security.beta.kubernetes.io must not be defined, or must not be set to anything other than `runtime/default`.
; Validation rule autogen-app-armor failed at path /spec/template/metadata/annotations/container.apparmor.security.beta.kubernetes.io/busybox/

@JimBugwadia JimBugwadia merged commit c953398 into main Dec 5, 2020
@JimBugwadia JimBugwadia deleted the 1332_wildcard_keys_in_patterns branch December 5, 2020 03:32
@JimBugwadia JimBugwadia restored the 1332_wildcard_keys_in_patterns branch December 6, 2020 19:06
@JimBugwadia JimBugwadia deleted the 1332_wildcard_keys_in_patterns branch December 6, 2020 19:08
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] matchLabels value does not accept wildcards
2 participants