Skip to content

harvester-csi-driver-lvm: grant snapshot location ConfigMap permissions - #596

Open
WebberHuang1118 wants to merge 1 commit into
harvester:masterfrom
WebberHuang1118:issue-11339
Open

harvester-csi-driver-lvm: grant snapshot location ConfigMap permissions#596
WebberHuang1118 wants to merge 1 commit into
harvester:masterfrom
WebberHuang1118:issue-11339

Conversation

@WebberHuang1118

@WebberHuang1118 WebberHuang1118 commented Aug 18, 2026

Copy link
Copy Markdown
Member

Problem

The LVM CSI driver now persists each snapshot's node and volume-group location in a namespaced ConfigMap. The packaged Harvester LVM CSI chart does not grant the harvester-csi-driver-lvm service account permission to manage those location records, so snapshot creation and annotation-free pre-existing snapshot deletion cannot use the registry.

Solution

Add a namespace-scoped Role and RoleBinding to charts/harvester-csi-driver-lvm, granting its existing service account only get, create, and delete access to ConfigMaps.

Impact

The packaged LVM driver can create, resolve, and remove per-snapshot location records without receiving cluster-wide ConfigMap permissions. The generic harvester-csi-driver chart is unchanged.

Validation

  • helm lint charts/harvester-csi-driver-lvm
  • helm template harvester-csi-driver-lvm charts/harvester-csi-driver-lvm --namespace harvester-system
  • helm lint charts/harvester-csi-driver
  • helm template harvester-csi-driver charts/harvester-csi-driver --namespace kube-system
  • git diff --check

Related to harvester/harvester#11339.

@WebberHuang1118
WebberHuang1118 marked this pull request as ready for review August 18, 2026 08:11
@WebberHuang1118 WebberHuang1118 changed the title harvester-csi-driver: grant snapshot location ConfigMap permissions harvester-csi-driver-lvm: grant snapshot location ConfigMap permissions Aug 19, 2026
Signed-off-by: Webber Huang <webber.huang@suse.com>
@mergify

mergify Bot commented Aug 19, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants