csv

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 12 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

This section is empty.

Variables

This section is empty.

Functions

func OverrideAnnotations added in v0.5.0

func OverrideAnnotations(base map[string]string, outputDir string) error

OverrideAnnotations reads the local annotations file and merges it with the given annotations map.

func OverrideClusterServiceVersion added in v0.5.0

func OverrideClusterServiceVersion(base *v1alpha1.ClusterServiceVersion, outputDir string) error

OverrideClusterServiceVersion reads the override file in the output directory and makes sure it's applied to the given base ClusterServiceVersion.

func Validate

func Validate(resources []*unstructured.Unstructured) error

Validate checks whether objects can be included in an OLM bundle.

Types

type CustomResourceDefinition

type CustomResourceDefinition struct{}

CustomResourceDefinition adds metadata of given CustomResourceDefinitions to ClusterServiceVersion as owned CRD.

func (*CustomResourceDefinition) Run

Run adds CRD ownership information to ClusterServiceVersion if given manifest is a CRD.

type Deployment

type Deployment struct{}

Deployment scans Deployments to add their spec to ClusterServiceVersion.

func (*Deployment) Run

Run adds the spec of Deployment manifests to ClusterServiceVersion. If successful, their manifests should not be included in the bundle separately.

type Embedder

type Embedder struct {
	Scanners []Scanner
}

Embedder runs given Scanners in order.

func NewEmbedder

func NewEmbedder() *Embedder

NewEmbedder returns a new *Embedder.

func (*Embedder) Embed

Embed runs all scanners and validates whether the final list of manifests are of supported types by OLM.

type Scanner

type Scanner interface {
	Run(manifest *unstructured.Unstructured, csv *v1alpha1.ClusterServiceVersion) (ignore bool, err error)
}

Scanner is a struct that can take information from a manifest to add it to given ClusterServiceVersion and return whether the manifest should be ignored in the final package.

Jump to

Keyboard shortcuts

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