You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, EBS CSI Driver supports snapshot tagging via VolumeSnapshotClass.parameters. If you declare VolumeSnapshotClass with parameters using tagSpecification prefix like this
The CSI Driver will add the key-value pair "key1=value1" as tag to the snapshot created using this VolumeSnapshotClass.
This "static" tagging has its limitations. For example, all snapshots created using the same VolumeSnapshotClass will have the same tags (from VolumeSnapshotClass.parameters).
Users have also expressed interests in adding tags from the snapshot-level such as snapshot name&namespace to EBS snapshots.
Describe the solution you'd like in detail
The CSI external-snapshotter (when the --extra-create-metadata flag set) exposes these parameters, snapshot name, namespace and VolumeSnapshotContent name to the CSI Driver, in CreateSnapshotRequest:
We will implement the support in CSI Driver to allow these VolumeSnapshot and VolumeSnapshotContent parameters to be added to snapshot tags, with runtime string interpolation , in a similar way to StorageClass tagging.
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.
Is your feature request related to a problem? Please describe.
Currently, EBS CSI Driver supports snapshot tagging via
VolumeSnapshotClass.parameters
. If you declareVolumeSnapshotClass
withparameters
usingtagSpecification
prefix like thisThe CSI Driver will add the key-value pair "key1=value1" as tag to the snapshot created using this VolumeSnapshotClass.
This "static" tagging has its limitations. For example, all snapshots created using the same VolumeSnapshotClass will have the same tags (from VolumeSnapshotClass.parameters).
Users have also expressed interests in adding tags from the snapshot-level such as snapshot name&namespace to EBS snapshots.
Describe the solution you'd like in detail
The CSI
external-snapshotter
(when the --extra-create-metadata flag set) exposes these parameters, snapshot name, namespace and VolumeSnapshotContent name to the CSI Driver, inCreateSnapshotRequest
:These parameters are dynamically generated at runtime. Reference: https://kubernetes-csi.github.io/docs/external-snapshotter.html#volumesnapshot-and-volumesnapshotcontent-parameters
We will implement the support in CSI Driver to allow these VolumeSnapshot and VolumeSnapshotContent parameters to be added to snapshot tags, with runtime string interpolation , in a similar way to StorageClass tagging.
Example 1
Create a snapshot with "default" namespace and "ebs-vs" name and from VolumeSnapshotContent name "ebs-vsc". The snapshot will have these tags
Example 2
More expressive tags w/ certain string interpolation functions:
If the VolumeSnapshot namespace is "prod-na-test", the snapshot will have these 2 tags:
Describe alternatives you've considered
None.
Additional context
Related issue: #1261 #1453
The text was updated successfully, but these errors were encountered: