You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a main.go source file and any associated source files for an operator that
@@ -196,8 +177,8 @@ Scaffolds a new operator project.
196
177
197
178
*`--skip-git-init` - Do not init the directory as a git repository
198
179
*`--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)
201
182
*`--generate-playbook` - Generate a playbook skeleton. (Only used for `--type ansible`)
202
183
*`--cluster-scoped` - Initialize the operator to be cluster-scoped instead of namespace-scoped
203
184
*`-h, --help` - help for new
@@ -334,11 +315,13 @@ Runs the tests locally
334
315
335
316
##### Flags
336
317
318
+
*`--debug` - Enable debug-level logging
337
319
*`--kubeconfig` string - location of kubeconfig for kubernetes cluster (default "~/.kube/config")
338
320
*`--global-manifest` string - path to manifest for global resources (default "deploy/crd.yaml)
339
321
*`--namespaced-manifest` string - path to manifest for per-test, namespaced resources (default: combines deploy/service_account.yaml, deploy/rbac.yaml, and deploy/operator.yaml)
340
322
*`--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
342
325
*`--up-local` - enable running operator locally with go run instead of as an image in the cluster
343
326
*`--no-setup` - disable test resource creation
344
327
*`--image` string - use a different operator image from the one specified in the namespaced manifest
0 commit comments