Skip to content

Conversation

@geyslan
Copy link
Member

@geyslan geyslan commented Jul 1, 2024

1. Explain what the PR does

93aaaf9 chore: tidy up policy manager and related code
857d8ed chore(policy): change manager mutex type to rw
209a44f chore: move policy manager into policy pkg

9341d35 chore: tidy up policy manager and related code

- Remove Snapshot() use. In the future it could be managed by the policy
  manager itself.
- After PolicyManager initialization (first stages), Policies are not
  accessed directly anymore, but through the PolicyManager.
- t.config.Policies is now only transient and used for PolicyManager
  initialization.
- Policy version is deprecated and to be removed soon.

209a44f chore: move policy manager into policy pkg

Place PolicyManager in its proper home, the policy package.

2. Explain how to test it

3. Other comments

@geyslan
Copy link
Member Author

geyslan commented Jul 1, 2024

This encompasses #4163.

- Remove Snapshot() use. In the future it could be managed by the policy
  manager itself.
- After PolicyManager initialization (first stages), Policies are not
  accessed directly anymore, but through the PolicyManager.
- t.config.Policies is now only transient and used for PolicyManager
  initialization.
- Policy version is deprecated and to be removed soon.
@geyslan geyslan force-pushed the tidy-policy-manager branch from 9341d35 to 93aaaf9 Compare July 1, 2024 20:29
@geyslan geyslan marked this pull request as ready for review July 1, 2024 20:29
Copy link
Collaborator

@yanivagman yanivagman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@geyslan geyslan merged commit dba1a42 into aquasecurity:main Jul 2, 2024
@geyslan geyslan deleted the tidy-policy-manager branch February 19, 2025 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants