Skip to content

deserializing into a runtime.RawExtension should fill in the Object if the type is known #67

@pwittrock

Description

@pwittrock

RawExtension.Object should get either the go struct or an unstructured.Unstructured object from the client.

Steps to reproduce:

  • Create a Resource with RawExtension field
    • RawExtension accepts any runtime.Object
  • Create an instance of the Resource with a Deployment for the field
  • In the Controller, read object and using the client into an unstructured.Unstructured object
  • The unstructured should have Object populated with a Deployment, but it is nil.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.priority/backlogHigher priority than priority/awaiting-more-evidence.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions