Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for openapi_v2 (0.44 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/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)
  6. 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)
  7. 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)
  8. 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)
  9. staging/src/k8s.io/apiserver/pkg/cel/openapi/resolver/discovery.go

    }
    
    var _ SchemaResolver = (*ClientDiscoveryResolver)(nil)
    
    func (r *ClientDiscoveryResolver) ResolveSchema(gvk schema.GroupVersionKind) (*spec.Schema, error) {
    	p, err := r.Discovery.OpenAPIV3().Paths()
    	if err != nil {
    		return nil, err
    	}
    	resourcePath := resourcePathFromGV(gvk.GroupVersion())
    	c, ok := p[resourcePath]
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 17:23:50 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  10. 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)
Back to top