Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for optionalOldSelf (0.32 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/strategy_test.go

    			name:             "Ratcheting, For creation, FG disabled, no OptionalOldSelf, no field drop",
    			enableRatcheting: false,
    			crd:              &apiextensions.CustomResourceDefinition{},
    			oldCRD:           nil,
    			expectedCRD:      &apiextensions.CustomResourceDefinition{},
    		},
    		{
    			name:             "Ratcheting, For creation, FG disabled, set OptionalOldSelf, drop OptionalOldSelf",
    			enableRatcheting: false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/types_jsonschema.go

    	//
    	// May not be set unless `oldSelf` is used in `rule`.
    	//
    	// +featureGate=CRDValidationRatcheting
    	// +optional
    	OptionalOldSelf *bool `json:"optionalOldSelf,omitempty" protobuf:"bytes,6,opt,name=optionalOldSelf"`
    }
    
    // JSON represents any valid JSON value.
    // These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.
    type JSON struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:21 UTC 2023
    - 24.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/types_jsonschema.go

    	// `transition rule`.
    	//
    	// By default, the `oldSelf` variable is the same type as `self`.
    	// When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional
    	//  variable whose value() is the same type as `self`.
    	// See the documentation for the `optionalOldSelf` field for details.
    	//
    	// Transition rules by default are applied only on UPDATE requests and are
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 22:23:23 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_jsonschema.go

    	//
    	// May not be set unless `oldSelf` is used in `rule`.
    	//
    	// +featureGate=CRDValidationRatcheting
    	// +optional
    	OptionalOldSelf *bool `json:"optionalOldSelf,omitempty" protobuf:"bytes,6,opt,name=optionalOldSelf"`
    }
    
    // JSON represents any valid JSON value.
    // These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.
    type JSON struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:21 UTC 2023
    - 24.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/strategy.go

    		dropSelectableFields(&newCRD.Spec)
    	}
    }
    
    // dropOptionalOldSelfField drops field optionalOldSelf from CRD schema
    func dropOptionalOldSelfField(schema *apiextensions.JSONSchemaProps) {
    	if schema == nil {
    		return
    	}
    	for i := range schema.XValidations {
    		schema.XValidations[i].OptionalOldSelf = nil
    	}
    
    	if schema.AdditionalProperties != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/zz_generated.deepcopy.go

    	*out = *in
    	if in.Reason != nil {
    		in, out := &in.Reason, &out.Reason
    		*out = new(FieldValueErrorReason)
    		**out = **in
    	}
    	if in.OptionalOldSelf != nil {
    		in, out := &in.OptionalOldSelf, &out.OptionalOldSelf
    		*out = new(bool)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidationRule.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/zz_generated.deepcopy.go

    	*out = *in
    	if in.Reason != nil {
    		in, out := &in.Reason, &out.Reason
    		*out = new(FieldValueErrorReason)
    		**out = **in
    	}
    	if in.OptionalOldSelf != nil {
    		in, out := &in.OptionalOldSelf, &out.OptionalOldSelf
    		*out = new(bool)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidationRule.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go

    	compResults := make([]CompilationResult, len(celRules))
    	maxCardinality := maxCardinality(declType.MinSerializedSize)
    	for i, rule := range celRules {
    		ruleEnvSet := oldSelfEnvSet
    		if rule.OptionalOldSelf != nil && *rule.OptionalOldSelf {
    			ruleEnvSet = optionalOldSelfEnvSet
    		}
    		compResults[i] = compileRule(s, rule, ruleEnvSet, envLoader, estimator, maxCardinality, perCallLimit)
    	}
    
    	return compResults, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/generated.proto

      // `transition rule`.
      //
      // By default, the `oldSelf` variable is the same type as `self`.
      // When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional
      //  variable whose value() is the same type as `self`.
      // See the documentation for the `optionalOldSelf` field for details.
      //
      // Transition rules by default are applied only on UPDATE requests and are
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/zz_generated.deepcopy.go

    	*out = *in
    	if in.Reason != nil {
    		in, out := &in.Reason, &out.Reason
    		*out = new(FieldValueErrorReason)
    		**out = **in
    	}
    	if in.OptionalOldSelf != nil {
    		in, out := &in.OptionalOldSelf, &out.OptionalOldSelf
    		*out = new(bool)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidationRule.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top