Skip to content

Commit 44c755b

Browse files
authored
doc/sdk-cli-reference: update cli ref (#956)
1 parent 81b9a45 commit 44c755b

File tree

1 file changed

+6
-23
lines changed

1 file changed

+6
-23
lines changed

doc/sdk-cli-reference.md

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Prints the most recent Golang packages and versions required by operators. Print
9090

9191
### Flags
9292

93-
* `--as-file` Print packages and versions in Gopkg.toml format.
93+
* `--as-file` - Print packages and versions in Gopkg.toml format.
9494

9595
### Example
9696

@@ -143,25 +143,6 @@ pkg/apis/app/v1alpha1/
143143
└── zz_generated.deepcopy.go
144144
```
145145

146-
## olm-catalog
147-
148-
Parent command for all OLM Catalog-related commands.
149-
150-
### gen-csv
151-
152-
Generates a Cluster Service Version manifest file in `deploy/olm-catalog`.
153-
154-
#### Flags
155-
156-
* `--csv-version` (required) operator semantic version with which to create the CSV file.
157-
158-
#### Example
159-
160-
```console
161-
$ operator-sdk olm-catalog gen-csv --csv-version 0.1.1
162-
Generating CSV manifest version 0.1.1
163-
```
164-
165146
## migrate
166147

167148
Adds a main.go source file and any associated source files for an operator that
@@ -196,8 +177,8 @@ Scaffolds a new operator project.
196177

197178
* `--skip-git-init` - Do not init the directory as a git repository
198179
* `--type` string - Type of operator to initialize: "ansible", "helm", or "go" (default "go"). Also requires the following flags if `--type=ansible` or `--type=helm`
199-
* `--api-version` string - CRD APIVersion in the format `$GROUP_NAME/$VERSION` (e.g app.example.com/v1alpha1)
200-
* `--kind` string - CRD Kind. (e.g AppService)
180+
* `--api-version` string - CRD APIVersion in the format `$GROUP_NAME/$VERSION` (e.g app.example.com/v1alpha1)
181+
* `--kind` string - CRD Kind. (e.g AppService)
201182
* `--generate-playbook` - Generate a playbook skeleton. (Only used for `--type ansible`)
202183
* `--cluster-scoped` - Initialize the operator to be cluster-scoped instead of namespace-scoped
203184
* `-h, --help` - help for new
@@ -334,11 +315,13 @@ Runs the tests locally
334315

335316
##### Flags
336317

318+
* `--debug` - Enable debug-level logging
337319
* `--kubeconfig` string - location of kubeconfig for kubernetes cluster (default "~/.kube/config")
338320
* `--global-manifest` string - path to manifest for global resources (default "deploy/crd.yaml)
339321
* `--namespaced-manifest` string - path to manifest for per-test, namespaced resources (default: combines deploy/service_account.yaml, deploy/rbac.yaml, and deploy/operator.yaml)
340322
* `--namespace` string - if non-empty, single namespace to run tests in (e.g. "operator-test") (default: "")
341-
* `--go-test-flags` string - extra arguments to pass to `go test` (e.g. -f "-v -parallel=2")
323+
* `--go-test-flags` string - Additional flags to pass to go test
324+
* `--molecule-test-flags` string - Additional flags to pass to molecule test
342325
* `--up-local` - enable running operator locally with go run instead of as an image in the cluster
343326
* `--no-setup` - disable test resource creation
344327
* `--image` string - use a different operator image from the one specified in the namespaced manifest

0 commit comments

Comments
 (0)