Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for unionStages (0.09 sec)

  1. staging/src/k8s.io/apiserver/pkg/audit/policy/checker.go

    func NewPolicyRuleEvaluator(policy *audit.Policy) auditinternal.PolicyRuleEvaluator {
    	for i, rule := range policy.Rules {
    		policy.Rules[i].OmitStages = unionStages(policy.OmitStages, rule.OmitStages)
    	}
    	return &policyRuleEvaluator{*policy}
    }
    
    func unionStages(stageLists ...[]audit.Stage) []audit.Stage {
    	m := make(map[audit.Stage]bool)
    	for _, sl := range stageLists {
    		for _, s := range sl {
    			m[s] = true
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 02 22:24:14 UTC 2022
    - 6.1K bytes
    - Viewed (0)
Back to top