testkube_generate_tests-crds
testkube generate tests-crds
Generate tests CRD file based on directory
Synopsis
Generate tests manifest based on directory (e.g. for ArgoCD sync based on tests files)
testkube generate tests-crds <manifestDirectory> [flags]
Options
      --args-mode string                           usage mode for arguments. one of append|override|replace (default "append")
      --artifact-dir stringArray                   artifact dirs for scraping
      --artifact-mask stringArray                  regexp to filter scraped artifacts, single or comma separated, like report/.* or .*\.json,.*\.js$
      --artifact-omit-folder-per-execution         don't store artifacts in execution folder
      --artifact-shared-between-pods               whether to share volume between pods
      --artifact-sidecar-scraper                   whether to run a scraper as a pod sidecar container
      --artifact-storage-bucket string             artifact storage bucket
      --artifact-storage-class-name string         artifact storage class name for container executor
      --artifact-use-default-storage-class-name    whether to use default storage class name
      --artifact-volume-mount-path string          artifact volume mount path for container executor
      --command stringArray                        command passed to image in executor
      --copy-files stringArray                     file path mappings from host to pod of form source:destination
      --cronjob-template string                    cron job template file path for extensions to cron job template
      --cronjob-template-reference string          reference to cron job template to use for the test
      --description string                         test description
      --env stringToString                         envs in a form of name1=val1 passed to executor (default [])
      --execute-postrun-script-before-scraping     whether to execute postrun scipt before scraping or not (prebuilt executor only)
      --execution-name string                      execution name, if empty will be autogenerated
      --execution-namespace string                 namespace for test execution (Pro edition only)
      --executor-args stringArray                  executor binary additional arguments
  -h, --help                                       help for tests-crds
      --http-proxy string                          http proxy for executor containers
      --https-proxy string                         https proxy for executor containers
      --image string                               override executor container image
      --image-pull-secrets stringArray             secret name used to pull the image in container executor
      --job-template string                        job template file path for extensions to job template
      --job-template-reference string              reference to job template to use for the test
  -l, --label stringToString                       label key value pair: --label key1=value1 (default [])
      --mount-configmap stringToString             config map value pair for mounting it to executor pod: --mount-configmap configmap_name=configmap_mountpath (default [])
      --mount-secret stringToString                secret value pair for mounting it to executor pod: --mount-secret secret_name=secret_mountpath (default [])
      --negative-test                              negative test, if enabled, makes failure an expected and correct test result. If the test fails the result will be set to success, and vice versa
      --postrun-script string                      path to script to be run after test execution
      --prerun-script string                       path to script to be run before test execution
      --pvc-template string                        pvc template file path for extensions to pvc template
      --pvc-template-reference string              reference to pvc template to use for the test
      --schedule string                            test schedule in a cron job form: * * * * *
      --scraper-template string                    scraper template file path for extensions to scraper template
      --scraper-template-reference string          reference to scraper template to use for the test
      --secret-env stringToString                  secret envs in a form of secret_key1=secret_name1 passed to executor (default [])
  -s, --secret-variable stringArray                secret variable key value pair: --secret-variable key1=value1
      --secret-variable-reference stringToString   secret variable references in a form name1=secret_name1=secret_key1 (default [])
      --slave-pod-limits-cpu string                slave pod resource limits cpu
      --slave-pod-limits-memory string             slave pod resource limits memory
      --slave-pod-requests-cpu string              slave pod resource requests cpu
      --slave-pod-requests-memory string           slave pod resource requests memory
      --slave-pod-template string                  slave pod template file path for extensions to slave pod template
      --slave-pod-template-reference string        reference to slave pod template to use for the test
      --source-scripts                             run scripts using source command (container executor only)
      --timeout int                                duration in seconds for test to timeout. 0 disables timeout.
  -t, --type string                                test type
      --upload-timeout string                      timeout to use when uploading files, example: 30s
  -v, --variable stringArray                       variable key value pair: --variable key1=value1
      --variable-configmap stringArray             config map name used to map all keys to basis variables
      --variable-secret stringArray                secret name used to map all keys to secret variables
      --variables-file string                      variables file path, e.g. postman env file - will be passed to executor if supported
Options inherited from parent commands
  -a, --api-uri string          api uri, default value read from config if set (default "http://localhost:8088")
  -c, --client string           client used for connecting to Testkube API one of proxy|direct|cluster (default "proxy")
      --header stringToString   headers for direct client key value pair: --header name=value (default [])
      --insecure                insecure connection for direct client
      --namespace string        Kubernetes namespace, default value read from config if set (default "testkube")
      --verbose                 show additional debug messages
SEE ALSO
- testkube generate - Generate resources commands