# `mix bonny.gen.manifest`
[🔗](https://github.com/coryodaniel/bonny/blob/v1.5.0/lib/mix/tasks/bonny.gen.manifest.ex#L1)

Generates the Kubernetes YAML manifest for this operator

mix bonny.gen.manifest expects a docker image name if deploying to a cluster. You may optionally provide a namespace.

## Examples

The `image` switch is required.

Options:
* --image (docker image to deploy)
* --namespace (of service account and deployment; defaults to "default")
* --out (path to save manifest; defaults to "manifest.yaml")

*Deploying to kubernetes:*

```shell

docker build -t $(YOUR_IMAGE_URL) .
docker push $(YOUR_IMAGE_URL)

mix bonny.gen.manifest --image $(YOUR_IMAGE_URL):latest --namespace default
kubectl apply -f manifest.yaml -n default
```

To skip the `deployment` for running an operator outside of the cluster (like in development) simply omit the `--image` flag:

```shell
mix bonny.gen.manifest
```

# `run`

```elixir
@spec run(list()) :: any()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
