feat(storage): add CRUD operations for persistent and file storages#64
Merged
andrasbacsai merged 4 commits intov4.xfrom Mar 23, 2026
Merged
feat(storage): add CRUD operations for persistent and file storages#64andrasbacsai merged 4 commits intov4.xfrom
andrasbacsai merged 4 commits intov4.xfrom
Conversation
Add comprehensive storage management system for applications, databases, and services: - Implement storage subcommands (list, create, update, delete) with full API integration - Add support for both persistent volumes and file-based storage management - Create Storage model with comprehensive validation for type-specific operations - Implement ApplicationService, DatabaseService, and ServiceService storage methods - Add extensive unit tests covering CRUD operations and edge cases - Integrate storage subcommand into application, database, and service CLI commands - Add dockerfile-target-build flag support to application creation and update commands Storage operations support: - Persistent volumes: create with optional host paths, update mount paths and names - File storages: create/update with content or file system paths, support directories - Common features: mount path management, read-only detection, preview suffix toggling
Add version check validation across all storage CRUD operations in application, database, and service commands. This ensures the API client meets the minimum version requirement before executing storage operations. Also includes: - Documentation updates for dockerfile-target-build parameter in llms.txt - Field alignment formatting fixes in ApplicationCreateRequest structs
Replace assert.Equal with more specific boolean assertion helpers (assert.True and assert.False) for improved readability and idiomatic Go testing practices.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
list,create,update, anddeletesubcommands for each resource typeChanges
Commands
coolify app storage- Manage application storagescoolify db storage- Manage database storagescoolify svc storage- Manage service storagesFeatures
Models
StoragesResponse- API response containing both storage typesPersistentStorage- Persistent volume configurationFileStorage- File-based storage configurationStorageCreateRequest/StorageUpdateRequest- Request models with proper validationServiceStorageCreateRequest- Service-specific request with resource UUID