Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for unstructured (0.3 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    			Validations: []admissionregistrationv1.Validation{
    				{
    					Expression: "messageId for deny policy",
    				},
    			},
    		},
    	}
    
    	fakeParams *unstructured.Unstructured = &unstructured.Unstructured{
    		Object: map[string]interface{}{
    			"apiVersion": paramsGVK.GroupVersion().String(),
    			"kind":       paramsGVK.Kind,
    			"metadata": map[string]interface{}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 01:39:01 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/test/integration/validation_test.go

    	tests := []struct {
    		name          string
    		instanceFn    func() *unstructured.Unstructured
    		expectedError string
    	}{
    		{
    			name: "bad version",
    			instanceFn: func() *unstructured.Unstructured {
    				instance := fixtures.NewVersionedNoxuInstance(ns, "foo", "v2")
    				return instance
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 26 20:48:36 UTC 2021
    - 63.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    	)
    
    	return func(new, old *unstructured.Unstructured) {
    		_ = strategy.ValidateUpdate(context.TODO(), new, old)
    	}, nil
    }
    
    // Recursively walks the provided directory and parses the YAML files into
    // unstructured objects. If there are more than one object in a single file,
    // they are all added to the returned slice.
    func loadObjects(dir string) []*unstructured.Unstructured {
    	result := []*unstructured.Unstructured{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go

    }
    
    func (v *unstructuredSchemaCoercer) apply(u *unstructured.Unstructured) (unknownFieldPaths []string, err error) {
    	// save implicit meta fields that don't have to be specified in the validation spec
    	kind, foundKind, err := unstructured.NestedString(u.UnstructuredContent(), "kind")
    	if err != nil {
    		return nil, err
    	}
    	apiVersion, foundApiVersion, err := unstructured.NestedString(u.UnstructuredContent(), "apiVersion")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	// An underlying storage.Interface.
    	Storage storage.Interface
    
    	// An underlying storage.Versioner.
    	Versioner storage.Versioner
    
    	// The GroupResource the cacher is caching. Used for disambiguating *unstructured.Unstructured (CRDs) in logging
    	// and metrics.
    	GroupResource schema.GroupResource
    
    	// The Cache will be caching objects of a given Type and assumes that they
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go

    	// Because custom resources are decoded as Unstructured and because we're missing the metadata about how to handle
    	// each field in a strategic merge patch, we can't find the go struct tags. Hence, we can't easily  do a strategic merge
    	// for custom resources. So we should fail fast and return an error.
    	if _, ok := dataStruct.(*unstructured.Unstructured); ok {
    		return nil, mergepatch.ErrUnsupportedStrategicMergePatchFormat
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 23:34:23 UTC 2023
    - 75.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/testdata/swagger.json

          "type": "object",
          "properties": {
            "annotations": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 18:37:59 UTC 2023
    - 55.4K bytes
    - Viewed (0)
  8. api/openapi-spec/v3/apis__authorization.k8s.io__v1_openapi.json

    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:26 UTC 2023
    - 66.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

    		func() (meta.RESTMapper, error) {
    			return testrestmapper.TestOnlyStaticRESTMapper(scheme.Scheme), nil
    		},
    		func() (restmapper.CategoryExpander, error) {
    			return FakeCategoryExpander, nil
    		}).
    		Unstructured()
    }
    
    type errorRestMapper struct {
    	meta.RESTMapper
    	err error
    }
    
    func (l *errorRestMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error) {
    	return nil, l.err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 11:58:41 UTC 2023
    - 56.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types_swagger_doc_generated.go

    	"annotations":                "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/wor...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 18:37:59 UTC 2023
    - 49.2K bytes
    - Viewed (0)
Back to top