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

Use local copy of RunPolicy by MPI-operator #513

Merged
merged 2 commits into from
Jan 31, 2023

Conversation

mimowo
Copy link
Contributor

@mimowo mimowo commented Jan 30, 2023

This is a preparatory commit to add suspend field to RunPolicy in #511

Steps performed:

  • copy the RunPolicy from common to types.go
  • fix compilation errors by using the local RunPolicy definition
  • run make generate
  • run make all
  • regenerate openapi_generated.go by ./hack/python-sdk/gen-sdk.sh (with commented out rollback)

Steps performed:
- copy the `RunPolicy` from common to `types.go`
- fix compilation errors by using the local RunPolicy definition
- run `make generate`
- run `make all`
- regenerate openapi_generated.go by `./hack/python-sdk/gen-sdk.sh` (with commented out rollback)
@mimowo
Copy link
Contributor Author

mimowo commented Jan 30, 2023

/assign @tenzen-y

@mimowo
Copy link
Contributor Author

mimowo commented Jan 30, 2023

@alculquicondor please review.

type RunPolicy struct {
// CleanPodPolicy defines the policy to kill pods after the job completes.
// Default to Running.
CleanPodPolicy *common.CleanPodPolicy `json:"cleanPodPolicy,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

Can you copy the CleanPodPolicy from kubeflow/common to this repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, it wasn't clear to me from the so far discussions so did it with minimal changes required to place the suspend field, but let me update.

Copy link
Member

Choose a reason for hiding this comment

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

It might be better to copy all types, and members to this repo since moving only part of those might make double management.

cc: @alculquicondor

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copied, PTAL at the last commit.


// SchedulingPolicy defines the policy related to scheduling, e.g. gang-scheduling
// +optional
SchedulingPolicy *common.SchedulingPolicy `json:"schedulingPolicy,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

Can you copy the SchedulingPolicy from kubeflow/common to this repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As above, about to copy too.

@mimowo
Copy link
Contributor Author

mimowo commented Jan 30, 2023

/assign @alculquicondor
Please review, could you also approve running tests on the PR?

@tenzen-y
Copy link
Member

@terrytangyuan Can you approve CI?

@alculquicondor
Copy link
Collaborator

alculquicondor commented Jan 30, 2023

/ok-to-test

EDIT: no, it didn't work

@tenzen-y
Copy link
Member

/ok-to-test

EDIT: no, it didn't work

Yes, we can not start CI by prow command. Repository admins need to approve CI manually.

Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

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

Thanks!

/lgtm
/approve

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: terrytangyuan

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

@terrytangyuan
Copy link
Member

/hold

Copy link
Member

@tenzen-y tenzen-y left a comment

Choose a reason for hiding this comment

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

@mimowo Thanks!
/lgtm

/assign @alculquicondor

@mimowo
Copy link
Contributor Author

mimowo commented Jan 31, 2023

@alculquicondor please complete the review and cancel the hold if it looks good so I can rebase the other PR.

Copy link
Collaborator

@alculquicondor alculquicondor left a comment

Choose a reason for hiding this comment

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

/lgtm

@alculquicondor
Copy link
Collaborator

/hold cancel

@alculquicondor
Copy link
Collaborator

/assign @terrytangyuan

@google-oss-prow google-oss-prow bot merged commit 0b32af3 into kubeflow:master Jan 31, 2023
@mimowo mimowo deleted the copy-runpolicy branch March 18, 2023 18:57
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.

None yet

4 participants