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

Promote mount propagation to GA #67255

Merged

Conversation

bertinatto
Copy link
Member

@bertinatto bertinatto commented Aug 10, 2018

What this PR does / why we need it:

This PR promotes mount propagation to GA.

Website PR: kubernetes/website#9823

Release note:

Mount propagation has promoted to GA. The `MountPropagation` feature gate is deprecated and will be removed in 1.13.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 10, 2018
@k8s-ci-robot k8s-ci-robot requested review from feiskyer and luxas August 10, 2018 14:01
@k8s-ci-robot k8s-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Aug 10, 2018
@bertinatto bertinatto force-pushed the promote_mount_propagation branch from e1e7da4 to d258177 Compare August 10, 2018 14:19
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 10, 2018
@bertinatto
Copy link
Member Author

bertinatto commented Aug 10, 2018

/sig storage
/assign @jsafrane

@msau42
Copy link
Member

msau42 commented Aug 10, 2018

/ok-to-test
@kubernetes/sig-storage-pr-reviews

Is sig aws correct? This feature should work across all Linux environments

@k8s-ci-robot k8s-ci-robot added sig/storage Categorizes an issue or PR as relevant to SIG Storage. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 10, 2018
@bertinatto bertinatto force-pushed the promote_mount_propagation branch from d258177 to a311228 Compare August 13, 2018 08:16
@bertinatto
Copy link
Member Author

@msau42: sorry, I assigned to sig aws by mistake.

@jsafrane
Copy link
Member

/remove-sig aws

@jsafrane
Copy link
Member

I heard no objections since the last sig-storage meeting
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 21, 2018
@jsafrane
Copy link
Member

/assign @liggitt @Random-Liu @tallclair

for approval. Lot of code that checked for the feature is being removed.

@@ -371,7 +365,6 @@ var defaultKubernetesFeatureGates = map[utilfeature.Feature]utilfeature.FeatureS
PodPriority: {Default: true, PreRelease: utilfeature.Beta},
EnableEquivalenceClassCache: {Default: false, PreRelease: utilfeature.Alpha},
TaintNodesByCondition: {Default: true, PreRelease: utilfeature.Beta},
MountPropagation: {Default: true, PreRelease: utilfeature.Beta},
Copy link
Member

Choose a reason for hiding this comment

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

should be changed to GA and defaulted true, right?

Copy link
Member

Choose a reason for hiding this comment

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

@kubernetes/sig-architecture-pr-reviews - does the expected lifecycle of a feature gate stop honoring the gate being disabled once it reaches GA?

Copy link
Member

Choose a reason for hiding this comment

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

I didn't find anything about removing feature gate in community repo. Did I miss it?

I found issue #46404 that suggests we should remove all gate checks, report the feature as GA for 2 releases and then remove it.

#65862 followed this approach, but they remove the gate checks when removing the feature, not when it was declared GA.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's not completely true. Advanced Audit Logging is actually moves to GA, I remove all gate checks and remove also old pipeline that is not possible to execute without disabling Advanced Audit Logging (because it in GA)

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I think the expectation should be that once a feature is GA it cannot be disabled, even though we need to leave the gate in place.

Copy link
Member

Choose a reason for hiding this comment

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

See the thread at https://groups.google.com/d/msg/kubernetes-sig-architecture/qJeJ7ANYzS0/0KnJgirWDgAJ

Promoting to GA and announcing deprecation of the gate in 1.12, then removing it and the checks of it in 1.13 would be consistent with our deprecation policy.

Copy link
Member Author

Choose a reason for hiding this comment

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

@liggitt, done. Can you take a look again, please?

@k8s-ci-robot k8s-ci-robot added the sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. label Aug 21, 2018
@liggitt
Copy link
Member

liggitt commented Aug 22, 2018

LGTM other than the question about the GA feature gate

@bertinatto bertinatto force-pushed the promote_mount_propagation branch from a311228 to 448d600 Compare August 24, 2018 12:13
@k8s-ci-robot k8s-ci-robot added area/kubelet and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Aug 24, 2018
@bertinatto
Copy link
Member Author

bertinatto commented Aug 27, 2018

@liggitt, can you take a look, please? I added the feature gate back and now I emit a warning if it's disabled (as per the discussion in the thread above).

if !utilfeature.DefaultFeatureGate.Enabled(features.MountPropagation) {
allErrs = append(allErrs, field.Forbidden(fldPath, "mount propagation is disabled by feature-gate"))
return allErrs
glog.Warning("MountPropagation can't be disabled via feature gate")
Copy link
Member

@liggitt liggitt Aug 27, 2018

Choose a reason for hiding this comment

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

warning here, per request validation, isn't the right place... we'd want to warn at startup if someone set this to false

Copy link
Member Author

Choose a reason for hiding this comment

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

Moved the warning to kubelet.go.

@bertinatto bertinatto force-pushed the promote_mount_propagation branch 2 times, most recently from 3de8bf1 to 731f17d Compare August 28, 2018 08:39
@jsafrane jsafrane added this to the v1.12 milestone Aug 30, 2018
@jsafrane
Copy link
Member

/lgtm
@liggitt, can you please review it for 1.12? I'll get the milestone approval.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 30, 2018
@bertinatto bertinatto force-pushed the promote_mount_propagation branch from 731f17d to b87a57a Compare August 31, 2018 08:09
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 31, 2018
@bertinatto
Copy link
Member Author

/retest

4 similar comments
@bertinatto
Copy link
Member Author

/retest

@bertinatto
Copy link
Member Author

/retest

@bertinatto
Copy link
Member Author

/retest

@bertinatto
Copy link
Member Author

/retest

@liggitt
Copy link
Member

liggitt commented Aug 31, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 31, 2018
@liggitt
Copy link
Member

liggitt commented Aug 31, 2018

also updated the release note to indicate the deprecation. feel free to go ahead and open up the PR to remove the gate and the checks and we can merge that as soon as 1.13 opens

@liggitt
Copy link
Member

liggitt commented Aug 31, 2018

cc @tallclair for approval

@tallclair
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bertinatto, jsafrane, liggitt, tallclair

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 Aug 31, 2018
@fejta-bot
Copy link

/retest
This bot automatically retries jobs that failed/flaked on approved PRs (send feedback to fejta).

Review the full test history for this PR.

Silence the bot with an /lgtm cancel comment for consistent failures.

@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue (batch tested with PRs 65251, 67255, 67224, 67297, 68105). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

@k8s-github-robot k8s-github-robot merged commit 33cca52 into kubernetes:master Sep 1, 2018
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/kubelet 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. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/storage Categorizes an issue or PR as relevant to SIG Storage. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants