Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for openapi_v2 (0.18 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/testing/openapi.go

    package testing
    
    import (
    	"os"
    	"sync"
    
    	openapi_v2 "github.com/google/gnostic-models/openapiv2"
    	openapi "k8s.io/kube-openapi/pkg/util/proto"
    )
    
    // Fake opens and returns a openapi swagger from a file Path. It will
    // parse only once and then return the same copy everytime.
    type Fake struct {
    	Path string
    
    	once     sync.Once
    	document *openapi_v2.Document
    	err      error
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/openapi/proto.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package openapi
    
    import (
    	"encoding/json"
    
    	openapi_v2 "github.com/google/gnostic-models/openapiv2"
    
    	"k8s.io/kube-openapi/pkg/util/proto"
    	"k8s.io/kube-openapi/pkg/validation/spec"
    )
    
    // ToProtoModels builds the proto formatted models from OpenAPI spec
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/cli-runtime/pkg/resource/query_param_verifier_test.go

    	if err == nil {
    		t.Fatalf("List does not support fieldValidation, yet no error found")
    	}
    }
    
    type EmptyOpenAPI struct{}
    
    func (EmptyOpenAPI) OpenAPISchema() (*openapi_v2.Document, error) {
    	return &openapi_v2.Document{}, nil
    }
    
    func TestFieldValidationVerifierNoOpenAPI(t *testing.T) {
    	fieldValidationVerifier := QueryParamVerifier{
    		finder: NewCRDFinder(func() ([]schema.GroupKind, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 01:23:27 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/cli-runtime/pkg/resource/query_param_verifier.go

    // specific group-version-kind supports the specific query parameter for
    // the PATCH end-point.
    func supportsQueryParam(doc *openapi_v2.Document, gvk schema.GroupVersionKind, queryParam VerifiableQueryParam) (bool, error) {
    	globalParams := map[string]*openapi_v2.NamedParameter{}
    	for _, p := range doc.GetParameters().GetAdditionalProperties() {
    		globalParams["#/parameters/"+p.GetName()] = p
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 01:23:27 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  5. 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)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion_test.go

    limitations under the License.
    */
    
    package v2
    
    import (
    	"encoding/json"
    	"fmt"
    	"math"
    	"math/rand"
    	"reflect"
    	"testing"
    	"time"
    
    	openapi_v2 "github.com/google/gnostic-models/openapiv2"
    	"github.com/google/go-cmp/cmp"
    	fuzz "github.com/google/gofuzz"
    	"gopkg.in/yaml.v2"
    
    	"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/testing/openapi3.go

    		_, err := os.Stat(f.Path)
    		if err != nil {
    			panic(err)
    		}
    		spec, err := os.ReadFile(f.Path)
    		if err != nil {
    			panic(err)
    		}
    
    		err = f.openapiv3.UnmarshalJSON(spec)
    		if err != nil {
    			panic(err)
    		}
    	})
    	return &f.openapiv3
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 16:45:45 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapiv3/util.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 (
    	"k8s.io/apimachinery/pkg/runtime/schema"
    )
    
    func groupVersionToOpenAPIV3Path(gv schema.GroupVersion) string {
    	return "apis/" + gv.Group + "/" + gv.Version
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 17 01:38:54 UTC 2021
    - 758 bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapiv3/metrics.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 (
    	"k8s.io/component-base/metrics"
    	"k8s.io/component-base/metrics/legacyregistry"
    )
    
    var (
    	regenerationCounter = metrics.NewCounterVec(
    		&metrics.CounterOpts{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 29 22:10:50 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/managedfields/typeconverter.go

    // included).
    func NewDeducedTypeConverter() TypeConverter {
    	return internal.NewDeducedTypeConverter()
    }
    
    // NewTypeConverter builds a TypeConverter from a map of OpenAPIV3 schemas.
    // This will automatically find the proper version of the object, and the
    // corresponding schema information.
    // The keys to the map must be consistent with the names
    // used by Refs within the schemas.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top