feat: add configurable app directory with --appdir flag#670
feat: add configurable app directory with --appdir flag#670shwetha-s-poojary wants to merge 8 commits intoIBM:mainfrom
Conversation
0467e36 to
1bb7716
Compare
9476ae4 to
884921e
Compare
|
The requirement was to add custom basedir support. We implemented it for CLI application create first (via The CLI approach has a critical flaw: application create sets In my opinion it's better to keep custom
|
make sense, the other enhancement will impact this |
5d432a5 to
88ac007
Compare
1cb074d to
9506b5f
Compare
9cb8f92 to
a3ab079
Compare
- Add --appdir flag to catalog configure and application create commands
- Introduce constants.DefaultAppDir as single source of truth for default path
- Add early permission validation before any operations
- Update all templates to use dynamic appDir from values
- Set AI_SERVICES_APP_DIR environment variable for runtime path resolution
- Update vars.ModelDirectory dynamically based on appDir
- Modify application templates to use {{ .Values.appDir }}
- Update test files to use constants.GetApplicationsPath()
Fixes: Hardcoded /var/lib/ai-services path throughout codebase
Enables: Users to specify custom storage locations for AI services data
Signed-off-by: shwetha-s-poojary <shwetha.s-pooojary@ibm.com>
…bdirectory - Rename validateAppDir to validateBaseDir (moved to utils) - Change all appDir references to baseDir in code, comments, and YAML - Convert application create --basedir flag to --params baseDir - Create ai-services/ subdirectory to isolate data - Fix GetBaseDir() to process custom path Signed-off-by: shwetha-s-poojary <shwetha.s-pooojary@ibm.com>
Signed-off-by: shwetha-s-poojary <shwetha.s-pooojary@ibm.com>
Signed-off-by: shwetha-s-poojary <shwetha.s-pooojary@ibm.com>
- Move path utilities from constants to utils package - Remove ModelDirectory global variable - Simplify baseDir configuration in values.yaml - Update documentation and test expectations Signed-off-by: shwetha-s-poojary <shwetha.s-pooojary@ibm.com>
…dateBaseDir Signed-off-by: shwetha-s-poojary <shwetha.s-pooojary@ibm.com>
Signed-off-by: shwetha-s-poojary <shwetha.s-pooojary@ibm.com>
a3ab079 to
c94f400
Compare
Signed-off-by: shwetha-s-poojary <shwetha.s-pooojary@ibm.com>
c94f400 to
9dbba61
Compare
What does this PR include?
Fixes: #625
Enables: Users to specify custom storage locations for AI services data
Results: