olm

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CatalogToImage = map[string]string{
	"certified-operators": "registry.redhat.io/redhat/certified-operator-index:v4.16",
	"community-operators": "registry.redhat.io/redhat/community-operator-index:v4.16",
	"redhat-marketplace":  "registry.redhat.io/redhat/redhat-marketplace-index:v4.16",
	"redhat-operators":    "registry.redhat.io/redhat/redhat-operator-index:v4.16",
}

Functions

func ReconcileCatalogOperatorDeployment

func ReconcileCatalogOperatorDeployment(deployment *appsv1.Deployment, ownerRef config.OwnerRef, olmImage, socks5ProxyImage, operatorRegistryImage, releaseVersion string, dc config.DeploymentConfig, availabilityProberImage string, noProxy []string, platformType hyperv1.PlatformType) error

func ReconcileCatalogOperatorMetricsService

func ReconcileCatalogOperatorMetricsService(svc *corev1.Service, ownerRef config.OwnerRef) error

func ReconcileCatalogServiceMonitor

func ReconcileCatalogServiceMonitor(sm *prometheusoperatorv1.ServiceMonitor, ownerRef config.OwnerRef, clusterID string, metricsSet metrics.MetricsSet) error

func ReconcileCatalogsImageStream

func ReconcileCatalogsImageStream(imageStream *imagev1.ImageStream, ownerRef config.OwnerRef, isImageRegistryOverrides map[string][]string) error

func ReconcileCertifiedOperatorsDeployment

func ReconcileCertifiedOperatorsDeployment(deployment *appsv1.Deployment, ownerRef config.OwnerRef, dc config.DeploymentConfig, imageOverride string) error

func ReconcileCertifiedOperatorsService

func ReconcileCertifiedOperatorsService(svc *corev1.Service, ownerRef config.OwnerRef) error

func ReconcileCollectProfilesConfigMap

func ReconcileCollectProfilesConfigMap(configMap *corev1.ConfigMap, ownerRef config.OwnerRef)

func ReconcileCollectProfilesCronJob

func ReconcileCollectProfilesCronJob(cronJob *batchv1.CronJob, ownerRef config.OwnerRef, olmImage string, hcp *hyperv1.HostedControlPlane)

func ReconcileCollectProfilesRole

func ReconcileCollectProfilesRole(role *rbacv1.Role, ownerRef config.OwnerRef)

func ReconcileCollectProfilesRoleBinding

func ReconcileCollectProfilesRoleBinding(roleBinding *rbacv1.RoleBinding, ownerRef config.OwnerRef)

func ReconcileCollectProfilesSecret

func ReconcileCollectProfilesSecret(secret *corev1.Secret, ownerRef config.OwnerRef)

func ReconcileCollectProfilesServiceAccount

func ReconcileCollectProfilesServiceAccount(serviceAccount *corev1.ServiceAccount, ownerRef config.OwnerRef)

func ReconcileCommunityOperatorsDeployment

func ReconcileCommunityOperatorsDeployment(deployment *appsv1.Deployment, ownerRef config.OwnerRef, dc config.DeploymentConfig, imageOverride string) error

func ReconcileCommunityOperatorsService

func ReconcileCommunityOperatorsService(svc *corev1.Service, ownerRef config.OwnerRef) error

func ReconcileOLMOperatorDeployment

func ReconcileOLMOperatorDeployment(deployment *appsv1.Deployment, ownerRef config.OwnerRef, olmImage, socks5ProxyImage, releaseVersion string, dc config.DeploymentConfig, availabilityProberImage string, noProxy []string, platformType hyperv1.PlatformType) error

func ReconcileOLMOperatorMetricsService

func ReconcileOLMOperatorMetricsService(svc *corev1.Service, ownerRef config.OwnerRef) error

func ReconcileOLMOperatorServiceMonitor

func ReconcileOLMOperatorServiceMonitor(sm *prometheusoperatorv1.ServiceMonitor, ownerRef config.OwnerRef, clusterID string, metricsSet metrics.MetricsSet) error

func ReconcilePackageServerDeployment

func ReconcilePackageServerDeployment(deployment *appsv1.Deployment, ownerRef config.OwnerRef, olmImage, socks5ProxyImage, releaseVersion string, dc config.DeploymentConfig, availabilityProberImage string, noProxy []string, platformType hyperv1.PlatformType) error

func ReconcileRedHatMarketplaceOperatorsDeployment

func ReconcileRedHatMarketplaceOperatorsDeployment(deployment *appsv1.Deployment, ownerRef config.OwnerRef, dc config.DeploymentConfig, imageOverride string) error

func ReconcileRedHatMarketplaceOperatorsService

func ReconcileRedHatMarketplaceOperatorsService(svc *corev1.Service, ownerRef config.OwnerRef) error

func ReconcileRedHatOperatorsDeployment

func ReconcileRedHatOperatorsDeployment(deployment *appsv1.Deployment, ownerRef config.OwnerRef, dc config.DeploymentConfig, imageOverride string) error

func ReconcileRedHatOperatorsService

func ReconcileRedHatOperatorsService(svc *corev1.Service, ownerRef config.OwnerRef) error

Types

type OLMDeployment added in v0.1.17

type OLMDeployment struct {
	Name       string
	Manifest   *appsv1.Deployment
	Reconciler func(*appsv1.Deployment, config.OwnerRef, config.DeploymentConfig, string) error
	Image      string
}

func OLMDeployments added in v0.1.17

func OLMDeployments(p *OperatorLifecycleManagerParams, hcpNamespace string) []OLMDeployment

type OLMService added in v0.1.17

type OLMService struct {
	Name       string
	Manifest   *corev1.Service
	Reconciler func(*corev1.Service, config.OwnerRef) error
}

func OLMServices added in v0.1.17

func OLMServices(hcpNamespace string) []OLMService

type OperatorLifecycleManagerParams

type OperatorLifecycleManagerParams struct {
	CLIImage                                 string
	OLMImage                                 string
	ProxyImage                               string
	OperatorRegistryImage                    string
	CertifiedOperatorsCatalogImageOverride   string
	CommunityOperatorsCatalogImageOverride   string
	RedHatMarketplaceCatalogImageOverride    string
	RedHatOperatorsCatalogImageOverride      string
	OLMCatalogsISRegistryOverridesAnnotation string
	ReleaseVersion                           string
	DeploymentConfig                         config.DeploymentConfig
	PackageServerConfig                      config.DeploymentConfig
	AvailabilityProberImage                  string
	NoProxy                                  []string
	config.OwnerRef
}

func NewOperatorLifecycleManagerParams

func NewOperatorLifecycleManagerParams(hcp *hyperv1.HostedControlPlane, releaseImageProvider *imageprovider.ReleaseImageProvider, releaseVersion string, setDefaultSecurityContext bool) *OperatorLifecycleManagerParams

Jump to

Keyboard shortcuts

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