-
Notifications
You must be signed in to change notification settings - Fork 251
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
Outline csi-prefixed parameters included by --extra-create-metadata #372
Outline csi-prefixed parameters included by --extra-create-metadata #372
Conversation
Welcome @chrishenzie! |
book/src/external-snapshotter.md
Outdated
|
||
#### VolumeSnapshot and VolumeSnapshotContent Parameters | ||
|
||
The CSI `external-snapshotter` (TODO: Fill version here) introduces the `--extra-create-metadata` flag, which automatically sets the following `map<string, string> parameters` in the CSI `CreateSnapshotRequest`: |
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.
Maybe you can split this into 2 PRs, one includes features already released, and the other one should not be merged until there's a release that contains the extra-create-metadata?
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@chrishenzie can you update this PR? |
/remove-lifecycle stale |
0059ea1
to
b2ff2ef
Compare
@xing-yang Rebased and removed the TODO, this flag is now available in external-snapshotter v4.0.0+. |
book/src/external-snapshotter.md
Outdated
The following reserved `VolumeSnapshotClass` parameter keys trigger behavior in the CSI `external-snapshotter`: | ||
|
||
* `csi.storage.k8s.io/snapshotter-secret-name` | ||
* `csi.storage.k8s.io/snapshotter-secret-namespace` |
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.
csi.storage.k8s.io/snapshotter-secret-name
and csi.storage.k8s.io/snapshotter-secret-namespace
were added in v1.0.1 for delete snapshot secrets.
book/src/external-snapshotter.md
Outdated
* `csi.storage.k8s.io/snapshotter-secret-name` | ||
* `csi.storage.k8s.io/snapshotter-secret-namespace` | ||
* `csi.storage.k8s.io/snapshotter-list-secret-name` | ||
* `csi.storage.k8s.io/snapshotter-list-secret-namespace` |
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.
csi.storage.k8s.io/snapshotter-list-secret-name
and csi.storage.k8s.io/snapshotter-list-secret-namespace
were added in v2.1.0 for list snapshots secrets.
book/src/external-snapshotter.md
Outdated
|
||
When provisioning a new volume snapshot, the CSI `external-snapshotter` sets the `map<string, string> parameters` field in the CSI `CreateSnapshotRequest` call to the key/values specified in the `VolumeSnapshotClass` it is handling. | ||
|
||
The CSI `external-snapshotter` (v2.1.0+) also reserves the parameter keys prefixed with `csi.storage.k8s.io/`. Any `VolumeSnapshotClass` keys prefixed with `csi.storage.k8s.io/` are not passed to the CSI driver as an opaque `parameter`. |
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.
Some keys were added in v1.0.1 and some were added in v2.1.0.
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.
Would you prefer I remove the parentheses on line 30 and then put the versions next to the corresponding parameter keys below?
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.
Yes, that sounds good.
b2ff2ef
to
b613048
Compare
/release-note-none |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrishenzie, xing-yang 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 |
Outline
--extra-create-metadata
flag.Resources
--extra-create-metadata
parameter keys to the external-provisioner, which appears to be first available in v1.6.0.VolumeSnapshotClass
parameter keys, which appears to be first available in release v2.1.0.--extra-create-metadata
parameter keys to the external-snapshotter.NOTE: Do not merge this until the above PR is merged and a release is cut.