Skip to content

Conversation

@huntergregory
Copy link
Contributor

When removing a policy during updatePod(), the policy should not be removed from the cache. This would cause the policy to not be found when deleting the policy.

This PR also fixes the prometheus ACL metric for windows.

@huntergregory huntergregory added the npm Related to NPM. label Sep 1, 2022
@huntergregory huntergregory requested a review from a team as a code owner September 1, 2022 07:52
@huntergregory huntergregory requested review from vakalapa and removed request for a team September 1, 2022 07:52
@huntergregory huntergregory force-pushed the win-npm-remove-policy-fix branch from f30987c to 280e232 Compare September 1, 2022 08:04

// RemovePolicyForEndpoints is identical to RemovePolicy except it will not remove the policy from the cache.
// This function is intended for Windows only.
func (pMgr *PolicyManager) RemovePolicyForEndpoints(policyKey string, endpointList map[string]string) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this function being used ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

forgot to commit. updated

@huntergregory huntergregory force-pushed the win-npm-remove-policy-fix branch from 00605db to 9f41e4d Compare September 6, 2022 21:06
@huntergregory huntergregory force-pushed the win-npm-remove-policy-fix branch from f62654b to 4c821b1 Compare September 7, 2022 04:46
@vakalapa vakalapa merged commit 025ec53 into master Sep 7, 2022
@vakalapa vakalapa deleted the win-npm-remove-policy-fix branch September 7, 2022 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

npm Related to NPM.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants