-
Notifications
You must be signed in to change notification settings - Fork 94
CLOUDP-316083: Add Unified State Machine support libraries #2359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
if u, ok := clientObj.(*unstructured.Unstructured); ok { | ||
u.SetGroupVersionKind(r.unstructuredGVK) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
q: Why do you need this check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This came straight from the PoC using unstructured CRDs, I believe we do not need it for our controllers, but...
Qe might still test with unstructured data sometime?
I will let @s-urbaniak chime in to confirm whether or not we might need this going forward, even if not for production code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is needed if we are reconciling unstructured. For unstructured objects we must set the GVK otherwise the underlying shared index informer won't be able to find it in the cache, it won't know what type it is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yet the question remains, are we going to use unstructured at all? when?
I suspect we might use it for some experiments on the side. This being expected to be a library I guess it merits the flexibility to support unstructured. Right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it is fine to leave the support for unstructured, mostly for proof of concepts.
Summary
Add support for the Unified State Machine.
Proof of Work
This has been tested in #2313
Checklist