-
Notifications
You must be signed in to change notification settings - Fork 1.6k
📖adding a note in deploy-image plugin doc #2854
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
Conversation
a8046e7
to
a96e58c
Compare
``` | ||
|
||
<aside class="note"> | ||
<h1> Running operator locally </h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<h1> Running operator locally </h1> | |
<h1>Using make run</h1> | |
kubebuilder create api --group example.com --version v1alpha1 --kind Memcached --image=memcached:1.6.15-alpine --image-container-command="memcached,-m=64,modern,-v" --image-container-port="11211" --run-as-user="1001" --plugins="deploy-image/v1-alpha" | ||
``` | ||
|
||
<aside class="note"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<aside class="note"> | |
<aside class="warning"> | |
<aside class="note"> | ||
<h1> Running operator locally </h1> | ||
|
||
For running an operator made with deploy-image plugin locally, the envvar added in `config/manager/manager.yaml` which stores the value of the image needs to be exported before running the operator locally or out of the cluster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For running an operator made with deploy-image plugin locally, the envvar added in `config/manager/manager.yaml` which stores the value of the image needs to be exported before running the operator locally or out of the cluster. | |
The `make run` will execute the `main.go` outside of the cluster to let you test the project running it locally. Note that by using this plugin the Operand image informed will be stored via an environment variable in the `config/manager/manager.yaml` manifest. | |
Therefore, before run `make run` you need to export any environment variable that you might have. Example: | |
```sh | |
export MEMCACHED_IMAGE="memcached:1.4.36-alpine" |
6f89248
to
59fc153
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, NikhilSharmaWe The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Description
Added a note in deploy-image plugin documentation that users should keep in mind while running the operator locally.