-
Notifications
You must be signed in to change notification settings - Fork 442
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
Add --connect-timeout flag to katib-db-manager #1937
Add --connect-timeout flag to katib-db-manager #1937
Conversation
702aa4c
to
998d011
Compare
I have force-pushed to restart actions. |
@@ -28,4 +28,3 @@ WORKDIR /app | |||
COPY --from=build-env /bin/grpc_health_probe /bin/ | |||
COPY --from=build-env /go/src/github.com/kubeflow/katib/katib-db-manager /app/ | |||
ENTRYPOINT ["./katib-db-manager"] | |||
CMD ["-w", "kubernetes"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this flag not used before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review! @johnugeorge
Yes, katib-db-manager can not recognize that flag.
$ docker run --platform linux/amd64 -it docker.io/kubeflowkatib/katib-db-manager:v1beta1-9c7d797 -w kubernetes
flag provided but not defined: -w
Usage of ./katib-db-manager:
Thanks @tenzen-y I see that it is overriden in manifests. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: johnugeorge, tenzen-y The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
I added a flag,
--connect-timeout
, to katib-db-manager that sets the time before calling an error on database connection and remove the non-configurable flag,-w kubernetes
, set in katib-db-manager Dockerfile.Also, I fixed a process to set PostgreSQL Database.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1928
Checklist: