Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCSVName ¶
func GetCSVName(csv yaml.MapSlice) string
GetCSVName -retrieves CSV name from provided CSV manifest
func GetCSVVersion ¶
func GetCSVVersion(csv yaml.MapSlice) string
GetCSVVersion - retrievs CSV Version from provided CSV manifest
Types ¶
type BundleHelper ¶
type BundleHelper struct { Pkgs []Pkg CRDs []v1beta1.CustomResourceDefinition CSVs []yaml.MapSlice // contains filtered or unexported fields }
BundleHelper - object that provides logic of fetching OLM bundle from marketplace quay repo
func NewBundleHelper ¶
func NewBundleHelper(repo, namespace string) (*BundleHelper, error)
NewBundleHelper - Ctor
func (*BundleHelper) AddOldManifests ¶
func (bh *BundleHelper) AddOldManifests(outDir string, currentCSVVersion string) error
AddOldManifests - downloads old CRDs and CSVs to outDir with respect to currentCSVVersion
func (*BundleHelper) GetLatestPublishedCSVVersion ¶
func (bh *BundleHelper) GetLatestPublishedCSVVersion() string
GetLatestPublishedCSVVersion - return latest CSV version that exists in quay
func (*BundleHelper) VerifyNotPublishedCSVVersion ¶
func (bh *BundleHelper) VerifyNotPublishedCSVVersion(currentCSVVersion string) bool
VerifyNotPublishedCSVVersion - returns latest CSV version that exists
Click to show internal directories.
Click to hide internal directories.