operator

package
v1.22.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SDKOperatorGroupName = "operator-sdk-og"
)

Variables

This section is empty.

Functions

func CatalogNameForPackage added in v1.2.0

func CatalogNameForPackage(pkg string) string

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, skipTLSVerify bool, useHTTP bool) (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

func (*Uninstall) BindFlags added in v1.6.0

func (u *Uninstall) BindFlags(fs *pflag.FlagSet)

func (*Uninstall) Run added in v1.1.0

func (u *Uninstall) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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