Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 121 for flowschema (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/apihelpers/helpers.go

    )
    
    // SetFlowSchemaCondition sets conditions.
    func SetFlowSchemaCondition(flowSchema *flowcontrol.FlowSchema, newCondition flowcontrol.FlowSchemaCondition) {
    	existingCondition := GetFlowSchemaConditionByType(flowSchema, newCondition.Type)
    	if existingCondition == nil {
    		flowSchema.Status.Conditions = append(flowSchema.Status.Conditions, newCondition)
    		return
    	}
    
    	if existingCondition.Status != newCondition.Status {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. api/discovery/apis__flowcontrol.apiserver.k8s.io__v1beta3.json

    {
      "apiVersion": "v1",
      "groupVersion": "flowcontrol.apiserver.k8s.io/v1beta3",
      "kind": "APIResourceList",
      "resources": [
        {
          "kind": "FlowSchema",
          "name": "flowschemas",
          "namespaced": false,
          "singularName": "flowschema",
          "storageVersionHash": "GJVAJZSZBIw=",
          "verbs": [
            "create",
            "delete",
            "deletecollection",
            "get",
            "list",
            "patch",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 25 06:24:50 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. api/discovery/apis__flowcontrol.apiserver.k8s.io__v1.json

    {
      "apiVersion": "v1",
      "groupVersion": "flowcontrol.apiserver.k8s.io/v1",
      "kind": "APIResourceList",
      "resources": [
        {
          "kind": "FlowSchema",
          "name": "flowschemas",
          "namespaced": false,
          "singularName": "flowschema",
          "storageVersionHash": "GJVAJZSZBIw=",
          "verbs": [
            "create",
            "delete",
            "deletecollection",
            "get",
            "list",
            "patch",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 25 06:24:50 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. pkg/registry/flowcontrol/flowschema/strategy.go

    	fl := obj.(*flowcontrol.FlowSchema)
    	fl.Status = flowcontrol.FlowSchemaStatus{}
    	fl.Generation = 1
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (flowSchemaStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newFlowSchema := obj.(*flowcontrol.FlowSchema)
    	oldFlowSchema := old.(*flowcontrol.FlowSchema)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 11:48:22 UTC 2023
    - 6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_controller.go

    				// and nothing more needs to be done here.
    				klog.V(5).Infof("%s at %s: attempted update of concurrently deleted FlowSchema %s; nothing more needs to be done", cfgCtlr.name, cfgCtlr.clock.Now().Format(timeFmt), fsu.flowSchema.Name)
    			} else {
    				errs = append(errs, fmt.Errorf("failed to set a status.condition for FlowSchema %s: %w", fsu.flowSchema.Name, err))
    			}
    		}
    	}
    	cfgCtlr.addUpdateResult(currResult)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 48.8K bytes
    - Viewed (0)
  6. pkg/apis/flowcontrol/validation/validation_test.go

    				NonResourceURLs: []string{"/"},
    			}},
    		}},
    	}
    	testCases := []struct {
    		name           string
    		flowSchema     *flowcontrol.FlowSchema
    		expectedErrors field.ErrorList
    	}{{
    		name: "missing both resource and non-resource policy-rule should fail",
    		flowSchema: &flowcontrol.FlowSchema{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: "system-foo",
    			},
    			Spec: flowcontrol.FlowSchemaSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 54.7K bytes
    - Viewed (0)
  7. pkg/apis/flowcontrol/internalbootstrap/defaults_test.go

    	bootstrapFlowSchemas := make([]*flowcontrol.FlowSchema, 0)
    	bootstrapFlowSchemas = append(bootstrapFlowSchemas, bootstrap.MandatoryFlowSchemas...)
    	bootstrapFlowSchemas = append(bootstrapFlowSchemas, bootstrap.SuggestedFlowSchemas...)
    	for _, original := range bootstrapFlowSchemas {
    		t.Run(fmt.Sprintf("FlowSchema/%s", original.Name), func(t *testing.T) {
    			defaulted := original.DeepCopyObject().(*flowcontrol.FlowSchema)
    			scheme.Default(defaulted)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  8. pkg/apis/flowcontrol/internalbootstrap/default-internal.go

    	scheme := runtime.NewScheme()
    	install.Install(scheme)
    	return scheme
    }
    
    func internalizeFSes(exts []*flowcontrolv1.FlowSchema) map[string]*flowcontrol.FlowSchema {
    	ans := make(map[string]*flowcontrol.FlowSchema, len(exts))
    	scheme := NewAPFScheme()
    	for _, ext := range exts {
    		var untyped flowcontrol.FlowSchema
    		if err := scheme.Convert(ext, &untyped, nil); err != nil {
    			panic(err)
    		}
    		ans[ext.Name] = &untyped
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/flowcontrol/v1beta3/generated.proto

      // Required.
      optional string type = 1;
    }
    
    // FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with
    // similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher".
    message FlowSchema {
      // `metadata` is the standard object's metadata.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/controller_test.go

    	newFTRs = map[string]*fsTestingRecord{}
    	catchAlls = map[bool]*flowcontrol.FlowSchema{
    		false: fcboot.MandatoryFlowSchemaCatchAll,
    		true:  fcboot.MandatoryFlowSchemaCatchAll}
    	newFSMap = map[string]*flowcontrol.FlowSchema{}
    	add := func(ftr *fsTestingRecord) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 18.4K bytes
    - Viewed (0)
Back to top