Edit an existing mutation policy that constrains pod execution in your clusters.

Prerequisites

Log in to the Tanzu Mission Control console, go to the Policies page and view the mutation policies for the object, as described in View the Policy Assignments for an Object.

Make sure you have the appropriate permissions.
  • To edit the mutation policy for an object, you must be associated with the .admin role for that object.

Procedure

  1. On the Policies page, click the Mutations tab.
  2. Use the tree control to navigate to and select the object whose mutation policy you want to edit.
  3. Click the arrow to expand the list of direct policies applied to the object.
  4. Click menu icon for the policy you want to edit, and then choose Edit.
  5. Make the desired changes to the policy.
    You can add, modify, and remove property mutations and label selectors. But you cannot change the name of the policy or its template.
  6. After you finish editing the policy, click Save.

Results

When you click Save, the updated policy is applied to the object and is displayed on the Policies page. Because a mutation policy assesses and mutates pods only at the time of admission, the policy impacts only new, incoming requests for creating or updating pods. The mutation policy does not impact pods that have already been admitted into the cluster.