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

notebook controller API reference docs #3723

Closed
jlewi opened this issue Jul 23, 2019 · 8 comments · Fixed by kubeflow/website#1673
Closed

notebook controller API reference docs #3723

jlewi opened this issue Jul 23, 2019 · 8 comments · Fixed by kubeflow/website#1673

Comments

@jlewi
Copy link
Contributor

jlewi commented Jul 23, 2019

We need to publish API reference docs for the notebook controller as part of going beta and eventually 1.0.

See go/tf-operator-1-0

@jlewi jlewi added priority/p1 area/jupyter Issues related to Jupyter labels Jul 23, 2019
@jlewi jlewi added this to To Do in jupyter-1.0 via automation Jul 23, 2019
@jlewi jlewi added this to To Do in 0.7.0 via automation Jul 23, 2019
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label improvement/enhancement to this issue, with a confidence of 0.66. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@jlewi jlewi added this to To do in KF1.0 via automation Aug 26, 2019
@jlewi
Copy link
Contributor Author

jlewi commented Aug 26, 2019

Bump to P1 because this is needed for 1.0.

The docs should be published here:
https://www.kubeflow.org/docs/reference/

It looks like the existing docs are generated using
gen-crd-api-reference-docs

@jlewi jlewi added this to To Do in Needs Triage Sep 9, 2019
@jlewi jlewi removed this from To Do in Needs Triage Sep 9, 2019
@stale
Copy link

stale bot commented Nov 25, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot closed this as completed Dec 2, 2019
jupyter-1.0 automation moved this from To Do to Done Dec 2, 2019
0.7.0 automation moved this from To Do to Done Dec 2, 2019
KF1.0 automation moved this from To do to Done Dec 2, 2019
@jlewi jlewi reopened this Jan 6, 2020
jupyter-1.0 automation moved this from Done to To Do Jan 6, 2020
0.7.0 automation moved this from Done to To Do Jan 6, 2020
KF1.0 automation moved this from Done to In progress Jan 6, 2020
@stale stale bot removed the lifecycle/stale label Jan 6, 2020
@jlewi jlewi moved this from To Do to notebook-controller 1.0 in jupyter-1.0 Jan 6, 2020
@jlewi
Copy link
Contributor Author

jlewi commented Jan 6, 2020

Bump to P0 because its required for 1.0.

@zhenghuiwang
Copy link
Contributor

Tried the same tool for generating TF1.0 ref doc, but failed. ahmetb/gen-crd-api-reference-docs#12 (comment)

@jlewi
Copy link
Contributor Author

jlewi commented Jan 27, 2020

/lifecycle frozen

@jlewi jlewi moved this from In progress to Docs in KF1.0 Jan 29, 2020
@zhenghuiwang
Copy link
Contributor

zhenghuiwang commented Feb 12, 2020

We can't auto gen docs following this guide now. Summarizing the problems and a workaround:

Problems

  1. The gen-crd-api-reference-docs tool doesn't work well with go module. Specifically it doesn't recognize the replace statement in go module, such as
replace github.com/kubeflow/kubeflow/components/common => ../common

which is common in kubeflow/kubeflow.

  1. Current version of kubernetes/gengo stops generating doc.go, which gen-crd-api-docs tool still relies on. (see more discussion at [wip] Add support for kubebuilder v2 ahmetb/gen-crd-api-reference-docs#15 (comment)) (It is a non-trivial fix of the doc tool to me)

Workaround

  1. Create a new Go package for your target CRD api package, e.g. (I created https://github.com/zhenghuiwang/nbctrler to clone kubeflow/components/notebook-controller)
  2. Remove all replace statement in go.mod.

If your target go.mod doesn't have replace statement, you can skip step 1,2.

  1. Manually create doc.go with these comments:
// Package v1 contains API Schema definitions for the kubeflow.org v1 API group
// +kubebuilder:object:generate=true
// +groupName=kubeflow.org
package v1
  1. Download the gen-doc tool and run command like this to gen doc locally.
./gen-crd-api-reference-docs -config /Users/zhenghui/kubeflow/website/gen-api-reference/kubeflow-config.json -api-dir "github.com/zhenghuiwang/nbctrler/api/v1" -out-file tmp_notebook.md

/cc @richardsliu @kunmingg @abhi-g

@abhi-g
Copy link
Member

abhi-g commented Feb 12, 2020 via email

jupyter-1.0 automation moved this from notebook-controller 1.0 to Done Feb 12, 2020
0.7.0 automation moved this from To Do to Done Feb 12, 2020
KF1.0 automation moved this from Docs to Done Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
0.7.0
  
Done
KF1.0
  
Done
jupyter-1.0
  
Done
Development

Successfully merging a pull request may close this issue.

4 participants