Skip to content

fix(vd,vi): fix issues with storage class condition display#947

Merged
Isteb4k merged 1 commit into
mainfrom
fix/vd/storage-class-ready
Apr 23, 2025
Merged

fix(vd,vi): fix issues with storage class condition display#947
Isteb4k merged 1 commit into
mainfrom
fix/vd/storage-class-ready

Conversation

@Isteb4k

@Isteb4k Isteb4k commented Apr 18, 2025

Copy link
Copy Markdown
Contributor

Description

  1. The Start and StartImmediate methods of DiskService now take a *storagev1.StorageClass instead of a string as the storage class parameter.

  2. The global services VirtualImageStorageClassService and VirtualDiskStorageClassService have been moved to the internal/service package of the corresponding resource.

  3. All checks related to StorageClass are now performed exclusively in the StorageClassReady handlers. The LifeCycle handler (and all source handlers) now rely on the StorageClassReady condition and no longer perform redundant checks.

  4. A new service, BaseStorageClassService, which integrates internal storage class services in order to use the base logic for working with StorageClass.

  5. Refactored LifeCycle for vi similarly to how it’s done for vd.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: api 
type: fix
summary: fix issues with storage class condition display
impact_level: low

@Isteb4k Isteb4k force-pushed the fix/vd/storage-class-ready branch from 504b7c2 to 2ad4caa Compare April 18, 2025 16:30
@Isteb4k Isteb4k changed the base branch from main to fix/vi/handle-mc-vi-default-storage-class April 18, 2025 16:40
@Isteb4k Isteb4k changed the title Fix/vd/storage class ready fix(vd,vi): fix issues with storage class condition display Apr 18, 2025
@Isteb4k Isteb4k added this to the v0.17.0 milestone Apr 18, 2025
@Isteb4k Isteb4k force-pushed the fix/vd/storage-class-ready branch from 2ad4caa to a777604 Compare April 18, 2025 17:06
@Isteb4k Isteb4k requested a review from hardcoretime April 18, 2025 17:06
@Isteb4k Isteb4k force-pushed the fix/vd/storage-class-ready branch 5 times, most recently from 25b38db to ceb467f Compare April 18, 2025 18:05
@Isteb4k Isteb4k marked this pull request as ready for review April 18, 2025 18:14
@Isteb4k Isteb4k added the e2e/run Run e2e test on cluster of PR author label Apr 18, 2025
@deckhouse-BOaTswain deckhouse-BOaTswain removed the e2e/run Run e2e test on cluster of PR author label Apr 18, 2025
@Isteb4k Isteb4k force-pushed the fix/vd/storage-class-ready branch from ceb467f to cf40143 Compare April 19, 2025 21:42
@hardcoretime hardcoretime force-pushed the fix/vi/handle-mc-vi-default-storage-class branch from 5612507 to f336835 Compare April 21, 2025 08:22
@Isteb4k Isteb4k force-pushed the fix/vd/storage-class-ready branch from cf40143 to d4d96e8 Compare April 21, 2025 08:36
Base automatically changed from fix/vi/handle-mc-vi-default-storage-class to main April 21, 2025 08:41
@Isteb4k Isteb4k force-pushed the fix/vd/storage-class-ready branch 2 times, most recently from 47adff2 to 0edd300 Compare April 21, 2025 09:16
Comment thread images/virtualization-artifact/pkg/controller/vd/internal/source/sources.go Outdated
Signed-off-by: Isteb4k <dmitry.rakitin@flant.com>
@Isteb4k Isteb4k force-pushed the fix/vd/storage-class-ready branch from 0edd300 to bdeb918 Compare April 21, 2025 19:37
@Isteb4k Isteb4k marked this pull request as draft April 22, 2025 20:22
@Isteb4k Isteb4k marked this pull request as ready for review April 23, 2025 07:30
@Isteb4k Isteb4k merged commit 58505f8 into main Apr 23, 2025
@Isteb4k Isteb4k deleted the fix/vd/storage-class-ready branch April 23, 2025 07:32
yachmenevas pushed a commit that referenced this pull request Oct 15, 2025
1. The Start and StartImmediate methods of DiskService now take a *storagev1.StorageClass instead of a string as the storage class parameter.

2. The global services VirtualImageStorageClassService and VirtualDiskStorageClassService have been moved to the internal/service package of the corresponding resource.

3. All checks related to StorageClass are now performed exclusively in the StorageClassReady handlers. The LifeCycle handler (and all source handlers) now rely on the StorageClassReady condition and no longer perform redundant checks.

4. A new service, BaseStorageClassService, which integrates internal storage class services in order to use the base logic for working with StorageClass.

5. Refactored LifeCycle for vi similarly to how it’s done for vd.

Signed-off-by: Isteb4k <dmitry.rakitin@flant.com>
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.

3 participants