Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotelReservation: mountPath in openshift/profile-deployment.yaml looks incorrect #329

Open
Feelas opened this issue Apr 3, 2024 · 0 comments

Comments

@Feelas
Copy link

Feelas commented Apr 3, 2024

Hello,
is there any specific reason for why the mountPath in openshift/profile-deployment.yaml is set to a different path than the rest of config.json mounts on OpenShift?

- mountPath: /go/src/github.com/harlow/go-micro-services/config.json

When used as-is, the profile deployment just crashes due to incorrect mongodb URI:

2024-04-03T08:16:43Z INF workspace/cmd/profile/db.go:163 > Attempting connection to mongodb://
2024-04-03T08:16:43Z PNC workspace/cmd/profile/db.go:168 > error parsing uri: must have at least 1 host
panic: error parsing uri: must have at least 1 host

Setting mountPath to "config.json" seems to fix this crash and causes the profile service to start up correctly.

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

No branches or pull requests

1 participant