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

Docs: update standalone.mdx #1271

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions docs/contributor/code-contribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ You will learn the following things in the code contribution guide:
- [How to Create a pull request](#create-a-pull-request)
- [Code Review Guide](#code-review)
- [Formatting guidelines of pull request](#formatting-guidelines)
- [Troubleshooting](#troubleshooting)

## Run KubeVela Locally

Expand Down Expand Up @@ -105,7 +106,7 @@ sudo mv kubebuilder/bin/* /usr/local/kubebuilder/bin
macOS:

```
wget https://storage.googleapis.com/kubebuilder-tools/kubebuilder-tools-1.21.2-darwin-amd64.tar.gz
curl -O https://storage.googleapis.com/kubebuilder-tools/kubebuilder-tools-1.21.2-darwin-amd64.tar.gz
tar -zxvf kubebuilder-tools-1.21.2-darwin-amd64.tar.gz
mkdir -p /usr/local/kubebuilder/bin
sudo mv kubebuilder/bin/* /usr/local/kubebuilder/bin
Expand Down Expand Up @@ -263,7 +264,7 @@ Before start, please make sure you have already started the vela controller envi
make run-apiserver
```

By default, the apiserver will serving at "0.0.0.0:8000".
By default, the apiserver will be serving at "0.0.0.0:8000".

Get the VelaUX code by:

Expand Down Expand Up @@ -471,4 +472,25 @@ Learn how to write the docs by the following guide:
* [kubevela.io Developer Guide](https://github.com/kubevela/kubevela.io/blob/main/README.md)
* [Update KubeVela.io CLI Reference Doc](./cli-ref-doc.md)

Great, you have complete the lifecycle of code contribution, try to [join the community as a member](https://github.com/kubevela/community/blob/main/community-membership.md) if you're interested.
Great, you have complete the lifecycle of code contribution, try to [join the community as a member](https://github.com/kubevela/community/blob/main/community-membership.md) if you're interested.

## Troubleshooting

* Errors executing `make core-run`

The `core-run` target uses the `fmt` target to check the format of the files. This step also make use of goimports which
may not have the same version as the base golang installation. For older versions of goimports, you may see the following
error:

````bash
$ make core-run
go fmt ./...
/<your_go_binary_path>/go/bin/goimports -local github.com/oam-dev/kubevela -w $(go list -f {{.Dir}} ./...)
/<kubevela_clone_path>/kubevela/pkg/cache/informer.go:46:25: expected ']', found any
````

To solve this issue, execute:

```bash
go install golang.org/x/tools/cmd/goimports@latest
```
2 changes: 1 addition & 1 deletion docs/installation/standalone.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Export kubeconfig and list all built-in ComponentDefinition:

:::tip
- When executing `velad install`, vela CLI (`vela`) is already installed and add to `PATH` automatically. So you can use it directly.
- A file uesd to configure access to clusters is called *kubeconfig file*
- A file used to configure access to clusters is called *kubeconfig file*
:::

<details>
Expand Down
26 changes: 24 additions & 2 deletions versioned_docs/version-v1.9/contributor/code-contribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ You will learn the following things in the code contribution guide:
- [How to Create a pull request](#create-a-pull-request)
- [Code Review Guide](#code-review)
- [Formatting guidelines of pull request](#formatting-guidelines)
- [Troubleshooting](#troubleshooting)

## Run KubeVela Locally

Expand Down Expand Up @@ -105,7 +106,7 @@ sudo mv kubebuilder/bin/* /usr/local/kubebuilder/bin
macOS:

```
wget https://storage.googleapis.com/kubebuilder-tools/kubebuilder-tools-1.21.2-darwin-amd64.tar.gz
curl -O https://storage.googleapis.com/kubebuilder-tools/kubebuilder-tools-1.21.2-darwin-amd64.tar.gz
tar -zxvf kubebuilder-tools-1.21.2-darwin-amd64.tar.gz
mkdir -p /usr/local/kubebuilder/bin
sudo mv kubebuilder/bin/* /usr/local/kubebuilder/bin
Expand Down Expand Up @@ -471,4 +472,25 @@ Learn how to write the docs by the following guide:
* [kubevela.io Developer Guide](https://github.com/kubevela/kubevela.io/blob/main/README.md)
* [Update KubeVela.io CLI Reference Doc](./cli-ref-doc.md)

Great, you have complete the lifecycle of code contribution, try to [join the community as a member](https://github.com/kubevela/community/blob/main/community-membership.md) if you're interested.
Great, you have complete the lifecycle of code contribution, try to [join the community as a member](https://github.com/kubevela/community/blob/main/community-membership.md) if you're interested.

## Troubleshooting

* Errors executing `make core-run`

The `core-run` target uses the `fmt` target to check the format of the files. This step also make use of goimports which
may not have the same version as the base golang installation. For older versions of goimports, you may see the following
error:

````bash
$ make core-run
go fmt ./...
/<your_go_binary_path>/go/bin/goimports -local github.com/oam-dev/kubevela -w $(go list -f {{.Dir}} ./...)
/<kubevela_clone_path>/kubevela/pkg/cache/informer.go:46:25: expected ']', found any
````

To solve this issue, execute:

```bash
go install golang.org/x/tools/cmd/goimports@latest
```
Loading