-
Notifications
You must be signed in to change notification settings - Fork 710
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
feat(crd): Separate CRD and controller #345
Conversation
Hi @gaocegege. Thanks for your PR. I'm waiting for a kubernetes or tensorflow member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
PTAL, and I think the code also should be updated in google/kubeflow.
|
/test tf-k8s-presubmit |
It seems that the changes fail the e2e test, and I think we should create CRD before the e2e test. Although I do not know where to add the logic. @jlewi Could you guide me? I am not familiar with prow, airflow or kubernetes/test-infra, so I do not find where to add the code about CRD into the test. |
We call the deploy script which installs the helm chart. Is installing the helm chart not sufficient? This should get called before the E2E test runs. |
It looks like setup_cluster failed for you test because we ran out of quota.
It looks like we were leaking K8s clusters so I clean them up so hopefully this will fix the issue. |
Thanks for your comment, and I will have another try. /test tf-k8s-presubmit |
Ready to review, ping @jlewi |
@@ -147,10 +148,11 @@ export MY_POD_NAME=my-pod | |||
Now we are ready to run operator locally: | |||
|
|||
```sh | |||
kubectl create -f examples/crd/crd.yaml |
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.
I think this should be executed after launching tf_operator.
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.
emmm, the operator assumes that the CRD is created so I think it should be run before the creation of operator 🤔
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.
Never mind, it is not a requirement.
@@ -0,0 +1,11 @@ | |||
apiVersion: apiextensions.k8s.io/v1beta1 |
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.
Why put CRD yaml in charts, I think charts is used for Apps not CRDs.
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.
Then where to place the CRD creation? I think we should create it in the charts, or the charts can not be run correctly.
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.
Then where to place the CRD creation?
CRD creation is in the set-up stage.
Charts is excepted to be deployed be helm
automatically.
If you want to create CRD automatically along with TFJobs, maybe we need add some dependency here (not just put a yaml here):
- create CRD first
- deploy a TFJob later
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.
I will file an issue about the question.
Close #281
Signed-off-by: Ce Gao ce.gao@outlook.com
This change is