Add matchConditions policy example#735
Conversation
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
✅ Deploy Preview for docs-kubewarden-io ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hello @AkashKumar7902, You appear not to have used our docs PR template, which included the following:
Please reinstate this, and answer accordingly. Feel free to reach out to me to discuss in person, if necessary. Thank you |
|
Thanks for pointing this out. I restored the checklist in the PR description and confirmed the AI Policy acknowledgement. |
jvanz
left a comment
There was a problem hiding this comment.
The documentation is fine to me. But I don't think you need to update the 1.34 version. We are in a migration process to antora and we can avoid additional text to port to it.
|
@AkashKumar7902 can you take a look in my previous comments? |
|
can you also rebase against |
jvanz
left a comment
There was a problem hiding this comment.
can you also rebase against main? We just moved all the docs from docusaurus to antora 🙏
@AkashKumar7902, can you address this?
Description
Add a
spec.matchConditionsexample to the policies how-to. The new section briefly explains that match conditions are Kubernetes CEL expressions evaluated before the policy webhook is called, links to the Kubernetes documentation, and shows a Deployment example that evaluatespod-privilegedonly for CREATE requests or Pod template changes.The same content is added to the current docs and the latest 1.34 versioned docs.
Fixes #645
Checklist
AI usage
OpenAI Codex assisted with this contribution. I reviewed the generated changes and am responsible for them.
Test
sed -n '104,122p' docs/howtos/policies.md | yq e . >/dev/nullsed -n '104,122p' versioned_docs/version-1.34/howtos/policies.md | yq e . >/dev/nullgit diff --checkcorepack yarn buildThe docs build succeeds with existing broken-anchor, deprecated Docusaurus config, and stale Browserslist warnings.