Is it possible for a controller to own a dynamic type? #922
Replies: 2 comments
-
There's a few options available to you noted in the controller-guide under dynamic typing. Basically, either use |
Beta Was this translation helpful? Give feedback.
-
So there are really two questions involved here.
No! Unknown fields will be ignored, you only need to add the fields you actually care about reading. Just make sure to not apply the generated CRD definition in this case.
Yes! You just need to use the |
Beta Was this translation helpful? Give feedback.
-
i have a controller that updates a third party resource that has a fairly complex spec that I don't really feel like fully implementing, so I did it with a dynamic type, but I'm trying to figure out how to make it own the type and running into this error:
type mismatch resolving
::DynamicType == ()`Do I have to implement every 3rd party struct that I want to own with a controller or is there a way to own a dynamically typed object?
Beta Was this translation helpful? Give feedback.
All reactions