Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetUnstructuredContent (0.15 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/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