-
Notifications
You must be signed in to change notification settings - Fork 712
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
copy labels and anotations to pod from pod template #542
Conversation
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
Thanks for your contribution! Please fix the error in Travis CI |
And, your commit belongs to a unrecognised author, could you please commit it with your own git account? |
ef41842
to
cb7b91b
Compare
/ok-to-test |
CLA updated |
@u2takey I think the commit author should be yourself, or it can not pass the CLA check. |
CLAs look good, thanks! |
thx @gaocegege, cla issue fixed |
Generally LGTM, would you mind adding some unit test cases? If you have no time I can do it for you. Thanks for your contribution! |
@gaocegege some test added |
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.
@u2takey Thanks, can you show more use cases why we should copy labels and annotations to pod from tfjob? I think pod and tfjob can have different values of the same label key, for example, tfjob have a label "key"="value1", but pod have a label "key"="value2".
@ScorpioCPH As for annotations I think it works for me. As for the labels, I think the labels used in pod are hardly used in jobs. But if they have the same key, it is indeed a problem. @u2takey WDYT |
@ScorpioCPH sorry to wrong commit message. Not copy labels from |
Does it LGTY? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gaocegege 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 |
there is no reason to drop pod's labels and annotations from tfjob's PodTemplateSpec
This change is