Documentation ¶
Index ¶
- Variables
- func GetRegistryServiceAddr(pkgName, namespace string) string
- type RegistryResources
- func (rr *RegistryResources) CreatePackageManifestsRegistry(ctx context.Context, catsrc *v1alpha1.CatalogSource, namespace string) error
- func (rr *RegistryResources) DeletePackageManifestsRegistry(ctx context.Context, namespace string) error
- func (rr *RegistryResources) IsRegistryDataStale(ctx context.Context, namespace string) (bool, error)
- func (rr *RegistryResources) IsRegistryExist(ctx context.Context, namespace string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
var SDKLabels = map[string]string{
"owner": "operator-sdk",
}
SDKLabels are used to identify certain operator-sdk resources.
Functions ¶
func GetRegistryServiceAddr ¶
GetRegistryServiceAddr returns a Service's DNS name + port for a given pkgName and namespace.
Types ¶
type RegistryResources ¶
type RegistryResources struct { Client *olmclient.Client Pkg *apimanifests.PackageManifest Bundles []*apimanifests.Bundle }
RegistryResources configures creation/deletion of internal registry-related resources.
func (*RegistryResources) CreatePackageManifestsRegistry ¶
func (rr *RegistryResources) CreatePackageManifestsRegistry(ctx context.Context, catsrc *v1alpha1.CatalogSource, namespace string) error
CreatePackageManifestsRegistry creates all registry objects required to serve manifests from rr.manifests in namespace.
func (*RegistryResources) DeletePackageManifestsRegistry ¶
func (rr *RegistryResources) DeletePackageManifestsRegistry(ctx context.Context, namespace string) error
DeletePackageManifestsRegistry deletes all registry objects serving manifests for an operator in namespace. TODO: delete by owner reference.
func (*RegistryResources) IsRegistryDataStale ¶
func (rr *RegistryResources) IsRegistryDataStale(ctx context.Context, namespace string) (bool, error)
IsRegistryDataStale checks if manifest data stored in the on-cluster registry is stale by comparing it to the currently managed data.
func (*RegistryResources) IsRegistryExist ¶
IsRegistryExist returns true if a registry Deployment exists in namespace.