Skip to content

external-snapshotter should not allow annotation in template for snapshotter-secret-name #155

@saad-ali

Description

@saad-ali

external-snapshotter supports ${volumesnapshot.annotations['ANNOTATION_KEY']} as a template for csi.storage.k8s.io/snapshotter-secret-name. It should not. It is ok for all other secrets (e.g. ListSnapshot secret) but not for the CreateSnapshot secret.

// supported tokens for name resolution:
// - ${volumesnapshotcontent.name}
// - ${volumesnapshot.namespace}
// - ${volumesnapshot.name}
// - ${volumesnapshot.annotations['ANNOTATION_KEY']} (e.g. ${pvc.annotations['example.com/snapshot-create-secret-name']})

CC @msau42 @jingxu97 @xing-yang

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions