Skip to content
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

Automatically instantiate Spec and Status fields #2744

Closed
metacosm opened this issue Jan 21, 2021 · 0 comments · Fixed by #2739
Closed

Automatically instantiate Spec and Status fields #2744

metacosm opened this issue Jan 21, 2021 · 0 comments · Fixed by #2739
Assignees
Milestone

Comments

@metacosm
Copy link
Collaborator

With 5.0.0, CustomResource are now parameterized with status and spec types allowing very compact, boilerplate-free definition of custom resource implementations. However, the status and spec fields are not currently automatically created which leads to awkward code to avoid NPEs.
The client should therefore attempt to instantiate the associated field where possible, provided the availability of a no-arg constructor for these types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants