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 VolumeSubpathEnvExpansion feature gate to GA #82578

Merged

Conversation

kevtaylor
Copy link
Contributor

@kevtaylor kevtaylor commented Sep 11, 2019

/kind api-change

What this PR does / why we need it:
Promotes VolumeSubpathEnvExpansion feature gate to stable state
Which issue(s) this PR fixes:
Fixes ##82577

Special notes for your reviewer:
The beta state has been running since 1.15 with no reported issues.
No further tests/code changes identified

Does this PR introduce a user-facing change?:

The VolumeSubpathEnvExpansion feature is graduating to GA. The `VolumeSubpathEnvExpansion` feature gate is unconditionally enabled, and will be removed in v1.19.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

Please use the following format for linking documentation:
[KEP]: https://github.com/kubernetes/enhancements/blob/master/keps/sig-storage/20181029-volume-subpath-env-expansion.md
[Usage]: kubernetes/website#13846
[Other doc]: kubernetes/enhancements#559

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Sep 11, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @kevtaylor. Thanks for your PR.

I'm waiting for a kubernetes 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 needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. sig/apps Categorizes an issue or PR as relevant to SIG Apps. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Sep 11, 2019
@fejta-bot
Copy link

This PR may require API review.

If so, when the changes are ready, complete the pre-review checklist and request an API review.

Status of requested reviews is tracked in the API Review project.

@msau42
Copy link
Member

msau42 commented Sep 11, 2019

/ok-to-test
/assign

@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 Sep 11, 2019
@kevtaylor
Copy link
Contributor Author

/test pull-kubernetes-e2e-gce-storage-slow

@kevtaylor
Copy link
Contributor Author

/sig node
/sig storage

@k8s-ci-robot k8s-ci-robot added sig/node Categorizes an issue or PR as relevant to SIG Node. sig/storage Categorizes an issue or PR as relevant to SIG Storage. labels Sep 13, 2019
@uzuku
Copy link
Contributor

uzuku commented Sep 26, 2019

Glad to see this feature comes to GA, it saves a lot of tricks in our logging mechanism.

@@ -299,7 +299,7 @@ const (
BalanceAttachedNodeVolumes featuregate.Feature = "BalanceAttachedNodeVolumes"

// owner: @kevtaylor
// beta: v1.15
// ga: v1.17
Copy link
Member

Choose a reason for hiding this comment

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

Add GA as a new line so we can easily see feature graduation history

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added graduation steps (I put the alpha one back in for completeness)

@@ -539,7 +539,7 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
CSIMigrationOpenStack: {Default: false, PreRelease: featuregate.Alpha},
VolumeSubpath: {Default: true, PreRelease: featuregate.GA},
BalanceAttachedNodeVolumes: {Default: false, PreRelease: featuregate.Alpha},
VolumeSubpathEnvExpansion: {Default: true, PreRelease: featuregate.Beta},
VolumeSubpathEnvExpansion: {Default: true, PreRelease: featuregate.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 believe we should set LockToDefault: true and add a comment to remove the feature gate in +2 releases

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

@@ -1715,7 +1715,7 @@ type VolumeMount struct {
// Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
// Defaults to "" (volume's root).
// SubPathExpr and SubPath are mutually exclusive.
// This field is beta in 1.15.
// This field is GA in 1.17.
Copy link
Member

Choose a reason for hiding this comment

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

I believe we don't comment on GA status in the 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.

Removed

@msau42
Copy link
Member

msau42 commented Oct 3, 2019

Also please add a release note that the feature is graduating to GA, and the feature gate is deprecated and will be removed in a future release

@msau42
Copy link
Member

msau42 commented Oct 3, 2019

/label api-review

@k8s-ci-robot k8s-ci-robot added api-review Categorizes an issue or PR as actively needing an API review. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Oct 3, 2019
@liggitt liggitt added this to Assigned in API Reviews Oct 9, 2019
@liggitt liggitt added this to the v1.17 milestone Oct 9, 2019
@@ -1935,7 +1935,7 @@ func TestDropSubPathExpr(t *testing.T) {
},
}

for _, enabled := range []bool{true, false} {
for _, enabled := range []bool{true} {
Copy link
Member

Choose a reason for hiding this comment

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

drop the loop if it's not serving any purpose

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dropped

@liggitt
Copy link
Member

liggitt commented Oct 9, 2019

are the e2e tests getting run in default CI jobs? do we need to drop the [NodeFeature:VolumeSubpathEnvExpansion] tag?

@liggitt liggitt self-assigned this Oct 9, 2019
@kevtaylor
Copy link
Contributor Author

are the e2e tests getting run in default CI jobs? do we need to drop the [NodeFeature:VolumeSubpathEnvExpansion] tag?

I dont think these get run as defaults. We set the sig-storage tag so they run in the slow tests
and the NodeFeature to force them into the node e2e tests
so they get total coverage. Whether that's the best approach is debateable

@msau42
Copy link
Member

msau42 commented Oct 9, 2019

yes, they're running in gce and slow jobs (and pull-gce):
https://k8s-testgrid.appspot.com/sig-storage-kubernetes#gce&include-filter-by-regex=Variable
https://k8s-testgrid.appspot.com/sig-storage-kubernetes#gce-slow&include-filter-by-regex=Variable

As for node-e2es, they're not running in node-kubelet-master, but they are running in node-kubelet-features. Unsure what the criteria is for sig-node tests cc @kubernetes/sig-node-pr-reviews

https://k8s-testgrid.appspot.com/sig-node-kubelet#node-kubelet-features

@liggitt
Copy link
Member

liggitt commented Oct 9, 2019

I think we typically take the feature tag off tests once they are not conditionally enabled. @kubernetes/sig-testing-pr-reviews might be able to confirm. Leaving the [Slow] tag on the slow tests is good.

@k8s-ci-robot k8s-ci-robot added the sig/testing Categorizes an issue or PR as relevant to SIG Testing. label Oct 9, 2019
@BenTheElder
Copy link
Member

Yes - the Feature tag is meant to cover tests that we don't expect to be available on every cluster, eg the dashboard, podsecuritypolicy ...

@kevtaylor kevtaylor force-pushed the kep/VolumeSubpathEnvExpansion-GA branch from 3d29557 to 5d47750 Compare October 10, 2019 08:22
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 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 Oct 10, 2019
@kevtaylor
Copy link
Contributor Author

Yes - the Feature tag is meant to cover tests that we don't expect to be available on every cluster, eg the dashboard, podsecuritypolicy ...

I removed the Feature tag

@kevtaylor kevtaylor force-pushed the kep/VolumeSubpathEnvExpansion-GA branch from 5d47750 to cb8a7c1 Compare October 10, 2019 08:34
@kevtaylor
Copy link
Contributor Author

/test pull-kubernetes-e2e-gce-100-performance

@kevtaylor
Copy link
Contributor Author

/test pull-kubernetes-e2e-gce-storage-slow

@liggitt
Copy link
Member

liggitt commented Oct 10, 2019

/lgtm
/approve
/retest

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kevtaylor, liggitt

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 Oct 10, 2019
@kevtaylor
Copy link
Contributor Author

/retest

1 similar comment
@kevtaylor
Copy link
Contributor Author

/retest

@k8s-ci-robot k8s-ci-robot merged commit cb1799b into kubernetes:master Oct 10, 2019
@liggitt liggitt moved this from Assigned to API review completed, 1.17 in API Reviews Oct 11, 2019
ohsewon pushed a commit to ohsewon/kubernetes that referenced this pull request Oct 16, 2019
…thEnvExpansion-GA

Promote VolumeSubpathEnvExpansion feature gate to GA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-review Categorizes an issue or PR as actively needing an API review. approved Indicates a PR has been approved by an approver from all required OWNERS files. area/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API 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. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. 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/node Categorizes an issue or PR as relevant to SIG Node. sig/storage Categorizes an issue or PR as relevant to SIG Storage. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
Status: API review completed, 1.17
Development

Successfully merging this pull request may close these issues.

None yet

7 participants