Documentation ¶
Index ¶
- Constants
- func CatalogNameForPackage(pkg string) string
- func GetSupportedInstallModes(csvInstallModes []v1alpha1.InstallMode) sets.String
- func LoadBundle(ctx context.Context, bundleImage string) (registryutil.Labels, *apimanifests.Bundle, error)
- type Configuration
- type ErrPackageNotFound
- type InstallMode
- type Uninstall
Constants ¶
View Source
const (
SDKOperatorGroupName = "operator-sdk-og"
)
Variables ¶
This section is empty.
Functions ¶
func CatalogNameForPackage ¶ added in v1.2.0
func GetSupportedInstallModes ¶ added in v1.1.0
func GetSupportedInstallModes(csvInstallModes []v1alpha1.InstallMode) sets.String
GetSupportedInstallModes returns the given slice of InstallModes as a String set.
func LoadBundle ¶ added in v1.3.0
func LoadBundle(ctx context.Context, bundleImage string) (registryutil.Labels, *apimanifests.Bundle, error)
LoadBundle returns metadata and manifests from within bundleImage.
Types ¶
type Configuration ¶ added in v1.1.0
type Configuration struct { Namespace string ServiceAccount string KubeconfigPath string RESTConfig *rest.Config Client client.Client Scheme *runtime.Scheme Timeout time.Duration // contains filtered or unexported fields }
func (*Configuration) BindFlags ¶ added in v1.1.0
func (c *Configuration) BindFlags(fs *pflag.FlagSet)
func (*Configuration) Load ¶ added in v1.1.0
func (c *Configuration) Load() error
type ErrPackageNotFound ¶ added in v1.2.0
type ErrPackageNotFound struct {
PackageName string
}
func (ErrPackageNotFound) Error ¶ added in v1.2.0
func (e ErrPackageNotFound) Error() string
type InstallMode ¶ added in v1.1.0
type InstallMode struct { InstallModeType v1alpha1.InstallModeType TargetNamespaces []string }
func (InstallMode) CheckCompatibility ¶ added in v1.1.0
func (i InstallMode) CheckCompatibility(csv *v1alpha1.ClusterServiceVersion, operatorNamespace string) error
CheckCompatibility checks if an InstallMode is compatible with the operator's namespace and is supported by csv.
func (InstallMode) IsEmpty ¶ added in v1.1.0
func (i InstallMode) IsEmpty() bool
IsEmpty returns true if the InstallModeType is empty.
func (*InstallMode) Set ¶ added in v1.1.0
func (i *InstallMode) Set(str string) error
Set is called when the --install-mode flag is passed to the CLI. It will configure the InstallMode based on the values passed in.
func (InstallMode) String ¶ added in v1.1.0
func (i InstallMode) String() string
func (InstallMode) Type ¶ added in v1.1.0
func (InstallMode) Type() string
func (InstallMode) Validate ¶ added in v1.1.0
func (i InstallMode) Validate() error
type Uninstall ¶ added in v1.1.0
type Uninstall struct { Package string DeleteAll bool DeleteCRDs bool DeleteOperatorGroups bool DeleteOperatorGroupNames []string Logf func(string, ...interface{}) // contains filtered or unexported fields }
func NewUninstall ¶ added in v1.1.0
func NewUninstall(cfg *Configuration) *Uninstall
Click to show internal directories.
Click to hide internal directories.