-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Promote VolumeSubpathEnvExpansion feature gate to GA #82578
Conversation
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 Once the patch is verified, the new status will be reflected by the 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. |
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. |
/ok-to-test |
/test pull-kubernetes-e2e-gce-storage-slow |
/sig node |
Glad to see this feature comes to GA, it saves a lot of tricks in our logging mechanism. |
5a265be
to
af7b1ae
Compare
@@ -299,7 +299,7 @@ const ( | |||
BalanceAttachedNodeVolumes featuregate.Feature = "BalanceAttachedNodeVolumes" | |||
|
|||
// owner: @kevtaylor | |||
// beta: v1.15 | |||
// ga: v1.17 |
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.
Add GA as a new line so we can easily see feature graduation history
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.
Added graduation steps (I put the alpha one back in for completeness)
pkg/features/kube_features.go
Outdated
@@ -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}, |
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 believe we should set LockToDefault: true
and add a comment to remove the feature gate in +2 releases
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.
Added
pkg/apis/core/types.go
Outdated
@@ -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. |
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 believe we don't comment on GA status in the types.go
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.
Removed
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 |
/label api-review |
pkg/api/pod/util_test.go
Outdated
@@ -1935,7 +1935,7 @@ func TestDropSubPathExpr(t *testing.T) { | |||
}, | |||
} | |||
|
|||
for _, enabled := range []bool{true, false} { | |||
for _, enabled := range []bool{true} { |
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.
drop the loop if it's not serving any purpose
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.
Dropped
are the e2e tests getting run in default CI jobs? do we need to drop the |
I dont think these get run as defaults. We set the sig-storage tag so they run in the slow tests |
yes, they're running in gce and slow jobs (and pull-gce): 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 |
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 |
Yes - the Feature tag is meant to cover tests that we don't expect to be available on every cluster, eg the dashboard, podsecuritypolicy ... |
3d29557
to
5d47750
Compare
I removed the Feature tag |
5d47750
to
cb8a7c1
Compare
/test pull-kubernetes-e2e-gce-100-performance |
/test pull-kubernetes-e2e-gce-storage-slow |
/lgtm |
[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 |
/retest |
1 similar comment
/retest |
…thEnvExpansion-GA Promote VolumeSubpathEnvExpansion feature gate to GA
/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?:
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