Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 129 for newobject (0.22 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/errors.go

    	resource = a.GetResource().GroupResource()
    
    	if len(a.GetName()) > 0 {
    		return a.GetName(), resource, nil
    	}
    
    	name = "Unknown"
    	obj := a.GetObject()
    	if obj != nil {
    		accessor, err := meta.Accessor(obj)
    		if err != nil {
    			// not all object have ObjectMeta.  If we don't, return a name with a slash (always illegal)
    			return "Unknown/errorGettingName", resource, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 26 19:40:51 UTC 2017
    - 2.3K bytes
    - Viewed (0)
  2. pkg/controller/clusterroleaggregation/clusterroleaggregation_controller_test.go

    					if !ok {
    						t.Fatalf("unexpected action %#v", action)
    					}
    					if !equality.Semantic.DeepEqual(updateAction.GetObject().(*rbacv1.ClusterRole), test.expectedClusterRole) {
    						t.Fatalf("%v", cmp.Diff(test.expectedClusterRole, updateAction.GetObject().(*rbacv1.ClusterRole)))
    					}
    				}
    			})
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/openapi/extensions.go

    	return v.MessageExpressionField
    }
    
    // TODO: simplify
    func getXValidations(schema *spec.Schema) []common.ValidationRule {
    	var rules []ValidationRule
    	err := schema.Extensions.GetObject(extValidations, &rules)
    	if err != nil {
    		return nil
    	}
    	results := make([]common.ValidationRule, len(rules))
    	for i, rule := range rules {
    		results[i] = rule
    	}
    	return results
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 10 21:26:55 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. pkg/kubelet/util/manager/manager.go

    // objects referenced by pods in the underlying cache and
    // extracting those from that cache if needed.
    type Manager interface {
    	// Get object by its namespace and name.
    	GetObject(namespace, name string) (runtime.Object, error)
    
    	// WARNING: Register/UnregisterPod functions should be efficient,
    	// i.e. should not block on network operations.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 02:22:52 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/defaultbinder/default_binder_test.go

    				if action.GetSubresource() != "binding" {
    					return false, nil, nil
    				}
    				if tt.injectErr != nil {
    					return true, nil, tt.injectErr
    				}
    				gotBinding = action.(clienttesting.CreateAction).GetObject().(*v1.Binding)
    				return true, gotBinding, nil
    			})
    
    			fh, err := frameworkruntime.NewFramework(ctx, nil, nil, frameworkruntime.WithClientSet(client))
    			if err != nil {
    				t.Fatal(err)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 23 02:17:34 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/openapi/resolver/discovery.go

    	}
    	return s, nil
    }
    
    func resolveRef(resp *schemaResponse, gvk schema.GroupVersionKind) (string, error) {
    	for ref, s := range resp.Components.Schemas {
    		var gvks []schema.GroupVersionKind
    		err := s.Extensions.GetObject(extGVK, &gvks)
    		if err != nil {
    			return "", err
    		}
    		for _, g := range gvks {
    			if g == gvk {
    				return ref, nil
    			}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 17:23:50 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  7. maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/VersionsMetadataGenerator.java

            versions = new LinkedHashMap<>();
            processedVersions = new LinkedHashMap<>();
            timestamp = (Date) ConfigUtils.getObject(session, new Date(), "maven.startTime");
    
            /*
             * NOTE: This should be considered a quirk to support interop with Maven's legacy ArtifactDeployer which
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Sep 05 19:50:10 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. fess-crawler-es/src/main/java/org/codelibs/fess/crawler/entity/EsAccessResult.java

            }
            if (accessResultData instanceof ToXContent) {
                builder.field(ACCESS_RESULT_DATA);
                ((ToXContent) accessResultData).toXContent(builder, params);
            }
            builder.endObject();
            return builder;
        }
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/admission.go

    	mutationInterface, isMutationInterface := admit.wrap.(admission.MutationInterface)
    	if !isMutationInterface {
    		return nil
    	}
    	objectMeta, err := meta.Accessor(a.GetObject())
    	if err != nil {
    		// the object we are dealing with doesn't have object metadata defined
    		// in that case we don't have to keep track of the managedField
    		// just call the wrapped admission
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. plugin/pkg/admission/antiaffinity/admission.go

    	// Ignore all calls to subresources or resources other than pods.
    	if len(attributes.GetSubresource()) != 0 || attributes.GetResource().GroupResource() != api.Resource("pods") {
    		return nil
    	}
    	pod, ok := attributes.GetObject().(*api.Pod)
    	if !ok {
    		return apierrors.NewBadRequest("Resource was marked with kind Pod but was unable to be converted")
    	}
    	affinity := pod.Spec.Affinity
    	if affinity != nil && affinity.PodAntiAffinity != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 20 15:11:00 UTC 2019
    - 3.1K bytes
    - Viewed (0)
Back to top