-
Notifications
You must be signed in to change notification settings - Fork 1.4k
⚠️CABPK - Create v1alpha3 types #1800
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
Conversation
|
Hi @noamran. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/ok-to-test |
| package v1alpha3 | ||
|
|
||
| // KubeadmConfigTemplateResource defines the Template structure | ||
| type KubeadmConfigTemplateResource struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to keep this into a separated file? (vs merging into kubeadmconfigtemplate_types.go)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure... I can move it to kubeadmconfigtemplate_types.go if there are no objections.
91f119b to
c986934
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ncdc, noamran The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Looks like a rebase is needed. |
|
/hold |
|
/hold cancel |
| setupLog.Error(err, "unable to create webhook", "webhook", "KubeadmConfigTemplate") | ||
| os.Exit(1) | ||
| } | ||
| if err = (&kubeadmbootstrapv1alpha3.KubeadmConfigTemplateList{}).SetupWebhookWithManager(mgr); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like for the other conversion webhooks we are setting up the webhook through the v1alpha2 types, but the approach here feels more correct to me (since v1alpha3 is being used as the hub type). I'm wondering if we need to change the other conversion webhooks to be configured through the v1alpha3 types as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO it would make more sense to have all the conversion webhooks configured through the same hub type version (v1alpha3 in this case).
| NTP *NTP `json:"ntp,omitempty"` | ||
| // Format specifies the output format of the bootstrap data | ||
| // +optional | ||
| Format Format `json:"format,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: leave a space between each field and the next comment, it helps with readability (and it's consistent with the other structs in this file)
vincepri
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
What this PR does / why we need it:
Creates the v1alpha3 types for the kubeadm bootstrap provider.
Which issue(s) this PR fixes:
Fixes #1783 and #1823