Documentation ¶
Index ¶
- func EnsureProject(kubeCli *client.Client, project string) (string, error)
- func GetCurrentNamespaceFromKubeConfig() string
- func GetDefaultDataIndex(namespace string) v1beta1.KogitoSupportingService
- func GetDefaultJobsService(namespace string) v1beta1.KogitoSupportingService
- func GetDefaultMessagingInfra(namespace string) *v1beta1.KogitoInfra
- func GetDefaultMgmtConsole(namespace string) v1beta1.KogitoSupportingService
- func GetDefaultPersistenceInfra(namespace string) *v1beta1.KogitoInfra
- func IsKogitoCRDsAvailable(client *kogitocli.Client) bool
- func SetCurrentNamespaceToKubeConfig(namespace string) error
- type ResourceCheckService
- type ServicesInstallation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureProject ¶
EnsureProject verifies whether the given project is a valid string in the context and whether it exists in the cluster
func GetCurrentNamespaceFromKubeConfig ¶
func GetCurrentNamespaceFromKubeConfig() string
GetCurrentNamespaceFromKubeConfig gets the current namespace from the .kubeconfig file registered in the local machine
func GetDefaultDataIndex ¶
func GetDefaultDataIndex(namespace string) v1beta1.KogitoSupportingService
GetDefaultDataIndex gets the default Data Index instance
func GetDefaultJobsService ¶
func GetDefaultJobsService(namespace string) v1beta1.KogitoSupportingService
GetDefaultJobsService gets the default Jobs Service instance
func GetDefaultMessagingInfra ¶
func GetDefaultMessagingInfra(namespace string) *v1beta1.KogitoInfra
GetDefaultMessagingInfra provides kogitoInfra instance for Kafka
func GetDefaultMgmtConsole ¶
func GetDefaultMgmtConsole(namespace string) v1beta1.KogitoSupportingService
GetDefaultMgmtConsole gets the default Management Console instance
func GetDefaultPersistenceInfra ¶
func GetDefaultPersistenceInfra(namespace string) *v1beta1.KogitoInfra
GetDefaultPersistenceInfra provides kogitoInfra instance for Infinispan
func IsKogitoCRDsAvailable ¶
IsKogitoCRDsAvailable detects if the CRDs for kogito-operator are available or not
func SetCurrentNamespaceToKubeConfig ¶
SetCurrentNamespaceToKubeConfig sets the current namespace to the .kubeconfig file
Types ¶
type ResourceCheckService ¶
type ResourceCheckService interface { EnsureProject(kubeCli *client.Client, project string) (string, error) CheckKogitoRuntimeExists(kubeCli *client.Client, name string, namespace string) error CheckKogitoRuntimeNotExists(kubeCli *client.Client, name string, namespace string) error CheckKogitoBuildExists(kubeCli *client.Client, name string, project string) error CheckKogitoBuildNotExists(kubeCli *client.Client, name string, namespace string) error CheckKogitoInfraExists(kubeCli *client.Client, name string, namespace string) error }
ResourceCheckService is interface to check K8 resource existence
func NewResourceCheckService ¶
func NewResourceCheckService() ResourceCheckService
NewResourceCheckService create and return resourceCheckServiceImpl value
type ServicesInstallation ¶
type ServicesInstallation interface { // BuildService build kogito service. // Depends on the Operator, install it first. InstallBuildService(build *v1beta1.KogitoBuild) ServicesInstallation // DeployService deploy Runtime service. // Depends on the Operator, install it first. InstallRuntimeService(runtime *v1beta1.KogitoRuntime) ServicesInstallation // InstallSupportingService installs supporting services. If no reference provided, it will install the default instance. // Depends on the Operator, install it first. InstallSupportingService(supportingService *v1beta1.KogitoSupportingService) ServicesInstallation // InstallInfraService install kogito Infra. // Depends on the Operator, install it first. InstallInfraService(infra *v1beta1.KogitoInfra) ServicesInstallation // CheckOperatorCRDs checks wheather the CRDs are available on the cluster or not CheckOperatorCRDs() ServicesInstallation // GetError return any given error during the installation process GetError() error }
ServicesInstallation provides an interface for handling infrastructure services installation
func ServicesInstallationBuilder ¶
func ServicesInstallationBuilder(client *kogitocli.Client, namespace string) ServicesInstallation
ServicesInstallationBuilder creates the basic structure for services installation definition.