Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for policyCnt (0.15 sec)

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

    	}
    
    	if err := validation.ValidatePolicy(policy); err != nil {
    		return nil, err.ToAggregate()
    	}
    
    	policyCnt := len(policy.Rules)
    	if policyCnt == 0 {
    		return nil, fmt.Errorf("loaded illegal policy with 0 rules")
    	}
    
    	klog.V(4).InfoS("Load audit policy rules success", "policyCnt", policyCnt)
    	return policy, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 04:09:40 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/policy_options_test.go

    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, pkgfeatures.CPUManagerPolicyAlphaOptions, true)
    			policyOpt, _ := NewStaticPolicyOptions(testCase.policyOption)
    			err := ValidateStaticPolicyOptions(policyOpt, testCase.topology, topoMgrStore)
    			gotError := (err != nil)
    			if gotError != testCase.expectedErr {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    	for _, policy := range strings.Split(mp.Policies, ",") {
    		if strings.TrimSpace(policy) == "" {
    			continue
    		}
    		policies = append(policies, policy)
    	}
    	return policies
    }
    
    func (mp MappedPolicy) policySet() set.StringSet {
    	return set.CreateStringSet(mp.toSlice()...)
    }
    
    func newMappedPolicy(policy string) MappedPolicy {
    	return MappedPolicy{Version: 1, Policies: policy, UpdatedAt: UTCNow()}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/cpumanager/topology_hints_test.go

    					pod.Spec.Containers = append(pod.Spec.Containers, container)
    				}
    				activePods = append(activePods, &pod)
    			}
    			policyOpt, _ := NewStaticPolicyOptions(testCase.policyOptions)
    			m := manager{
    				policy: &staticPolicy{
    					topology: testCase.topology,
    					options:  policyOpt,
    				},
    				state: &mockState{
    					assignments:   testCase.assignments,
    					defaultCPUSet: testCase.defaultCPUSet,
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. cmd/iam.go

    	// running server by creating the policies after start up.
    	for arn, rolePolicies := range m {
    		specifiedPoliciesSet := newMappedPolicy(rolePolicies).policySet()
    		validPolicies, _ := sys.store.FilterPolicies(rolePolicies, "")
    		knownPoliciesSet := newMappedPolicy(validPolicies).policySet()
    		unknownPoliciesSet := specifiedPoliciesSet.Difference(knownPoliciesSet)
    		if len(unknownPoliciesSet) > 0 {
    			authz := newGlobalAuthZPluginFn()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  6. cmd/sts-handlers.go

    		// JWT. This is a MinIO STS API specific value, this value
    		// should be set and configured on your identity provider as
    		// part of JWT custom claims.
    		policySet, ok := policy.GetPoliciesFromClaims(claims, iamPolicyClaimNameOpenID())
    		policies := strings.Join(policySet.ToSlice(), ",")
    		if ok {
    			policyName = globalIAMSys.CurrentPolicies(policies)
    		}
    
    		if newGlobalAuthZPluginFn() == nil {
    			if !ok {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  7. cmd/admin-handlers-users.go

    		if err != nil {
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    			return
    		}
    		if len(policiesNames) == 0 {
    			policySet, _ := args.GetPolicies(iamPolicyClaimNameOpenID())
    			policiesNames = policySet.ToSlice()
    		}
    
    		stsAccountPolicy = globalIAMSys.GetCombinedPolicy(policiesNames...)
    	}
    
    	policyJSON, err := json.MarshalIndent(stsAccountPolicy, "", " ")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 28 17:19:04 UTC 2024
    - 78.6K bytes
    - Viewed (0)
Back to top