-
Notifications
You must be signed in to change notification settings - Fork 448
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
Fix default metricsController wrong args #550
Conversation
Can you explain why is this needed? |
https://github.com/kubeflow/katib/blob/master/cmd/metricscollector/v1alpha2/Dockerfile#L16 entrypoint has defined |
This is the v1alpha1 default metric collector: https://github.com/kubeflow/katib/blob/master/manifests/v1alpha1/studyjobcontroller/metricsControllerConfigMap.yaml#L27 How did it work before? |
@richardsliu I think, it works with both way. |
I checked that metricsConlloector images (v1alpha1) in Kubeflow 0.5.1 release, find that its entrypoint is null anyway, that's why old args can work. but I checked v1alpha2 CI build, its entrypoint matches exactly what its Dockerfile specified. Anyway, we can add
|
First, I think we need this PR. Because we should not add The reason why it works for v1alpha1 without this PR, is that the v1alpha1 image is built based on older commits. In older commit like 3d4cd04#diff-864b07fc4cad5d634db8509ba7c9e494L13 , we do not have ENTRYPOINT at that time. Then Docker container's command will be correct. The field is introduced in 287e503#diff-93a859e37952fbfb40d2778d7ac4b7e1R16 . After this commit, we will not be able to run the metrics collector becuase of a unknown arguments Thus, it is a PR that we need. Thanks @hougangliu |
Did I explain clearly @richardsliu I think it is a problem because of the lack of regression testing |
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.
/lgtm
287e503#diff-93a859e37952fbfb40d2778d7ac4b7e1R16 introducing ENTRYPOINT can explain why v1alpha1 default metric collector can work well before this PR (More exactly it can work before #527 merged). |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hougangliu 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 |
Fixes: #549
This change is