fix: embed compose files, fix PostgreSQL refs, align Go module path#46
Conversation
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
There was a problem hiding this comment.
Code Review
This pull request renames the project organization from kubeorchestra to kubeorch, updates the database from PostgreSQL to MongoDB, and introduces embedded Docker Compose configurations for various development and production environments. Key feedback includes updating image registry paths in the new Compose files to reflect the organization change, ensuring consistent environment variable naming for the UI service, and addressing hardcoded container names in the exec command that currently prevent it from working correctly in development or hybrid modes.
08665e8 to
2ad0bcb
Compare
…urity - Embed all docker-compose files into binary via go:embed so orchcli init writes them to docker/ — fixes broken init+start flow - Fix Go module path: github.com/kubeorchestra/cli → github.com/kubeorch/cli to match GitHub org; fixes version injection via ldflags in releases - Replace all PostgreSQL references with MongoDB (waitForMongoDB, exec service map, next-steps output) - Auto-generate core/config.yaml (with random secrets) and ui/.env.local during orchcli init based on dev mode - Fix Docker image names: ghcr.io/kubeorchestra/* → ghcr.io/kubeorch/* - Fix exec.go to use actual running container name (resolves -dev/-hybrid suffix issue in dev and hybrid modes) - Fix API_URL_INTERNAL consistency across all compose files - Fix lint: replace magic numbers with named constants (dirPerm, configFilePerm, composeFilePerm, secretKeyBytes) - Fix gosec G306: add #nosec annotations for compose/env files (0644 is intentional — these files contain no secrets) - Fix Windows CI: add shell: bash to steps using bash syntax Fixes #45 Signed-off-by: Mohit Nagaraj <mohitnagaraj20@gmail.com>
2ad0bcb to
efcfd03
Compare
Summary
go:embedsoorchcli initwrites them todocker/— fixes the brokenorchcli init+orchcli startflowwaitForMongoDB, exec service map, next-steps output) to match actual compose filesgithub.com/kubeorchestra/clitogithub.com/kubeorch/clito match the GitHub org and fix version injection via ldflags in the release workflowTest plan
go buildcompiles successfullyorchcli initcreates compose files indocker/orchcli start -dstarts services without "compose file not found" errororchcli statusshows MongoDB health, not PostgreSQLorchcli exec mongodbopens mongoshorchcli --versionshows actual version instead ofdevFixes #45
Related: KubeOrch/docs#14