Skip to content

Commit

Permalink
modify netlify file to fix ci failure
Browse files Browse the repository at this point in the history
  • Loading branch information
majinghe committed Dec 9, 2020
1 parent f174a3f commit 5caabbb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
8 changes: 6 additions & 2 deletions docs/book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

- [部署 cert manager](./cronjob-tutorial/cert-manager.md)
- [部署 webhooks](./cronjob-tutorial/running-webhook.md)

- [编写测试](./cronjob-tutorial/writing-tests.md)

- [结语](./cronjob-tutorial/epilogue.md)
Expand All @@ -49,7 +49,11 @@

- [迁移指南](./migration/guide.md)

- [Single Group 到 Multi-Group](./migration/multi-group.md)
- [Kubebuilder v2 vs v3](./migration/v2vsv3.md)

- [迁移指南](./migration/migration_guide_v2tov3.md)

- [Single Group to Multi-Group](./migration/multi-group.md)

---

Expand Down
16 changes: 8 additions & 8 deletions docs/book/src/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ arch=$(go env GOARCH)
curl -L https://go.kubebuilder.io/dl/2.3.1/${os}/${arch} | tar -xz -C /tmp/
```

If you are using a Kubebuilder plugin version less than version `v3+`, you must configure the Kubernetes binaries required for the [envtest][envtest], run:
If you are using a Kubebuilder plugin version less than version `v3+`, you must configure the Kubernetes binaries required for the [envtest][envtest], run:

```bash
# 将 kubebuilder 移动到一个长期的路径,并将其加入环境变量 path 中
# 将 kubebuilder 移动到一个长期的路径,并将其加入环境变量 path 中
# (如果你把 kubebuilder 放在别的地方,你需要额外设置 KUBEBUILDER_ASSETS 环境变量)

sudo mv /tmp/kubebuilder_2.3.1_${os}_${arch} /usr/local/kubebuilder
Expand Down Expand Up @@ -64,7 +64,7 @@ kubebuilder init --domain my.domain

如果你的 kubebuilder 安装目录不在 `$GOPATH` 中,你需要运行 `go mod init <modulename>` 来告诉 kubebuilder 和 Go module 的基本导入路径。

若要进一步了解 `GOPATH`,参阅 [如何编写 Go 代码][how-to-write-go-code-golang-docs] 页面文档中的 [GOPATH 环境变量][GOPATH-golang-docs] 章节。
若要进一步了解 `GOPATH`,参阅 [如何编写 Go 代码][how-to-write-go-code-golang-docs] 页面文档中的 [GOPATH 环境变量][GOPATH-golang-docs] 章节。

</aside>

Expand Down Expand Up @@ -153,7 +153,7 @@ type Guestbook struct {

你的控制器将自动使用你的 `kubeconfig` 文件中的当前上下文(即无论群集 `kubectl cluster-info` 显示的是什么群集)。

</aside>
</aside>

将 CRD 安装到集群中

Expand Down Expand Up @@ -192,9 +192,9 @@ make deploy IMG=<some-registry>/<project-name>:tag
<aside class="note">
<h1>RBAC 错误</h1>

如果你遇到 RBAC 错误,你可能需要授予自己集群管理员权限或以管理员身份登录。请参考 [在 GKE 集群 v1.11.x 及以上版本上使用 Kubernetes RBAC 的组件依赖][pre-rbc-gke] 可能是你的情况。
如果你遇到 RBAC 错误,你可能需要授予自己集群管理员权限或以管理员身份登录。请参考 [在 GKE 集群 v1.11.x 及以上版本上使用 Kubernetes RBAC 的组件依赖][pre-rbc-gke] 可能是你的情况。

</aside>
</aside>

## 卸载 CRD

Expand All @@ -212,12 +212,12 @@ make uninstall
make undeploy
```

## 下一步
## 下一步

现在,参照 [CronJob 教程][cronjob-tutorial],通过开发一个演示示例项目更好地理解 kubebuilder 的工作原理。

[pre-rbc-gke]: https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control#iam-rolebinding-bootstrap
[cronjob-tutorial]: https://book.kubebuilder.io/cronjob-tutorial/cronjob-tutorial.html
[GOPATH-golang-docs]: https://golang.org/doc/code.html#GOPATH
[how-to-write-go-code-golang-docs]: https://golang.org/doc/code.html
[how-to-write-go-code-golang-docs]: https://golang.org/doc/code.html
[envtest]: https://book.kubebuilder.io/reference/testing/envtest.html
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build]
base = "docs/book"
command = "./install-and-build.sh"
publish = "book"
publish = "docs/book/book"


# Standard Netlify redirects
Expand Down

0 comments on commit 5caabbb

Please sign in to comment.