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

Emit Kubernetes events for policy status change #616

Open
viccuad opened this issue Jan 22, 2024 · 1 comment
Open

Emit Kubernetes events for policy status change #616

viccuad opened this issue Jan 22, 2024 · 1 comment

Comments

@viccuad
Copy link
Member

viccuad commented Jan 22, 2024

This comes from https://www.youtube.com/watch?v=KbKQu3AqhBY.

Currently only tracing and monitoring give insights on Kubewarden policy state.

Policies have status (unscheduled, pending, active). But that that if policies are already deployed and active in a policy-server, scheduling a change of them (for rules, settings, etc), would not move back to pending and again to active. Since the old instantiated policy is still reachable via the webhook and the old policy-server pod. This can be confusing in UI and for new users.

Acceptance criteria

  • Emit Kubernetes events when policies change the status (to unscheduleded, pending, to active).
  • Consider emitting a specific event when a policy is already active yet is being updated (with new rules, settings, etc).
  • Add integration tests for the events.
@viccuad
Copy link
Member Author

viccuad commented Jan 26, 2024

Having events would help downstream (such as Kubewarden UI) in checking against them, instead of only looking at state. Amelioriating things like rancher/kubewarden-ui#543.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants