Skip to content
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

kubeadm - deprecate feature-gates HighAvailability, SelfHosting, CertsInSecrets #67786

Conversation

fabriziopandini
Copy link
Member

What this PR does / why we need it:
As for sig discussion (see meeting notes - August 22 - 2018) we are going to block usage of feature gates HighAvailability, SelfHosting, CertsInSecrets for new clusters and block updates to v1.12 of existing clusters using such features.

Which issue(s) this PR fixes *(optional, in fixes #<issue number>(, fixes #<issue_number>, ...)
Fixes # kubernetes/kubeadm#1058

Special notes for your reviewer:
I'm going to open issue to track code cleanup in v1.13

Release note:

kubeadm - feature-gates HighAvailability, SelfHosting, CertsInSecrets are now deprecated and can't be used anymore for new clusters. Update of cluster using above feature-gates flag is not supported

/sig cluster-lifecycle
/kind feature
/kind cleanup
/assign @timothysc
/cc

@k8s-ci-robot k8s-ci-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Aug 23, 2018
@k8s-ci-robot
Copy link
Contributor

@fabriziopandini: GitHub didn't allow me to request PR reviews from the following users: fabriziopandini.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

What this PR does / why we need it:
As for sig discussion (see meeting notes - August 22 - 2018) we are going to block usage of feature gates HighAvailability, SelfHosting, CertsInSecrets for new clusters and block updates to v1.12 of existing clusters using such features.

Which issue(s) this PR fixes *(optional, in fixes #<issue number>(, fixes #<issue_number>, ...)
Fixes # kubernetes/kubeadm#1058

Special notes for your reviewer:
I'm going to open issue to track code cleanup in v1.13

Release note:

kubeadm - feature-gates HighAvailability, SelfHosting, CertsInSecrets are now deprecated and can't be used anymore for new clusters. Update of cluster using above feature-gates flag is not supported

/sig cluster-lifecycle
/kind feature
/kind cleanup
/assign @timothysc
/cc

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 sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. kind/feature Categorizes issue or PR as related to a new feature. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/kubeadm approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 23, 2018
@neolit123
Copy link
Member

neolit123 commented Aug 23, 2018

thanks for the PR @fabriziopandini
@kubernetes/sig-cluster-lifecycle-pr-reviews

added a couple of text related comments only.

fmt.Printf("[upgrade/config] %s\n", m)
}
}
return nil, fmt.Errorf("[upgrade/config] FATAL. Unable to upgrade a cluster using deprecated featuregates flag. Please see release notes")
Copy link
Member

Choose a reason for hiding this comment

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

we can possibly change this to:
Unable to upgrade a cluster using deprecated feature-gate flags. Please see the release notes.

continue
}
if !reflect.DeepEqual(test.expectedMsg, msg) {
t.Error("Upgrade didn't returned expected message")
Copy link
Member

Choose a reason for hiding this comment

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

i would lowercase the above errors, but that's just a nit.

for k := range deprecatedMsg {
m = append(m, k)
}
return m, fmt.Errorf("feature-gates %s are deprecated", strings.Join(deprecatedKey, ","))
Copy link
Member

Choose a reason for hiding this comment

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

i would change this to the following to better handle singular vs plural:
the following feature-gates are deprecated: %s

Copy link
Contributor

Choose a reason for hiding this comment

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

This looks awkward in Go code. We return error with a valid slice of deprecation messages. Having deprecation messages does not mean that CheckDeprecatedFlags failed.
The best thing here is to reserve the error only for the case, when we don't recognize the feature gate at all (the case further up the code).
Here we should simply return the slice and no error.

@fabriziopandini fabriziopandini force-pushed the kubeadm-deprecate-featureflags branch from 7cf3df2 to 689417c Compare August 24, 2018 15:12
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 24, 2018
Copy link
Member

@timothysc timothysc left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Thx @fabriziopandini !!

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fabriziopandini, 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@timothysc
Copy link
Member

/test pull-kubernetes-kubemark-e2e-gce-big

1 similar comment
@rosti
Copy link
Contributor

rosti commented Aug 24, 2018

/test pull-kubernetes-kubemark-e2e-gce-big

@k8s-github-robot
Copy link

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 here.

@k8s-github-robot k8s-github-robot merged commit 078961f into kubernetes:master Aug 24, 2018
@fabriziopandini fabriziopandini deleted the kubeadm-deprecate-featureflags branch September 6, 2018 10:29
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. area/kubeadm cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants