-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update instructions for building kubectl-retina (#143)
I previously removed the kubectl-retina container and kubectl-retina-image Make targets in #112, which transitioned to building kubectl-retina artifacts with GoReleaser and attaching tarballs to the GitHub releases instead of publishing images. That change was made for Krew #108. This change updates the docs for building kubectl-retina to show how to simply build it with `go build`. Explanation was also added describing how to build for all supported platforms with GoReleaser. Signed-off-by: Evan Baker <[email protected]>
- Loading branch information
Showing
7 changed files
with
972 additions
and
241 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ hack/tools/bin | |
.vscode/ | ||
|
||
dist/ | ||
bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,9 +41,9 @@ Prerequisites: Go, Helm | |
|
||
1. Clone the repo, then install Retina on your Kubernetes cluster | ||
|
||
```bash | ||
make helm-install | ||
``` | ||
```bash | ||
make helm-install | ||
``` | ||
|
||
2. Follow steps in [Using Prometheus and Grafana](https://retina.sh/docs/installation/prometheus-unmanaged) to set up metrics collection and visualization. | ||
|
||
|
@@ -55,22 +55,23 @@ Currently, Retina CLI only supports Linux. | |
|
||
- Option 1: Download from Release | ||
|
||
Download `kubectl-retina` from the latest [Retina release](https://github.com/microsoft/retina/releases). | ||
Download the correct `kubectl-retina` package for your platform from the latest [Retina release](https://github.com/microsoft/retina/releases). | ||
Feel free to move the binary to `/usr/local/bin/`, or add it to your `PATH` otherwise. | ||
|
||
- Option 2: Build from source | ||
|
||
Requirements: | ||
|
||
- go 1.21 or newer | ||
- GNU make | ||
|
||
Clone the Retina repo and execute: | ||
|
||
```shell | ||
make install-kubectl-retina | ||
go build -o bin/kubectl-retina cli/main.go | ||
``` | ||
|
||
and move bin/kubectl-retina in to your $PATH. | ||
|
||
Execute Retina: | ||
|
||
```shell | ||
|
@@ -85,15 +86,15 @@ Prerequisites: Go, Helm | |
|
||
1. Clone the repo, then install Retina with Capture operator support on your Kubernetes cluster | ||
|
||
```bash | ||
make helm-install-with-operator | ||
``` | ||
```bash | ||
make helm-install-with-operator | ||
``` | ||
|
||
2. Follow steps in [Capture CRD](https://retina.sh/docs/captures/#option-2-capture-crd-custom-resource-definition) for documentation of the CRD and examples for setting up Captures. | ||
|
||
## Contributing | ||
|
||
This project welcomes contributions and suggestions. Most contributions require you to agree to a | ||
This project welcomes contributions and suggestions. Most contributions require you to agree to a | ||
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us | ||
the rights to use your contribution. For details, visit <https://cla.opensource.microsoft.com>. | ||
|
||
|
@@ -130,7 +131,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope | |
|
||
For bugs or feature requests, open an [issue](https://github.com/microsoft/retina/issues). | ||
For security or vulnerability concerns, see [SECURITY.md](SECURITY.md). | ||
For other communication, contact the maintainers at <[email protected]> | ||
For other communication, contact the maintainers at <[email protected]> | ||
|
||
[goreport-img]: https://goreportcard.com/badge/github.com/microsoft/retina | ||
[goreport]: https://goreportcard.com/report/github.com/microsoft/retina | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.