installers

package
v0.0.0-...-28b2d3d Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// NodeScraperStartConfigMapName ConfigMap name for start script of Node scraper
	NodeScraperStartConfigMapName = "node-scraper-start"
	// NodeScraperStopConfigMapName ConfigMap name for stop script of Node scraper
	NodeScraperStopConfigMapName = "node-scraper-stop"
)

Variables

View Source
var (

	// KogitoNamespace is the kogito namespace for yaml cluster-wide deployment
	KogitoNamespace = "kogito-operator-system"
)

Functions

func UninstallServicesFromCluster

func UninstallServicesFromCluster() (success bool)

UninstallServicesFromCluster uninstalls the cluster wide service from whole cluster. Returns false in case of any error while uninstalling.

func UninstallServicesFromNamespace

func UninstallServicesFromNamespace(namespace string) (success bool)

UninstallServicesFromNamespace uninstalls all services from specific namespace. Returns false in case of any error while uninstalling.

Types

type ClusterWideServiceInstaller

type ClusterWideServiceInstaller interface {
	ServiceInstaller
	// contains filtered or unexported methods
}

ClusterWideServiceInstaller is the API of cluster wide services

type NamespacedServiceInstaller

type NamespacedServiceInstaller interface {
	ServiceInstaller
	// contains filtered or unexported methods
}

NamespacedServiceInstaller is the API of namespaced services

type OlmClusterWideServiceInstaller

type OlmClusterWideServiceInstaller struct {
	SubscriptionName             string
	Channel                      string
	StartingCSV                  string
	Catalog                      func() framework.OperatorCatalog
	InstallationTimeoutInMinutes int
	// Return all CRs of this service which exists in this namespace
	GetAllClusterWideOlmCrsInNamespace func(string) ([]client.Object, error)
	// Cleanup functionality, will delete CRs without owner if not defined
	CleanupClusterWideOlmCrsInNamespace func(namespace string) bool
}

OlmClusterWideServiceInstaller installs service using OLM, installed cluster wide

func (*OlmClusterWideServiceInstaller) Install

func (installer *OlmClusterWideServiceInstaller) Install(namespace string) error

Install the cluster wide service using OLM into cloud

type OlmNamespacedServiceInstaller

type OlmNamespacedServiceInstaller struct {
	SubscriptionName             string
	Channel                      string
	StartingCSV                  string
	Catalog                      func() framework.OperatorCatalog
	InstallationTimeoutInMinutes int
	// Return all CRs of this service which exists in this namespace
	GetAllNamespacedOlmCrsInNamespace func(string) ([]client.Object, error)
	// Cleanup functionality, will delete CRs without owner if not defined
	CleanupNamespacedOlmCrsInNamespace func(namespace string) bool
}

OlmNamespacedServiceInstaller installs service using OLM, installed to specific namespace

func (*OlmNamespacedServiceInstaller) Install

func (installer *OlmNamespacedServiceInstaller) Install(namespace string) error

Install the namespaced service using OLM into cloud

type ServiceInstaller

type ServiceInstaller interface {
	// Install the service into cloud to serve the namespace
	Install(namespace string) error
	// contains filtered or unexported methods
}

ServiceInstaller is the API to install services

func GetAmqStreamsInstaller

func GetAmqStreamsInstaller() ServiceInstaller

GetAmqStreamsInstaller returns AmqStreams installer

func GetGrafanaInstaller

func GetGrafanaInstaller() ServiceInstaller

GetGrafanaInstaller returns Grafana installer

func GetHyperfoilInstaller

func GetHyperfoilInstaller() ServiceInstaller

GetHyperfoilInstaller returns Hyperfoil installer

func GetHyperfoilNodeScraperInstaller

func GetHyperfoilNodeScraperInstaller() ServiceInstaller

GetHyperfoilNodeScraperInstaller returns Hyperfoil Node scraper installer

func GetInfinispanInstaller

func GetInfinispanInstaller() (ServiceInstaller, error)

GetInfinispanInstaller returns Infinispan installer

func GetKafkaInstaller

func GetKafkaInstaller() ServiceInstaller

GetKafkaInstaller returns Kafka installer

func GetKeycloakInstaller

func GetKeycloakInstaller() ServiceInstaller

GetKeycloakInstaller returns Keycloak installer

func GetKnativeEventingInstaller

func GetKnativeEventingInstaller() ServiceInstaller

GetKnativeEventingInstaller returns KnativeEventing installer

func GetKnativeEventingKogitoInstaller

func GetKnativeEventingKogitoInstaller() ServiceInstaller

GetKnativeEventingKogitoInstaller returns KnativeEventing KogitoSource installer

func GetKogitoInstaller

func GetKogitoInstaller() (ServiceInstaller, error)

GetKogitoInstaller returns Kogito installer

func GetMongoDbInstaller

func GetMongoDbInstaller() ServiceInstaller

GetMongoDbInstaller returns MongoDB installer

func GetPrometheusInstaller

func GetPrometheusInstaller() ServiceInstaller

GetPrometheusInstaller returns Prometheus installer

func GetRhpamKogitoInstaller

func GetRhpamKogitoInstaller() (ServiceInstaller, error)

GetRhpamKogitoInstaller returns RHPAM Kogito installer

type YamlClusterWideServiceInstaller

type YamlClusterWideServiceInstaller struct {
	// Install service for all namespaces
	InstallClusterYaml func() error
	// Namespace used for cluster wide service installation.
	InstallationNamespace string
	// Wait until the service is up and running
	WaitForClusterYamlServiceRunning func() error
	// Return all CRs of this service which exists in this namespace
	GetAllClusterYamlCrsInNamespace func(string) ([]client.Object, error)
	// Uninstall service from whole cluster
	UninstallClusterYaml func() error
	// Service name
	ClusterYamlServiceName string
	// Cleanup functionality, will delete CRs without owner if not defined
	CleanupClusterYamlCrsInNamespace func(namespace string) bool
}

YamlClusterWideServiceInstaller installs service using YAML files applied to specific namespace

func (*YamlClusterWideServiceInstaller) Install

func (installer *YamlClusterWideServiceInstaller) Install(namespace string) error

Install the cluster wide service using YAML files into cloud

type YamlNamespacedServiceInstaller

type YamlNamespacedServiceInstaller struct {
	// Install service for specific namespaces
	InstallNamespacedYaml func(namespace string) error
	// Wait until the service is up and running
	WaitForNamespacedServiceRunning func(namespace string) error
	// Return all CRs of this service which exists in this namespace
	GetAllNamespaceYamlCrs func(string) ([]client.Object, error)
	// Uninstall service from namespace
	UninstallNamespaceYaml func(namespace string) error
	// Service name
	NamespacedYamlServiceName string
	// Cleanup functionality, will delete CRs without owner if not defined
	CleanupNamespaceYamlCrs func(namespace string) bool
}

YamlNamespacedServiceInstaller installs service using YAML files applied to specific namespace

func (*YamlNamespacedServiceInstaller) Install

func (installer *YamlNamespacedServiceInstaller) Install(namespace string) error

Install the namespaced service using YAML files into cloud

Jump to

Keyboard shortcuts

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