Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for CRDValidationRatcheting (0.36 sec)

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

    				},
    			},
    		},
    	}
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, apiextensionsfeatures.CRDValidationRatcheting, tc.enableRatcheting)
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, apiextensionsfeatures.CustomResourceFieldSelectors, tc.enableSelectableFields)
    			old := tc.oldCRD.DeepCopy()
    
    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/v1/types_jsonschema.go

    	// documentation for Optional types for more information:
    	// https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes
    	//
    	// 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.
    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/v1beta1/types_jsonschema.go

    	// documentation for Optional types for more information:
    	// https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes
    	//
    	// 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.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:21 UTC 2023
    - 24.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go

    			// But if the rule uses optional oldSelf and gate is enabled we allow
    			// the rule to be evaluated
    			if !utilfeature.DefaultFeatureGate.Enabled(features.CRDValidationRatcheting) {
    				continue
    			}
    
    			if !optionalOldSelfRule {
    				continue
    			}
    		}
    
    		ruleActivation := activation
    		if optionalOldSelfRule {
    			ruleActivation = optionalOldSelfActivation
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    	}
    	return "is not a transition rule"
    }
    
    func TestCelCompilation(t *testing.T) {
    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, apiextensionsfeatures.CRDValidationRatcheting, true)
    	cases := []struct {
    		name            string
    		input           schema.Structural
    		expectedResults []validationMatcher
    		unmodified      bool
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  6. pkg/features/kube_features.go

    	// inherited features from apiextensions-apiserver, relisted here to get a conflict if it is changed
    	// unintentionally on either side:
    
    	apiextensionsfeatures.CRDValidationRatcheting: {Default: true, PreRelease: featuregate.Beta},
    
    	apiextensionsfeatures.CustomResourceFieldSelectors: {Default: true, PreRelease: featuregate.Beta},
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 22:51:23 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/generated.proto

      // documentation for Optional types for more information:
      // https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes
      //
      // May not be set unless `oldSelf` is used in `rule`.
      //
      // +featureGate=CRDValidationRatcheting
      // +optional
      optional bool optionalOldSelf = 6;
    }
    
    // WebhookClientConfig contains the information to make a TLS connection with the webhook.
    message WebhookClientConfig {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    // Runs transition rule cases with OptionalOldSelf set to true on the schema
    func TestOptionalOldSelf(t *testing.T) {
    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, apiextensionsfeatures.CRDValidationRatcheting, true)
    
    	tests := []struct {
    		name   string
    		schema *schema.Structural
    		obj    interface{}
    		oldObj interface{}
    		errors []string // strings that error message must contain
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/generated.proto

      // documentation for Optional types for more information:
      // https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes
      //
      // May not be set unless `oldSelf` is used in `rule`.
      //
      // +featureGate=CRDValidationRatcheting
      // +optional
      optional bool optionalOldSelf = 6;
    }
    
    // WebhookClientConfig contains the information to make a TLS connection with the webhook.
    message WebhookClientConfig {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  10. CHANGELOG/CHANGELOG-1.29.md

    `optionalOldSelf` API field in CustomResourceDefinition validation rules, which should only be allowed to be set when the CRDValidationRatcheting feature gate is enabled. Existing CustomResourceDefinition objects which have the field set will retain it on update, but new CustomResourceDefinition objects will not be permitted to set the field while the CRDValidationRatcheting feature gate is disabled. ([#122343](https://github.com/kubernetes/kubernetes/pull/122343), [@jpbetz](https://github.com/jpbetz))...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 03:42:38 UTC 2024
    - 324.5K bytes
    - Viewed (0)
Back to top