You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should export the Kind as a constant, also in the apis/<VERSION>/<COMPONENT>_types.go file. This will allow you to use the Kind without hard-coding the kind as a string.
Additionally, it would be helpful to create helper methods to create a new object, in memory for each component that we generate in the apis/<VERSION>/<COMPONENT>_types.go file.
We should export the Kind as a constant, also in the
apis/<VERSION>/<COMPONENT>_types.go
file. This will allow you to use the Kind without hard-coding the kind as a string.Additionally, it would be helpful to create helper methods to create a new object, in memory for each component that we generate in the
apis/<VERSION>/<COMPONENT>_types.go
file.Consider the following:
Could be a helper function (NOTE: Kind logic assumes the above constant has been implemented):
Which could be consumed with:
The text was updated successfully, but these errors were encountered: