Convert <K: Resource> to DynamicObject? #710
Unanswered
danrspencer
asked this question in
Q&A
Replies: 1 comment 7 replies
-
There is a function |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a command dispatcher for our Kubernetes stuff and I'm looking at using DynamicObject to store the resource on a command in a type agnostic way, e.g.
Which means that in my command dispatcher I'm not coupled to a specific resource:
Is there a good way to convert from
<K: Resource>
toDynamicObject
? I've got the conversion working via a hacky (excuse the lack of error handling) function that seems to work, but am I missing a built in way to do this?Beta Was this translation helpful? Give feedback.
All reactions