Skip to content

[ci] add a little update codegen script#12

Merged
dpeckett merged 3 commits intomainfrom
dpeckett/codegen-scripts
Dec 4, 2024
Merged

[ci] add a little update codegen script#12
dpeckett merged 3 commits intomainfrom
dpeckett/codegen-scripts

Conversation

@dpeckett
Copy link
Copy Markdown
Contributor

@dpeckett dpeckett commented Dec 3, 2024

In preparation for adding some additional configuration types.

@dpeckett dpeckett changed the title feat: add a little update codegen script [ci] add a little update codegen script Dec 3, 2024
@dpeckett dpeckett requested a review from dilyevsky December 3, 2024 16:59
Copy link
Copy Markdown
Member

@theRealWardo theRealWardo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for this. I am happy to not have to go look up these commands in my bash history again 😅

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// Config is the Schema for the Apoxy Backplane configuration.
type Config struct {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this just for testing? I am guessing it was and it can be deleted before merge?

Copy link
Copy Markdown
Contributor

@dilyevsky dilyevsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

type Config struct {
metav1.TypeMeta `json:",inline"`

Spec ConfigSpec `json:"spec,omitempty"`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need to have a Spec field here since it's not an actual API object so we don't need to follow this convention here and just drop all the settings in top level similar to this: https://github.com/kubernetes/kubelet/blob/c6be68c24f917323135cecc3ac03394d81a7f048/config/v1beta1/types.go#L89

@dpeckett dpeckett merged commit e4fa037 into main Dec 4, 2024
@dpeckett dpeckett deleted the dpeckett/codegen-scripts branch December 4, 2024 08:34
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 this pull request may close these issues.

3 participants