Looking at kubebuilder, they have the concept of markers like for example:
# +kubebuilder:scaffold:crdkustomizeresource
The marker is used to insert additional content into a previously rendered file upon variables changing, preserving any manual edits of the file.
I am also thinking about block markers, that I am not sure kubebuilder supports (haven't ran into it) that would indicate in a rendered file the part that is auto generated. Basically, I am thinking of ways to mix up auto generated code and manual edits in the same file.
Doesn't like like Partials are allowing for that use case, am I missing something? Can this be implemented?
Looking at kubebuilder, they have the concept of markers like for example:
The marker is used to insert additional content into a previously rendered file upon variables changing, preserving any manual edits of the file.
I am also thinking about block markers, that I am not sure kubebuilder supports (haven't ran into it) that would indicate in a rendered file the part that is auto generated. Basically, I am thinking of ways to mix up auto generated code and manual edits in the same file.
Doesn't like like Partials are allowing for that use case, am I missing something? Can this be implemented?