configmap

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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