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
RestoreSize should be nil instead of zero #639
Comments
|
There's a gap between how we handle size in K8s vs the definition in CSI. Similarly, volume size is undefined when it is 0. The purpose for this snapshot size field is to make sure the new volume created from a snapshot is bigger or equal to this size. If it is 0, we'll always use the specified volume size as it is bigger. If it is unspecified, we also use the specified volume size as there's nothing to compare with. |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
|
@k8s-triage-robot: Closing this issue. In response to this:
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. |
When a CSI driver returns
CreateSnapshotResponse.snapshot.size_bytes = 0, it says that the the snapshot size is unspecified.External-snapshotter (and perhaps the snapshot-controller too) copies this zero to VolumeSnapshotContent / VolumeSnapshot
status.RestoreSize. But zero here means that the minimal PVC size is 0 bytes.nilshould be used for unknown PVC size.The text was updated successfully, but these errors were encountered: