configmap

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SDKLabels = map[string]string{
	"owner": "operator-sdk",
}

SDKLabels are used to identify certain operator-sdk resources.

Functions

func GetRegistryServiceAddr

func GetRegistryServiceAddr(pkgName, namespace string) string

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

func (rr *RegistryResources) IsRegistryExist(ctx context.Context, namespace string) (bool, error)

IsRegistryExist returns true if a registry Deployment exists in namespace.

Jump to

Keyboard shortcuts

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