kubernetes-csi-pv-spec-update

Community

Fix immutable CSI PV specs without downtime.

Authoraldengolab
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Update or correct fields in a CSI PersistentVolume spec (e.g., spec.csi.volumeAttributes) that cannot be patched in place because the spec.persistentvolumesource is immutable after creation. The only safe path is to delete and recreate the PV using kubectl replace --force, after removing the pv-protection finalizer and exporting the modified manifest.

Core Features & Use Cases

  • Removes the pv-protection finalizer to allow PV replacement.
  • Exports, edits, and reapplies the PV manifest to update immutable fields such as volumeAttributes.
  • Works for CSI drivers where post-provisioning attribute corrections are needed, and for stale connection info.

Quick Start

Identify the PV to update, remove the pv-protection finalizer, export and edit the PV manifest, then perform a force replace.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: kubernetes-csi-pv-spec-update
Download link: https://github.com/aldengolab/lorist/archive/main.zip#kubernetes-csi-pv-spec-update

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.