Skip to content

Conversation

@noamran
Copy link
Contributor

@noamran noamran commented Nov 25, 2019

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

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 25, 2019
@k8s-ci-robot
Copy link
Contributor

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Nov 25, 2019
@noamran noamran changed the title ⚠️CABPK -Create v1alpha3 types [WIP] ⚠️CABPK -Create v1alpha3 types Nov 25, 2019
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 25, 2019
@vincepri
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 26, 2019
@noamran noamran changed the title [WIP] ⚠️CABPK -Create v1alpha3 types [WIP] ⚠️CABPK - Create v1alpha3 types Nov 26, 2019
package v1alpha3

// KubeadmConfigTemplateResource defines the Template structure
type KubeadmConfigTemplateResource struct {
Copy link
Member

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)

Copy link
Contributor Author

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.

@noamran noamran force-pushed the 1783 branch 2 times, most recently from 91f119b to c986934 Compare November 27, 2019 22:52
@noamran noamran changed the title [WIP] ⚠️CABPK - Create v1alpha3 types ⚠️CABPK - Create v1alpha3 types Dec 2, 2019
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 2, 2019
@ncdc ncdc self-assigned this Dec 3, 2019
@ncdc ncdc added this to the v0.3.0 milestone Dec 3, 2019
@ncdc
Copy link
Contributor

ncdc commented Dec 3, 2019

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 3, 2019
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 3, 2019
@detiber
Copy link
Contributor

detiber commented Dec 3, 2019

Looks like a rebase is needed.

@noamran
Copy link
Contributor Author

noamran commented Dec 3, 2019

/hold
Resolving conflicts and adding the conversion webhooks.

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Dec 3, 2019
@noamran noamran changed the title ⚠️CABPK - Create v1alpha3 types [WIP] ⚠️CABPK - Create v1alpha3 types Dec 4, 2019
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 4, 2019
@noamran noamran changed the title [WIP] ⚠️CABPK - Create v1alpha3 types ⚠️CABPK - Create v1alpha3 types Dec 4, 2019
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 4, 2019
@noamran
Copy link
Contributor Author

noamran commented Dec 5, 2019

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 5, 2019
setupLog.Error(err, "unable to create webhook", "webhook", "KubeadmConfigTemplate")
os.Exit(1)
}
if err = (&kubeadmbootstrapv1alpha3.KubeadmConfigTemplateList{}).SetupWebhookWithManager(mgr); err != nil {
Copy link
Contributor

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.

Copy link
Contributor Author

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"`
Copy link
Member

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)

Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 5, 2019
@k8s-ci-robot k8s-ci-robot merged commit 91efb1d into kubernetes-sigs:master Dec 5, 2019
@noamran noamran deleted the 1783 branch January 9, 2020 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CABPK - v1alpha3 types

6 participants