Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for openapi_v2 (0.13 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/test/integration/fieldselector_test.go

    limitations under the License.
    */
    
    package integration_test
    
    import (
    	"context"
    	"encoding/json"
    	"fmt"
    	"net/http"
    	"reflect"
    	"sync"
    	"testing"
    	"time"
    
    	openapi_v2 "github.com/google/gnostic-models/openapiv2"
    	"sigs.k8s.io/yaml"
    
    	apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
    	clientset "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:53:03 UTC 2024
    - 27K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go

    	apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
    	"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation"
    	structuralschema "k8s.io/apiextensions-apiserver/pkg/apiserver/schema"
    	openapiv2 "k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2"
    	generatedopenapi "k8s.io/apiextensions-apiserver/pkg/generated/openapi"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapiv3/controller.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package openapiv3
    
    import (
    	"fmt"
    	"reflect"
    	"sync"
    	"time"
    
    	apiextensionsfeatures "k8s.io/apiextensions-apiserver/pkg/features"
    	"k8s.io/apimachinery/pkg/api/errors"
    	"k8s.io/apimachinery/pkg/labels"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas_test.go

    				},
    				ValueValidation: &schema.ValueValidation{
    					MaxLength: maxPtr(20),
    				},
    			},
    			// manually set by MaxLength, but we expect a 4x multiplier compared to the original input
    			// since OpenAPIv3 maxLength uses code points, but DeclType works with bytes
    			ExpectedMaxElements: 80,
    		},
    		{
    			Name: "mapWithLength",
    			InputSchema: &schema.Structural{
    				Generic: schema.Generic{
    					Type: "object",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 14K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go

    	MaxCost uint64
    	// MaxCardinality represents the worse case number of times this validation rule could be invoked if contained under an
    	// unbounded map or list in an OpenAPIv3 schema.
    	MaxCardinality uint64
    	// MessageExpression represents the cel Program that should be evaluated to generate an error message if the rule
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go

    	return apiserverstorage.SelectionPredicate{
    		Label:    label,
    		Field:    field,
    		GetAttrs: a.GetAttrs,
    	}
    }
    
    // OpenAPIv3 type/maxLength/maxItems/MaxProperties/required/enum violation/wrong type field validation failures are viewed as blocking err for CEL validation
    func hasBlockingErr(errs field.ErrorList) (bool, *field.Error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 21:22:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder_test.go

    	"k8s.io/utils/ptr"
    )
    
    func TestNewBuilder(t *testing.T) {
    	tests := []struct {
    		name string
    
    		schema string
    
    		wantedSchema      string
    		wantedItemsSchema string
    
    		v2 bool // produce OpenAPIv2
    	}{
    		{
    			"nil",
    			"",
    			`{"type":"object","x-kubernetes-group-version-kind":[{"group":"bar.k8s.io","kind":"Foo","version":"v1"}]}`, `{"$ref":"#/definitions/io.k8s.bar.v1.Foo"}`,
    			true,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  8. cluster/gce/config-default.sh

    # List of the set of feature gates recognized by the GCP CCM
    export CCM_FEATURE_GATES="APIPriorityAndFairness,APIResponseCompression,APIServerIdentity,APIServerTracing,AllAlpha,AllBeta,CustomResourceValidationExpressions,KMSv2,OpenAPIEnums,OpenAPIV3,ServerSideFieldValidation,StorageVersionAPI,StorageVersionHash"
    
    # Optional: set feature gates
    # shellcheck disable=SC2034 # Variables sourced in other scripts.
    FEATURE_GATES="${KUBE_FEATURE_GATES:-}"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 20:16:32 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/library/cost.go

    	if params := list.Type().Parameters(); len(params) > 0 {
    		lt := params[0]
    		nodePath := list.Path()
    		if nodePath != nil {
    			// Provide path if we have it so that a OpenAPIv3 maxLength validation can be looked up, if it exists
    			// for this node.
    			path := make([]string, len(nodePath)+1)
    			copy(path, nodePath)
    			path[len(nodePath)] = "@items"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  10. cluster/gce/config-test.sh

    # List of the set of feature gates recognized by the GCP CCM
    export CCM_FEATURE_GATES="APIPriorityAndFairness,APIResponseCompression,APIServerIdentity,APIServerTracing,AllAlpha,AllBeta,CustomResourceValidationExpressions,KMSv2,OpenAPIEnums,OpenAPIV3,ServerSideFieldValidation,StorageVersionAPI,StorageVersionHash"
    
    # Optional: Install cluster DNS.
    # Set CLUSTER_DNS_CORE_DNS to 'false' to install kube-dns instead of CoreDNS.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 17:20:24 UTC 2024
    - 29.8K bytes
    - Viewed (0)
Back to top