Generates a ClusterServiceVersion YAML file for the operator
The 'generate csv' command generates a ClusterServiceVersion (CSV) YAML manifest for the operator. This file is used to publish the operator to the OLM Catalog.
A CSV semantic version is supplied via the --csv-version flag. If your operator has already generated a CSV manifest you want to use as a base, supply its version to --from-version. Otherwise the SDK will scaffold a new CSV manifest.
Configure CSV generation by writing a config file 'deploy/olm-catalog/csv-config.yaml
operator-sdk generate csv [flags]
--csv-channel string Channel the CSV should be registered under in the package manifest
--csv-config string Path to CSV config file. Defaults to deploy/olm-catalog/csv-config.yaml
--csv-version string Semantic version of the CSV
--default-channel Use the channel passed to --csv-channel as the package manifests' default channel. Only valid when --csv-channel is set
--from-version string Semantic version of an existing CSV to use as a base
-h, --help help for csv
--operator-name string Operator name to use while generating CSV
--update-crds Update CRD manifests in deploy/{operator-name}/{csv-version} the using latest API's
- operator-sdk generate - Invokes a specific generator