bundleutil

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 13 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

This section is empty.

Types

type BundleMetaData

type BundleMetaData struct {
	// BundleDir refers to the directory where generated bundles are to be written.
	BundleDir string

	// The PackageName of the operator bundle.
	PackageName string

	// Channels and DefaultChannel the operator shoud be subscribed to.
	Channels       string
	DefaultChannel string

	// BaseImage name to build bundle image.
	BaseImage string

	// BuildCommand to run while building image.
	BuildCommand string

	// PackageManifestPath where the input manifests are present.
	PkgmanifestPath string

	// IsScoreConfigPresent when set to true includes scorecard config annotations
	// in bundle metadata.
	IsScoreConfigPresent bool

	// Other labels to be added in CSV.
	OtherLabels map[string]string
}

BundleMetaData contains the required metadata to build bundles and images.

func (*BundleMetaData) BuildBundleImage

func (meta *BundleMetaData) BuildBundleImage(tag string) error

BuildBundleImage builds the bundle image with the provided command or using docker build command.

func (*BundleMetaData) CopyOperatorManifests

func (meta *BundleMetaData) CopyOperatorManifests() error

CopyOperatorManifests copies packagemanifestsDir/manifests to bundleDir/manifests.

func (*BundleMetaData) GenerateMetadata

func (meta *BundleMetaData) GenerateMetadata() error

GenerateMetadata scaffolds annotations.yaml and bundle.Dockerfile with the provided annotation values.

func (*BundleMetaData) WriteScorecardConfig

func (meta *BundleMetaData) WriteScorecardConfig(inputConfigPath string) error

WriteScorecardConfig creates the scorecard directory in the bundle and copies the configuration yaml to bundle.

Jump to

Keyboard shortcuts

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