Skip to content

Conversation

@kasabe28
Copy link
Contributor

Proposed Changes

  • Modify volumebroker to filter volumes before aggregation and to add volumepoollet.ironcore.dev/volume-uid label with parent volume uid as value in CreateVolume function
  • Modify volumepoollet to list and delete volumes using volumepoollet.ironcore.dev/volume-uid label

Fixes #1405

@kasabe28 kasabe28 self-assigned this Nov 10, 2025
@kasabe28 kasabe28 requested a review from a team as a code owner November 10, 2025 08:43
@kasabe28 kasabe28 added this to IaaS and Roadmap Nov 10, 2025
@github-actions github-actions bot added enhancement New feature or request size/L labels Nov 10, 2025
@hardikdr hardikdr added the area/iaas Issues related to IronCore IaaS development. label Nov 11, 2025
@kasabe28 kasabe28 requested a review from balpert89 November 12, 2025 08:39
@balpert89
Copy link
Contributor

LGTM

@opensovereigncloud-user opensovereigncloud-user force-pushed the osc/enh/update-volume-filtering branch from f8dbd4e to dff98fb Compare November 14, 2025 11:36
Copy link
Member

@lukasfrank lukasfrank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the proposed change work for existing Volumes . It looks like we recreate a Volume if the label is not present

}

func (r *VolumeReconciler) deleteGone(ctx context.Context, log logr.Logger, volumeKey client.ObjectKey) (ctrl.Result, error) {
func (r *VolumeReconciler) deleteGone(ctx context.Context, log logr.Logger, volume *storagev1alpha1.Volume) (ctrl.Result, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the volume uninitialized if we get here an error?

	volume := &storagev1alpha1.Volume{}
	if err := r.Get(ctx, req.NamespacedName, volume); err != nil {
	```
	

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

Labels

area/iaas Issues related to IronCore IaaS development. enhancement New feature or request size/L

Projects

Status: No status
Status: No status

Development

Successfully merging this pull request may close these issues.

Listing volumes in the volumebroker should apply filtering first before processing

5 participants