Skip to content

Conversation

@Rajdeep4586
Copy link

fix: corrected case typo from 'Audit' to 'audit' in Kyverno policy

Related Issue(s)

No specific issue opened for this typo. This is a direct fix for functionality inconsistency due to incorrect casing in the validationFailureAction field.

Description

This PR corrects a case sensitivity issue where validationFailureAction was set to 'Audit' instead of the expected 'audit' in Kyverno policies. Kyverno is case-sensitive for this field, and using the wrong case can cause policies to silently fail or behave unexpectedly.

Checklist

I have read the policy contribution guidelines.

I have added test manifests and resources covering both positive and negative tests that prove this policy works as intended.

I have added the artifacthub-pkg.yml file and have verified it is complete and correct.

fix: corrected case typo from 'Audit' to 'audit' in Kyverno policy

Signed-off-by: Rajdeep4586 <[email protected]>
@Rajdeep4586
Copy link
Author

Found a minor but impactful typo in the validationFailureAction field—used Audit instead of the correct lowercase audit. Since Kyverno is case-sensitive, this was causing the policy to not behave as expected. Fixed it to ensure proper policy enforcement.

@JimBugwadia
Copy link
Member

@Rajdeep4586 - newer versions require Audit and audit has been deprecated.

Which version are you using?

requests and memory limits.
spec:
validationFailureAction: Audit
validationFailureAction: audit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this changed (audit is deprecated - should be Audit).

@JimBugwadia
Copy link
Member

@Rajdeep4586 - can you please update?

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.

2 participants