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

Fix Pod's ownership to inject metrics collector #1303

Merged
merged 6 commits into from
Sep 3, 2020

Conversation

andreyvelich
Copy link
Member

@andreyvelich andreyvelich commented Aug 18, 2020

Fixes: #1271.

I refactored getKatibJob to correctly inject metrics collector.
getKatibJob is looking for Trial ownership in all pod's nested objects recursively.
These objects should be created ones Pod is mutated.

Also, I moved functions that are not belong to sidecarInjector struct to utils to be consistent with Validation webhook.

/assign @sperlingxx @gaocegege @johnugeorge

@kubeflow-bot
Copy link

This change is Reviewable

Copy link
Member

@sperlingxx sperlingxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fix!
/lgtm

Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Member Author

@andreyvelich andreyvelich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andreyvelich

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@andreyvelich
Copy link
Member Author

/retest

16 similar comments
@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

@gaocegege
Copy link
Member

/retest

@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

1 similar comment
@andreyvelich
Copy link
Member Author

/retest

@andreyvelich andreyvelich force-pushed the issue-1271-pod-ownership branch from 30e3e23 to 7e3bbbf Compare September 1, 2020 13:10
@k8s-ci-robot k8s-ci-robot removed the lgtm label Sep 1, 2020
@andreyvelich
Copy link
Member Author

@gaocegege @johnugeorge @sperlingxx The test passed, can you approve it again, please?

@johnugeorge
Copy link
Member

/lgtm

@andreyvelich
Copy link
Member Author

/retest

1 similar comment
@andreyvelich
Copy link
Member Author

/retest

@k8s-ci-robot k8s-ci-robot removed the lgtm label Sep 2, 2020
@andreyvelich
Copy link
Member Author

/retest

1 similar comment
@andreyvelich
Copy link
Member Author

/retest

@andreyvelich andreyvelich force-pushed the issue-1271-pod-ownership branch from b36e23a to 7e3bbbf Compare September 2, 2020 22:10
@gaocegege
Copy link
Member

I think we need a rebase here.

@andreyvelich andreyvelich force-pushed the issue-1271-pod-ownership branch from af3afa5 to 7952bd2 Compare September 3, 2020 13:10
@andreyvelich
Copy link
Member Author

@gaocegege @johnugeorge I rebased

@johnugeorge
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot merged commit cba4560 into kubeflow:master Sep 3, 2020
@andreyvelich andreyvelich deleted the issue-1271-pod-ownership branch October 6, 2021 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trial Pod's ownership to inject metrics collector sidecar container
6 participants