Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var ErrNoCSVVersion = errors.New("no CSV version supplied")
Functions ¶
This section is empty.
Types ¶
type CSV ¶
type CSV struct { input.Input // ConfigFilePath is the location of a configuration file path for this // projects' CSV file. ConfigFilePath string // CSVVersion is the CSV current version. CSVVersion string // FromVersion is the CSV version from which to build a new CSV. A CSV // manifest with this version should exist at: // deploy/olm-catalog/{from_version}/operator-name.v{from_version}.{CSVYamlFileExt} FromVersion string // OperatorName is the operator's name, ex. app-operator OperatorName string // contains filtered or unexported fields }
func (*CSV) CustomRender ¶
CustomRender allows a CSV to be written by marshalling olmapiv1alpha1.ClusterServiceVersion instead of writing to a template.
type CSVConfig ¶
type CSVConfig struct { // The operator manifest file path. Defaults to deploy/operator.yaml. OperatorPath string `json:"operator-path,omitempty"` // Role and ClusterRole manifest file paths. Defaults to [deploy/role.yaml]. RolePaths []string `json:"role-paths,omitempty"` // A list of CRD and CR manifest file paths. Defaults to [deploy/crds]. CRDCRPaths []string `json:"crd-cr-paths,omitempty"` // OperatorName is the name used to create the CSV and manifest file names. // Defaults to the project's name. OperatorName string `json:"operator-name,omitempty"` }
CSVConfig is a configuration file for CSV composition. Its fields contain file path information. TODO(estroz): define field for path to write CSV bundle. TODO(estroz): make CSVConfig a viper.Config
func GetCSVConfig ¶
TODO: discuss case of no config file at default path: write new file or not.
Click to show internal directories.
Click to hide internal directories.