Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for policyrest (0.23 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/audit/v1/types.go

    	OmitManagedFields bool `json:"omitManagedFields,omitempty" protobuf:"varint,4,opt,name=omitManagedFields"`
    }
    
    // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
    
    // PolicyList is a list of audit Policies.
    type PolicyList struct {
    	metav1.TypeMeta `json:",inline"`
    	// +optional
    	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:24:10 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  2. pkg/kubeapiserver/authorizer/reload.go

    	apiServerID string
    
    	reloadInterval         time.Duration
    	requireNonWebhookTypes sets.Set[authzconfig.AuthorizerType]
    
    	nodeAuthorizer *node.NodeAuthorizer
    	rbacAuthorizer *rbac.RBACAuthorizer
    	abacAuthorizer abac.PolicyList
    
    	lastLoadedLock   sync.Mutex
    	lastLoadedConfig *authzconfig.AuthorizationConfiguration
    	lastReadData     []byte
    
    	current atomic.Pointer[authorizerResolver]
    }
    
    type authorizerResolver struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. cmd/sts-handlers_test.go

    	}
    
    	policyResult, err := s.adm.GetLDAPPolicyEntities(ctx, madmin.PolicyEntitiesQuery{
    		Policy: []string{policy},
    	})
    	if err != nil {
    		c.Fatalf("GetLDAPPolicyEntities should not fail: %v", err)
    	}
    	{
    		// Check that the mapping we created exists.
    		idx := slices.IndexFunc(policyResult.PolicyMappings, func(e madmin.PolicyEntities) bool {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 18:45:50 UTC 2024
    - 90K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. pkg/auth/authorizer/abac/abac_test.go

    		if tc.ExpectMatch != actualMatch {
    			t.Errorf("%v: Expected actorMatches=%v but actually got=%v",
    				k, tc.ExpectMatch, actualMatch)
    		}
    	}
    }
    
    func newWithContents(t *testing.T, contents string) (PolicyList, error) {
    	f, err := ioutil.TempFile("", "abac_test")
    	if err != nil {
    		t.Fatalf("unexpected error creating policyfile: %v", err)
    	}
    	f.Close()
    	defer os.Remove(f.Name())
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 40K bytes
    - Viewed (0)
  7. pkg/apis/core/validation/validation_test.go

    	type T struct {
    		PolicyList       []core.ContainerResizePolicy
    		ExpectError      bool
    		Errors           field.ErrorList
    		PodRestartPolicy core.RestartPolicy
    	}
    
    	testCases := map[string]T{
    		"ValidCPUandMemoryPolicies": {
    			PolicyList: []core.ContainerResizePolicy{
    				{ResourceName: "cpu", RestartPolicy: "NotRequired"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  8. pkg/apis/core/validation/validation.go

    func validateResizePolicy(policyList []core.ContainerResizePolicy, fldPath *field.Path, podRestartPolicy *core.RestartPolicy) field.ErrorList {
    	allErrors := field.ErrorList{}
    
    	// validate that resource name is not repeated, supported resource names and policy values are specified
    	resources := make(map[core.ResourceName]bool)
    	for i, p := range policyList {
    		if _, found := resources[p.ResourceName]; found {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  9. pkg/generated/openapi/zz_generated.openapi.go

    		"k8s.io/apiserver/pkg/apis/audit/v1.Policy":                                                             schema_pkg_apis_audit_v1_Policy(ref),
    		"k8s.io/apiserver/pkg/apis/audit/v1.PolicyList":                                                         schema_pkg_apis_audit_v1_PolicyList(ref),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3M bytes
    - Viewed (0)
Back to top