clusterserviceversion

package
v0.19.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 24 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// WatchNamespaceEnv is a constant for internal use.
	WatchNamespaceEnv = "WATCH_NAMESPACE"
	// TargetNamespacesRef references the target namespaces a CSV is installed in.
	// This is required by legacy project Deployments.
	TargetNamespacesRef = "metadata.annotations['olm.targetNamespaces']"
)

Variables

This section is empty.

Functions

func ApplyTo

ApplyTo applies relevant manifests in c to csv, sorts the applied updates, and validates the result.

Types

type Generator

type Generator struct {
	// OperatorName is the operator's name, ex. app-operator.
	OperatorName string
	// OperatorType determines what code API types are written in for getBase.
	OperatorType projutil.OperatorType
	// Version is the CSV current version.
	Version string
	// FromVersion is the version of a previous CSV to upgrade from.
	FromVersion string
	// Collector holds all manifests relevant to the Generator.
	Collector *collector.Manifests
	// contains filtered or unexported fields
}

ClusterServiceVersion configures ClusterServiceVersion manifest generation.

func (*Generator) Generate

func (g *Generator) Generate(cfg *config.Config, opts ...Option) (err error)

Generate configures the generator with cfg and opts then runs it.

func (*Generator) GenerateLegacy

func (g *Generator) GenerateLegacy(opts ...LegacyOption) (err error)

GenerateLegacy configures the generator with opts then runs it. Used for generating files for legacy project layouts.

type LegacyOption

type LegacyOption Option

LegacyOption is a function that modifies a Generator for legacy project layouts.

func WithBundleBase

func WithBundleBase(inputDir, apisDir string, ilvl projutil.InteractiveLevel) LegacyOption

WithBundleBase sets a Generator's base CSV to a legacy-style bundle base.

func WithPackageBase added in v0.19.0

func WithPackageBase(inputDir, apisDir string, ilvl projutil.InteractiveLevel) LegacyOption

WithPackageBase sets a Generator's base CSV to a legacy-style package base.

type Option

type Option func(*Generator) error

Option is a function that modifies a Generator.

func WithBase

func WithBase(inputDir, apisDir string, ilvl projutil.InteractiveLevel) Option

WithBase sets a Generator's base CSV to a kustomize-style base.

func WithBaseWriter

func WithBaseWriter(dir string) Option

WithBaseWriter sets a Generator's writer to a kustomize-style base file under <dir>/bases.

func WithBundleWriter

func WithBundleWriter(dir string) Option

WithBundleWriter sets a Generator's writer to a bundle CSV file under <dir>/manifests.

func WithPackageWriter added in v0.19.0

func WithPackageWriter(dir string) Option

WithPackageWriter sets a Generator's writer to a package CSV file under <dir>/<version>.

func WithWriter

func WithWriter(w io.Writer) Option

WithWriter sets a Generator's writer to w.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL