Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBundleManager ¶
func NewBundleManager(log logr.Logger, registryClient RegistryClient, bundleClient Client, targetClient authenticator.TargetClusterClient) *bundleManager
func NewPackageBundleClient ¶ added in v0.1.7
func NewRegistryClient ¶ added in v0.2.0
Types ¶
type Client ¶ added in v0.1.7
type Client interface {
// GetActiveBundle retrieves the currently active bundle.
GetActiveBundle(ctx context.Context, clusterName string) (activeBundle *api.PackageBundle, err error)
// GetPackageBundleController retrieves clusters package bundle controller
GetPackageBundleController(ctx context.Context, clusterName string) (controller *api.PackageBundleController, err error)
// GetBundleList get list of bundles worthy of consideration
GetBundleList(ctx context.Context) (bundles []api.PackageBundle, err error)
// GetBundle retrieves the named bundle.
GetBundle(ctx context.Context, name string) (namedBundle *api.PackageBundle, err error)
// CreateBundle add a new bundle custom resource
CreateBundle(ctx context.Context, bundle *api.PackageBundle) error
// CreateClusterNamespace based on cluster name
CreateClusterNamespace(ctx context.Context, clusterName string) error
// CreateClusterConfigMap based on cluster name
CreateClusterConfigMap(ctx context.Context, clusterName string) error
// SaveStatus saves a resource status
SaveStatus(ctx context.Context, object client.Object) error
// Save saves a resource
Save(ctx context.Context, object client.Object) error
}
type RegistryClient ¶ added in v0.2.0
type RegistryClient interface {
// LatestBundle pulls the bundle tagged with "latest" from the bundle source.
LatestBundle(ctx context.Context, baseRef string, kubeMajor string, kubeMinor string) (*api.PackageBundle, error)
// DownloadBundle downloads the bundle with a given tag.
DownloadBundle(ctx context.Context, ref string) (
*api.PackageBundle, error)
}
Click to show internal directories.
Click to hide internal directories.