Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatalogCreator ¶
type CatalogUpdater ¶ added in v1.3.0
type CatalogUpdater interface {
UpdateCatalog(ctx context.Context, cs *v1alpha1.CatalogSource, subscription *v1alpha1.Subscription) error
}
type ConfigMapCatalogCreator ¶
type ConfigMapCatalogCreator struct {
Package *apimanifests.PackageManifest
Bundles []*apimanifests.Bundle
// contains filtered or unexported fields
}
func NewConfigMapCatalogCreator ¶
func NewConfigMapCatalogCreator(cfg *operator.Configuration) *ConfigMapCatalogCreator
func (ConfigMapCatalogCreator) CreateCatalog ¶
func (c ConfigMapCatalogCreator) CreateCatalog(ctx context.Context, name string) (*v1alpha1.CatalogSource, error)
type IndexImageCatalogCreator ¶
type IndexImageCatalogCreator struct {
SkipTLS bool
SkipTLSVerify bool
UseHTTP bool
HasFBCLabel bool
FBCContent string
PackageName string
ImagePullPolicy string
IndexImage string
InitImage string
BundleImage string
SecretName string
CASecretName string
BundleAddMode index.BundleAddMode
PreviousBundles []string
ChannelName string
SecurityContext SecurityContext
// contains filtered or unexported fields
}
func NewIndexImageCatalogCreator ¶
func NewIndexImageCatalogCreator(cfg *operator.Configuration) *IndexImageCatalogCreator
func (*IndexImageCatalogCreator) BindFlags ¶ added in v1.6.0
func (c *IndexImageCatalogCreator) BindFlags(fs *pflag.FlagSet)
func (IndexImageCatalogCreator) CreateCatalog ¶
func (c IndexImageCatalogCreator) CreateCatalog(ctx context.Context, name string) (*v1alpha1.CatalogSource, error)
func (IndexImageCatalogCreator) UpdateCatalog ¶ added in v1.3.0
func (c IndexImageCatalogCreator) UpdateCatalog(ctx context.Context, cs *v1alpha1.CatalogSource, subscription *v1alpha1.Subscription) error
UpdateCatalog links a new registry pod in catalog source by updating the address and annotations, then deletes existing registry pod based on annotation name found in catalog source object
type OperatorInstaller ¶
type OperatorInstaller struct {
CatalogSourceName string
PackageName string
StartingCSV string
Channel string
InstallMode operator.InstallMode
CatalogCreator CatalogCreator
CatalogUpdater CatalogUpdater
SupportedInstallModes set.Set[string]
// contains filtered or unexported fields
}
func NewOperatorInstaller ¶
func NewOperatorInstaller(cfg *operator.Configuration) *OperatorInstaller
func (OperatorInstaller) InstallOperator ¶
func (o OperatorInstaller) InstallOperator(ctx context.Context) (*v1alpha1.ClusterServiceVersion, error)
func (OperatorInstaller) UpgradeOperator ¶ added in v1.3.0
func (o OperatorInstaller) UpgradeOperator(ctx context.Context) (*v1alpha1.ClusterServiceVersion, error)
type SecurityContext ¶ added in v1.24.1
type SecurityContext struct {
ContextType SecurityContextType
}
SecurityContext represents the enum from the CatalogSource API It is also being used by the binding flags to allow validation of the enum values
func (*SecurityContext) IsEmpty ¶ added in v1.24.1
func (sc *SecurityContext) IsEmpty() bool
func (*SecurityContext) Set ¶ added in v1.24.1
func (sc *SecurityContext) Set(value string) error
func (*SecurityContext) String ¶ added in v1.24.1
func (sc *SecurityContext) String() string
func (*SecurityContext) Type ¶ added in v1.24.1
func (sc *SecurityContext) Type() string
type SecurityContextType ¶ added in v1.24.1
type SecurityContextType string
TODO: Change this to use the values in operator-framework/api once the release containing the enums is pulled into SDK
const ( Legacy SecurityContextType = "legacy" Restricted SecurityContextType = "restricted" )
Notes ¶
Bugs ¶
if namespace is not contained in targetNamespaces, DoCSVWait will fail because the CSV is not deployed in namespace.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.