doc: quickstart for Helm projects and more details for the migration guide#3552
doc: quickstart for Helm projects and more details for the migration guide#3552camilamacedo86 merged 4 commits intooperator-framework:masterfrom camilamacedo86:helm-doc-quick
Conversation
| chart: helm-charts/nginx | ||
| # +kubebuilder:scaffold:watch | ||
| ``` | ||
|
|
There was a problem hiding this comment.
Bottom note about adding additional APIs, might be placed here, to be relevant.
| **NOTE** Additional CR/CRD's can be added to the project by running, for example, the command :`operator-sdk create api --group=example --version=v1alpha1 --kind=AppService` |
There was a problem hiding this comment.
I did not add it at the latest version. After check all again, I saw that it is at the end of the file already.
|
@camilamacedo86 Given how simple this quickstart will be, I'm thinking we should eliminate all of the headers and basically just list the commands one after the other, maybe with single sentence descriptions of what each command does. I think we want this to be simple for people to copy and paste from, so combining several commands in a |
| **Note** Ensure that you use the same values for the flags to recreate the same Helm chart and API. If you have | ||
| more than one chart or API you can add them via `operator-sdk create api` command. For further information check the [Helm Quickstart][quickstart]. |
There was a problem hiding this comment.
I think this change makes the doc less clear. I think we should revert this, and add an extra sentence about --version and --kind
| **Note** Ensure that you use the same values for the flags to recreate the same Helm chart and API. If you have | |
| more than one chart or API you can add them via `operator-sdk create api` command. For further information check the [Helm Quickstart][quickstart]. | |
| Now that we have our new project initialized, we need to re-create each of our APIs. | |
| Using our API example from earlier (`cache.example.com`), we'll use `cache` for the | |
| `--group` flag. | |
| For `--version` and `--kind`, we use `spec.versions[0].name` and `spec.names.kind`, respectively. |
| more than one chart or API you can add them via `operator-sdk create api` command. For further information check the [Helm Quickstart][quickstart]. | ||
|
|
||
| For each API in the existing project, run: | ||
| ```sh |
There was a problem hiding this comment.
This example create api codeblock needs to be updated. There is no longer an --api-version flag.
| In case your project has customizations in the `deploy/operator.yaml` then, it needs to be port to | ||
| `config/manager/manager.yaml`. However, note that the following env vars are no longer used. |
There was a problem hiding this comment.
| In case your project has customizations in the `deploy/operator.yaml` then, it needs to be port to | |
| `config/manager/manager.yaml`. However, note that the following env vars are no longer used. | |
| If your existing project has customizations in `deploy/operator.yaml`, they need to be ported to | |
| `config/manager/manager.yaml`. If you are passing custom arguments in your deployment, make sure to also update `config/default/auth_proxy_patch.yaml`. | |
| Note that the following environment variables are no longer used. |
|
|
||
| This guide walks through an example of building a simple nginx-operator powered by [Helm][helm-official] using tools and libraries provided by the Operator SDK. | ||
| This guide walks through an example of building a simple nginx operator | ||
| powered by Helm using tools and libraries provided by the Operator SDK. |
There was a problem hiding this comment.
We should add the official Helm link back. I may have accidentally dropped that in the commit that I pushed.
joelanford
left a comment
There was a problem hiding this comment.
/lgtm
After final comments are addressed.
|
New changes are detected. LGTM label has been removed. |
Description of the change:
Motivation for the change:
#3327