Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newCustomResource (0.14 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/status_strategy.go

    	*newCustomResourceObject = *oldCustomResourceObject.DeepCopy()
    
    	// set status
    	newCustomResourceObject.SetManagedFields(managedFields)
    	newCustomResource = newCustomResourceObject.UnstructuredContent()
    	if ok {
    		newCustomResource["status"] = status
    	} else {
    		delete(newCustomResource, "status")
    	}
    }
    
    // ValidateUpdate is the default update validation for an end user updating status.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 22:16:10 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go

    	oldCustomResourceObject := old.(*unstructured.Unstructured)
    
    	newCustomResource := newCustomResourceObject.UnstructuredContent()
    	oldCustomResource := oldCustomResourceObject.UnstructuredContent()
    
    	// If the /status subresource endpoint is installed, update is not allowed to set status.
    	if a.status != nil {
    		_, ok1 := newCustomResource["status"]
    		_, ok2 := oldCustomResource["status"]
    		switch {
    		case ok2:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 21:22:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top