olm

package
v0.1.52 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCatalogImages added in v0.1.50

func GetCatalogImages(ctx context.Context, hcp hyperv1.HostedControlPlane, pullSecret []byte, digestLister registryclient.DigestListerFN) (map[string]string, error)

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, catalogImages map[string]string) error

func ReconcileCertifiedOperatorsDeployment

func ReconcileCertifiedOperatorsDeployment(deployment *appsv1.Deployment, ownerRef config.OwnerRef, dc config.DeploymentConfig, imageOverride, olmManagerImage 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, olmManagerImage 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, olmManagerImage 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, olmManagerImage 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, 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