Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SetUnstructuredContent (0.2 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor.go

    				// UnstructuredList's implementation of SetUnstructuredContent
    				// produces different objects than those produced by a decode using
    				// UnstructuredJSONScheme:
    				//
    				//   1. SetUnstructuredContent retains the "items" key in the list's
    				//      Object field. It is omitted from Object when decoding with
    				//      UnstructuredJSONScheme.
    				//   2. SetUnstructuredContent does not populate "apiVersion" and
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 14:57:12 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_list.go

    		items[i] = item.UnstructuredContent()
    	}
    	out["items"] = items
    	return out
    }
    
    // SetUnstructuredContent obeys the conventions of List and keeps Items and the items
    // array in sync. If items is not an array of objects in the incoming map, then any
    // mismatched item will be removed.
    func (obj *UnstructuredList) SetUnstructuredContent(content map[string]interface{}) {
    	obj.Object = content
    	if content == nil {
    		obj.Items = nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 28 04:46:35 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/converter.go

    	if err != nil {
    		return err
    	}
    	unstructuredConverted, ok := converted.(runtime.Unstructured)
    	if !ok {
    		// this should not happened
    		return fmt.Errorf("CR conversion failed")
    	}
    	unstructOut.SetUnstructuredContent(unstructuredConverted.UnstructuredContent())
    	return nil
    }
    
    // ConvertToVersion converts in object to the given gvk in place and returns the same `in` object.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top