rancher / kubewarden-ui

Kubewarden's User Interface
Apache License 2.0
11 stars 13 forks source link

Remove config edit action for policies deployed by fleet #703

Closed jordojordo closed 3 months ago

jordojordo commented 3 months ago

Fix #702 Fix #701

When deploying the kubewarden-defaults charts from Fleet, the action for editing the policy's settings would not account for Fleet deployments. I have added a method on the model to check for the annotation objectset.rio.cattle.io/id as this will be applied to resources when created by Fleet.

As this creates a larger issue with managing resources controlled by Fleet, I decided to simply remove the ability to edit the configuration at the moment, we should revisit this with a more streamlined approach to managing this use case for all resources.

I have also added the "Source" column to the Admission Policy list table and Policy Server detail related policies table.

Cluster Admission Policies deployed with Fleet cap-list-source-actions

Policy Server related policies table ps-detail-source

jordojordo commented 3 months ago

Nice catch, I've moved the method which returns the source to the PolicyModel class so each policy class can use this method.