-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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
[reissue] kubeadm: Split out ClusterConfiguration from InitConfiguration #67441
[reissue] kubeadm: Split out ClusterConfiguration from InitConfiguration #67441
Conversation
/assign @timothysc @fabriziopandini |
/assign @luxas |
thanks for doing this PR! it needs a:
but other than that i think we should merge ASAP and apply changes on top if needed. |
97dcee5
to
d3e7de0
Compare
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.
@rosti +100 for jumping in and helping on @luxas work!
/approve
Being this so big, I kindly ask @timothysc or @liztio (or *) to give a second pass + final lgtm
d3e7de0
to
fc664de
Compare
this code looks good to me. I'd rather get this merged ASAP as @neolit123 points out and fix anything that breaks before the release |
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.
What's with all the TODOs? are we going to follow on or address here?
@fabriziopandini - I've been out for too long so I've lost state.
@@ -16,7 +16,12 @@ limitations under the License. | |||
|
|||
package fuzzer | |||
|
|||
import ( | |||
// TODO: Fuzzing rouudtrip tests are currently disabled in the v1.12 cycle due to the | |||
// v1alpha2 -> v1alpha3 migration. As the ComponentConfigs were embedded in the structs |
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.
Can you open an issue here?
API: kubeadmapiv1alpha3.API{AdvertiseAddress: "1.2.3.4"}, | ||
BootstrapTokens: []kubeadmapiv1alpha3.BootstrapToken{sillyToken}, | ||
KubernetesVersion: fmt.Sprintf("v1.%d.0", constants.MinimumControlPlaneVersion.Minor()+1), | ||
// TODO: Probably move to getDefaultedClusterConfig? |
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.
?
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.
I think, this one was a comment in the old PR. We decided to mark all unaddressed comments in the original PR as TODOs in the new one.
@timothysc this PR is already too big + it blocking other changes, so better to follow up on TODOs with separated PRs. |
@rosti - needs a rebase /lgtm |
Trivial rebasement, fixed some broken tests, and inserted some TODOs: Rostislav M. Georgiev <rostislavg@vmware.com>
fc664de
to
0fde05a
Compare
Rebased the PR. |
/lgtm |
/test all [submit-queue is verifying that this PR is safe to merge] |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini, rosti, timothysc 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 |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
…images Automatic merge from submit-queue (batch tested with PRs 67776, 67503, 67679, 67786, 67830). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. kubeadm: use ClusterConfiguration in images.go **What this PR does / why we need it**: This PR is the first in a series, targeting the replacement of InitConfiguration with ClusterConfiguration, when the former is not needed. Please, review only the last commit. Replace the unnecessary use of InitConfiguration in images.go with ClusterConfiguration. This changes the interfaces of the following functions: - GetKubeControlPlaneImage - GetEtcdImage - GetAllImages **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: refs kubernetes/kubeadm#963 **Special notes for your reviewer**: /cc @kubernetes/sig-cluster-lifecycle-pr-reviews /area kubeadm /kind enhancement /assign @luxas /assign @timothysc /assign @fabriziopandini Depends on: - [X] kubernetes#67441 **Release note**: ```release-note NONE ```
As @luxas is not able to take care of #66219, I am reissuing the same change here. There are a few minor things added by me:
Below is the text of the original PR by Lucas.
What this PR does / why we need it:
Splits MasterConfiguration to InitConfiguration and ClusterConfiguration as outlined in the kubeadm Config KEP. InitConfiguration holds init-only information, and ClusterConfiguration holds cluster-wide information. In the internal representation InitConfiguration wraps ClusterConfiguration as a field, but in serialized format they're different YAML documents.
Which issue(s) this PR fixes (optional, in fixes #(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
ref: kubernetes/kubeadm#911
Depends on:
v1alpha3
API #65629MasterConfiguration
toInitConfiguration
in the kubeadm v1alpha3 Config API #65945NodeConfiguration
toJoinConfiguration
in the kubeadm v1alpha3 Config API #65951Special notes for your reviewer:
Release note:
@kubernetes/sig-cluster-lifecycle-pr-reviews