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

Custom CRD: Add primary pod labels #1305

Merged

Conversation

andreyvelich
Copy link
Member

Related: #1214.

I named API: PrimaryPodLabels instead of PrimaryPodLabel because user can set more than 1 label there.
PrimaryPodLabels defines labels that mutated Pod must have.
I didn't remove isMasterRole to not brake current test examples.
Later we can update all examples with new APIs and remove redundant code.

Also I generated codegens and SDK.

/assign @gaocegege @johnugeorge @sperlingxx

@kubeflow-bot
Copy link

This change is Reviewable

@andreyvelich
Copy link
Member Author

/retest

@@ -207,6 +207,9 @@ type TrialTemplate struct {

// List of parameters that are used in trial template
TrialParameters []TrialParameterSpec `json:"trialParameters,omitempty"`

// Labels that determines if pod needs to be injected by Katib sidecar container
PrimaryPodLabels map[string]string `json:"primaryPodLabels,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

So for TFJob, user has to explicitly add primary labels ?

Copy link
Member Author

@andreyvelich andreyvelich Sep 2, 2020

Choose a reason for hiding this comment

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

User should specify it only in Experiment.
In TFJob for master pod, tfjob-controller automatically adds master label.

As I said before we can set default values for PrimaryPodLabels for Kubeflow operators (TFJob, MPIJob).

Copy link
Member

Choose a reason for hiding this comment

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

SGTM

@johnugeorge
Copy link
Member

/lgtm
/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johnugeorge

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

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

/retest

3 similar comments
@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

@andreyvelich
Copy link
Member Author

/retest

@johnugeorge
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot merged commit d58b6a1 into kubeflow:master Sep 3, 2020
@andreyvelich andreyvelich deleted the issue-1214-primary-pod-label branch October 3, 2021 00:41
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.

6 participants