Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Fix group name in generated YAML filenames of Cluster and MachineDeployment #403

Merged
merged 3 commits into from
Apr 9, 2020

Conversation

marians
Copy link
Member

@marians marians commented Apr 9, 2020

@marians marians self-assigned this Apr 9, 2020
@marians marians changed the title Fix group name in generated YAML filenames Fix group name in generated YAML filenames of Cluster and MachineDeployment Apr 9, 2020
@marians marians requested review from tfussell and removed request for tfussell April 9, 2020 11:48
@marians
Copy link
Member Author

marians commented Apr 9, 2020

Still need to fix something here...

@marians marians requested a review from tfussell April 9, 2020 11:52
crd := NewMachineDeploymentCRD()

crdGroup := crd.Spec.Group
crdKindLower := strings.ToLower(crd.Spec.Names.Kind)
Copy link
Contributor

Choose a reason for hiding this comment

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

I've been playing around with kubebuilder recently and discovered that the suffix should actually be crd.Spec.Names.Plural (so cluster.x-k8s.io_machinedeployments.yaml) I plan to make this change in my upcoming PR so it's not super important here--just wanted to mention.

Copy link
Contributor

@tfussell tfussell left a comment

Choose a reason for hiding this comment

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

LGTM.

@marians marians merged commit b9b1ce5 into master Apr 9, 2020
@marians marians deleted the change-group-in-yaml-filename branch April 9, 2020 11:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants