feat(vm-storage-labeling): add storage volume labeling role#15
feat(vm-storage-labeling): add storage volume labeling role#15stevefulme1 wants to merge 2 commits into
Conversation
…aming Add a new role and playbook to apply labels, annotations, and descriptive names to PersistentVolumeClaims and DataVolumes at the OCP level. Supports both named volume targeting and label selector-based bulk operations for managing storage across large VM fleets. Resolves: MFG-251 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@stevefulme1 Would this enhancement be better served within the |
|
yes can we move the pr there? |
Unfortunately, we cannot move the PR over. It would need to be recreated in the other repository |
sabre1041
left a comment
There was a problem hiding this comment.
Works well. Added one comment related to whether names/labels should be required
Let's complete the discussion in this repository and then transfer it to the ops repo
| fail_msg: "Required property 'namespace' in 'vm_storage_labeling_request' Variable Not Provided" | ||
| quiet: true | ||
|
|
||
| - name: Verify Names or Label Selectors Provided |
There was a problem hiding this comment.
Is there a need to provide either labels or PVC names? What if we wanted to apply the same labels/annotations to all PVC's in a namespace?
Allow labeling all PVCs in a namespace when neither names nor label_selectors is provided. Addresses review feedback. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Closing — this is day 2 ops functionality and has been moved to New PR: redhat-cop/openshift_virtualization_ops#5 FQCN updated from |
Summary
vm_storage_labelingrole and playbook to apply labels, annotations, and descriptive names to PersistentVolumeClaims (PVCs) and DataVolumes at the OCP levelvm_mac_address,vm_hot_plug) for variable naming, validation, and k8s JSON patch operationsResolves
MFG-251 — Storage Volume Labeling and Naming
Usage Example
Test plan
yamllintpasses (confirmed locally — warnings only for line-length on playbook env lookups, matching existing patterns)ansible-lint --offlinepasses production profile (confirmed locally — 0 failures, 0 warnings)🤖 Generated with Claude Code