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

Mark PVCDataSource featuregate as GA #88686

Merged
merged 1 commit into from Mar 4, 2020

Conversation

j-griffith
Copy link
Contributor

@j-griffith j-griffith commented Feb 29, 2020

/kind feature

What this PR does / why we need it:

Marks VolumePVCDataSource as GA for 1.18

Which issue(s) this PR fixes:

Fixes #88814

Special notes for your reviewer:

VolumePVCDataSource moves to GA in 1.18 release

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

https://github.com/kubernetes/website/pull/19318

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. 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 Feb 29, 2020
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 29, 2020
Copy link
Member

@jsafrane jsafrane left a comment

Choose a reason for hiding this comment

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

Please remove feature gate evaluation in

if utilfeature.DefaultFeatureGate.Enabled(features.VolumePVCDataSource) &&
- it's always true now.

pkg/api/persistentvolumeclaim/util_test.go Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 2, 2020
@jsafrane
Copy link
Member

jsafrane commented Mar 2, 2020

/lgtm
Failed e2e-gce-alpha-features is not related to this PR and is being fixed in #88727

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

jsafrane commented Mar 2, 2020

/kind api-review
for changes in validation (i.e. removal of feature checks)

@k8s-ci-robot
Copy link
Contributor

@jsafrane: The label(s) kind/api-review cannot be applied, because the repository doesn't have them

In response to this:

/kind api-review
for changes in validation (i.e. removal of feature checks)

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.

@jsafrane
Copy link
Member

jsafrane commented Mar 2, 2020

/label api-review
for changes in validation (i.e. removal of feature checks)

@k8s-ci-robot k8s-ci-robot added the api-review Categorizes an issue or PR as actively needing an API review. label Mar 2, 2020
@smarterclayton
Copy link
Contributor

/assign @smarterclayton

@smarterclayton
Copy link
Contributor

Does the godoc on DataSource need to be updated? I see:

	// This field requires the VolumeSnapshotDataSource alpha feature gate to be
	// enabled and currently VolumeSnapshot is the only supported data source.
	// If the provisioner can support VolumeSnapshot data source, it will create
	// a new volume and data will be restored to the volume at the same time.
	// If the provisioner does not support VolumeSnapshot data source, volume will
	// not be created and the failure will be reported as an event.
	// In the future, we plan to support more data source types and the behavior
	// of the provisioner may change.
	// +optional
	DataSource *TypedLocalObjectReference `json:"dataSource,omitempty" protobuf:"bytes,7,opt,name=dataSource"`

and I would expect it to be updated.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 2, 2020
@j-griffith
Copy link
Contributor Author

/test pull-kubernetes-e2e-gci-gce-autoscaling

1 similar comment
@j-griffith
Copy link
Contributor Author

/test pull-kubernetes-e2e-gci-gce-autoscaling

@j-griffith
Copy link
Contributor Author

/test pull-kubernetes-verify

@jsafrane
Copy link
Member

jsafrane commented Mar 4, 2020

almost there, but generated doc is out of sync:

Generated swagger type documentation is out of date:
--- /home/prow/go/src/k8s.io/kubernetes/./staging/src/k8s.io/api/core/v1/types_swagger_doc_generated.go	2020-03-04 04:26:30.111495230 +0000
+++ /tmp/swagger-docs.IZkoOW/src/k8s.io/kubernetes/./staging/src/k8s.io/api/core/v1/types_swagger_doc_generated.go	2020-03-04 05:09:42.551694271 +0000
@@ -1300,7 +1300,7 @@ var map_PersistentVolumeClaimSpec = map[
 	"resources":        "Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources",
 	"volumeName":       "VolumeName is the binding reference to the PersistentVolume backing this claim.",
 	"storageClassName": "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1",
-	"volumeMode":       "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature.",
+	"volumeMode":       "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.",

I think hack/update-generated-swagger-docs.sh is the right tool to fix this.

@j-griffith
Copy link
Contributor Author

j-griffith commented Mar 4, 2020

almost there, but generated doc is out of sync:

Generated swagger type documentation is out of date:
--- /home/prow/go/src/k8s.io/kubernetes/./staging/src/k8s.io/api/core/v1/types_swagger_doc_generated.go	2020-03-04 04:26:30.111495230 +0000
+++ /tmp/swagger-docs.IZkoOW/src/k8s.io/kubernetes/./staging/src/k8s.io/api/core/v1/types_swagger_doc_generated.go	2020-03-04 05:09:42.551694271 +0000
@@ -1300,7 +1300,7 @@ var map_PersistentVolumeClaimSpec = map[
 	"resources":        "Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources",
 	"volumeName":       "VolumeName is the binding reference to the PersistentVolume backing this claim.",
 	"storageClassName": "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1",
-	"volumeMode":       "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature.",
+	"volumeMode":       "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.",

I think hack/update-generated-swagger-docs.sh is the right tool to fix this.

It is, and tha'ts what I used (through make update anyway), then the rebase happened with a conflict in the proto file, I should've run it again.

@j-griffith
Copy link
Contributor Author

/test pull-kubernetes-e2e-kind

@j-griffith
Copy link
Contributor Author

/retest

// If the provisioner does not support VolumeSnapshot data source, volume will
// This field can be used to specify either:
// * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta)
// * An existing PVC (PersistentVolumeClaim - GA)
Copy link
Contributor

Choose a reason for hiding this comment

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

You shouldn't have to say PVC is GA (since anything not called out as alpha or beta is implicitly GA). Remove the - GA part (but keep - Beta on snapshot).

@smarterclayton
Copy link
Contributor

One more tweak and I will approve this.

@smarterclayton
Copy link
Contributor

Also, the "Fixes" bug in the PR description looks wrong, should that be pointing to an enhancement?

@j-griffith
Copy link
Contributor Author

j-griffith commented Mar 4, 2020

Also, the "Fixes" bug in the PR description looks wrong, should that be pointing to an enhancement?

Opened an issue in the k8s project and linked it, thanks!

Updates the VolumePVCDataSource featuregate (cloning) to GA for the 1.18 k8s
release.
@smarterclayton
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: j-griffith, smarterclayton

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 Mar 4, 2020
@jsafrane
Copy link
Member

jsafrane commented Mar 4, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 4, 2020
@j-griffith
Copy link
Contributor Author

/test pull-kubernetes-e2e-gci-gce-autoscaling
/test pull-kubernetes-e2e-kind

@saad-ali
Copy link
Member

saad-ali commented Mar 4, 2020

/milestone v1.18

@k8s-ci-robot k8s-ci-robot added this to the v1.18 milestone Mar 4, 2020
@saad-ali
Copy link
Member

saad-ali commented Mar 4, 2020

/priority important-soon

@k8s-ci-robot
Copy link
Contributor

@saad-ali: The label(s) priority/ cannot be applied, because the repository doesn't have them

In response to this:

/priority important-soon

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 priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Mar 4, 2020
@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Mar 4, 2020

@j-griffith: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gci-gce-autoscaling 9044fbf link /test pull-kubernetes-e2e-gci-gce-autoscaling

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot merged commit e865c0b into kubernetes:master Mar 4, 2020
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/kubectl area/release-eng Issues or PRs related to the Release Engineering subproject 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 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. 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/cli Categorizes an issue or PR as relevant to SIG CLI. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Promote VolumePVCDataSource to GA in 1.18
5 participants