Skip to content

feat(kyverno): validate XQueueClaim fields via policy and enforce on PR with GitHub Action #11

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

Merged
merged 10 commits into from
Apr 21, 2025

Conversation

wnqueiroz
Copy link
Owner

  • Add Kyverno policy to validate location, message size, and timeout fields
  • Include workflow to apply policy on PRs to crossplane/claims
  • Add bootstrap script to install and verify Kyverno in the platform cluster

…PR with GitHub Action

- Add Kyverno policy to validate location, message size, and timeout fields
- Include workflow to apply policy on PRs to crossplane/claims
- Add bootstrap script to install and verify Kyverno in the platform cluster
Pinned the Kyverno CLI to a specific version to ensure consistent validation behavior across runs.
Extract Kyverno CLI tarball to /tmp/kyverno-cli instead of current directory to prevent overwrite
errors when kyverno folder already exists.
Redirected Kyverno CLI output to `$GITHUB_STEP_SUMMARY` for
…it properly

Previously, Kyverno failures were not clearly visible in the PR summary due to missing output
redirects and improper exit checks. This change captures the Kyverno exit code explicitly, appends
the results to `$GITHUB_STEP_SUMMARY`, and exits with an error when validation fails.
…rrors in workflow summary

Redirects stderr to stdout during Kyverno validation to ensure all messages are recorded in result.txt.
…aner CI output

Improves readability of validation logs by removing ANSI colors and enabling table output format.
… download

Replaces custom install logic with official kyverno/action-install-cli for version v1.13.4.
@wnqueiroz wnqueiroz merged commit a2c013c into main Apr 21, 2025
1 check passed
@wnqueiroz wnqueiroz deleted the feature-kyverno branch April 21, 2025 20:51
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.

1 participant