Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

add support for pytorchjob crd version 'v1' #2061

Merged
merged 2 commits into from
Feb 21, 2020

Conversation

shangdibufashi
Copy link
Contributor

As supported by kubeflow 0.7, the new crd version v1 has been added for TFJob about two month ago via commit #1814 . So the version v1 should be added for PyTorchJob

@msftclas
Copy link

msftclas commented Feb 15, 2020

CLA assistant check
All CLA requirements met.

"singular": "pytorchjob"
}
},
"apiVersion": "apiextensions.k8s.io/v1beta1",
Copy link
Contributor

Choose a reason for hiding this comment

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

v1beta1?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Already have test it. it's working :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Checked again, https://github.com/kubeflow/pytorch-operator/blob/master/examples/mnist/v1/pytorch_job_mnist_nccl.yaml using apiVersion: "kubeflow.org/v1" instead of "apiVersion": "apiextensions.k8s.io/v1beta1".

Will get back after doing more tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the test, better to use apiVersion: "kubeflow.org/v1" since it's more clear.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tests have been done. Turns out both "kubeflow.org/v1" and "apiextensions.k8s.io/v1beta1" are working well. As you mentioned, better to use apiVersion: "kubeflow.org/v1" since it's more clear. The code has been updated, please kindly have a look

@chicm-ms chicm-ms merged commit 89de406 into microsoft:master Feb 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants