config

package
v0.0.0-...-6db8d34 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// UseImageCacheAlways Always use image cache
	UseImageCacheAlways = ImageCacheMode("always")
	// UseImageCacheNever don't use image cache, build always manually
	UseImageCacheNever = ImageCacheMode("never")
	// UseImageCacheIfAvailable use image cache if image is available there, otherwise build locally
	UseImageCacheIfAvailable = ImageCacheMode("if-available")
)

Functions

func BindFlags

func BindFlags(set *flag.FlagSet)

BindFlags binds BDD tests env flags to given flag set

func GetBuildBuilderImageStreamTag

func GetBuildBuilderImageStreamTag() string

GetBuildBuilderImageStreamTag return the tag for the builder image

func GetBuildRuntimeJVMImageStreamTag

func GetBuildRuntimeJVMImageStreamTag() string

GetBuildRuntimeJVMImageStreamTag return the tag for the runtime JVM image

func GetBuildRuntimeNativeImageStreamTag

func GetBuildRuntimeNativeImageStreamTag() string

GetBuildRuntimeNativeImageStreamTag return the tag for the runtime native image

func GetCiName

func GetCiName() string

GetCiName return the CI name that executes the tests, if any

func GetContainerEngine

func GetContainerEngine() string

GetContainerEngine returns engine used to interact with images and local containers

func GetCustomMavenRepoURL

func GetCustomMavenRepoURL() string

GetCustomMavenRepoURL return the custom maven repository url used by S2I builds

func GetDomainSuffix

func GetDomainSuffix() string

GetDomainSuffix returns the domain suffix for exposed services

func GetExamplesRepositoryRef

func GetExamplesRepositoryRef() string

GetExamplesRepositoryRef return the branch for the examples repository

func GetExamplesRepositoryURI

func GetExamplesRepositoryURI() string

GetExamplesRepositoryURI return the uri for the examples repository

func GetHTTPRetryNumber

func GetHTTPRetryNumber() int

GetHTTPRetryNumber return the number of retries to be applied for http calls

func GetHyperfoilControllerImageVersion

func GetHyperfoilControllerImageVersion() string

GetHyperfoilControllerImageVersion returns the Hyperfoil controller image version

func GetHyperfoilOutputDirectory

func GetHyperfoilOutputDirectory() string

GetHyperfoilOutputDirectory returns directory to store Hyperfoil run results

func GetInfinispanStorageClass

func GetInfinispanStorageClass() string

GetInfinispanStorageClass return the Infinispan storage class

func GetLoadFactor

func GetLoadFactor() int

GetLoadFactor return the load factor of the cluster

func GetMavenMirrorURL

func GetMavenMirrorURL() string

GetMavenMirrorURL return the maven mirror url used for building applications

func GetNamespaceName

func GetNamespaceName() string

GetNamespaceName return namespace name if it was defined

func GetNativeBuilderImage

func GetNativeBuilderImage() string

GetNativeBuilderImage return the native builder image for Maven native builds

func GetOlmNamespace

func GetOlmNamespace() string

GetOlmNamespace returns namespace which is used for cluster scope operators

func GetOperatorCatalogImage

func GetOperatorCatalogImage() string

GetOperatorCatalogImage return the image tag for the Kogito operator catalog

func GetOperatorCliPath

func GetOperatorCliPath() (string, error)

GetOperatorCliPath return the path to the kogito CLI binary

func GetOperatorImageTag

func GetOperatorImageTag() string

GetOperatorImageTag return the image tag for the operator

func GetOperatorProfilingDataAccessYamlURI

func GetOperatorProfilingDataAccessYamlURI() string

GetOperatorProfilingDataAccessYamlURI return the uri for kogito-operator-profiling-data-access.yaml file

func GetOperatorProfilingOutputFileURI

func GetOperatorProfilingOutputFileURI() string

GetOperatorProfilingOutputFileURI return the uri for the profiling data output file

func GetOperatorYamlURI

func GetOperatorYamlURI() string

GetOperatorYamlURI return the uri for kogito-operator.yaml file

func GetQuarkusPlatformMavenMirrorURL

func GetQuarkusPlatformMavenMirrorURL() string

GetQuarkusPlatformMavenMirrorURL return the maven mirror url used for building applications from assets with quarkus platform

func GetRhpamOperatorYamlURI

func GetRhpamOperatorYamlURI() string

GetRhpamOperatorYamlURI return the uri for rhpam-kogito-operator.yaml file

func GetRuntimeApplicationImageNamePrefix

func GetRuntimeApplicationImageNamePrefix() string

GetRuntimeApplicationImageNamePrefix return the name prefix for runtime application images

func GetRuntimeApplicationImageNameSuffix

func GetRuntimeApplicationImageNameSuffix() string

GetRuntimeApplicationImageNameSuffix return the name suffix for runtime application images

func GetRuntimeApplicationImageRegistry

func GetRuntimeApplicationImageRegistry() string

GetRuntimeApplicationImageRegistry return the registry for the runtime application images

func GetRuntimeApplicationImageVersion

func GetRuntimeApplicationImageVersion() string

GetRuntimeApplicationImageVersion return the version for runtime application images

func GetServiceImageTag

func GetServiceImageTag(ImageType ImageType, persistenceType ImagePersistenceType) string

GetServiceImageTag returns the image tag based on the image type and the persistence type

func GetServicesImageNameSuffix

func GetServicesImageNameSuffix() string

GetServicesImageNameSuffix return the name suffix for the services images

func GetServicesImageRegistry

func GetServicesImageRegistry() string

GetServicesImageRegistry return the registry for the services images

func GetServicesImageVersion

func GetServicesImageVersion() string

GetServicesImageVersion return the version for the services images

func IsCrDeploymentOnly

func IsCrDeploymentOnly() bool

IsCrDeploymentOnly returns whether the deployment should be done only with CR

func IsCustomMavenRepoReplaceDefault

func IsCustomMavenRepoReplaceDefault() bool

IsCustomMavenRepoReplaceDefault return whether custom maven repo should replace the default JBoss repository

func IsDisableMavenNativeBuildInContainer

func IsDisableMavenNativeBuildInContainer() bool

IsDisableMavenNativeBuildInContainer return whether Maven native build in container should be disabled

func IsDryRun

func IsDryRun() bool

IsDryRun return whether we should do a dry run

func IsExamplesRepositoryIgnoreSSL

func IsExamplesRepositoryIgnoreSSL() bool

IsExamplesRepositoryIgnoreSSL return whether SSL should be ignored on Git checkout

func IsInfinispanInstalledByOlm

func IsInfinispanInstalledByOlm() bool

IsInfinispanInstalledByOlm return true if Infinispan operator is installed using OLM

func IsInfinispanInstalledByYaml

func IsInfinispanInstalledByYaml() bool

IsInfinispanInstalledByYaml return true if Infinispan operator is installed using YAML files

func IsKeepNamespace

func IsKeepNamespace() bool

IsKeepNamespace return whether we should keep namespace after scenario run

func IsLocalCluster

func IsLocalCluster() bool

IsLocalCluster return whether tests are executed using a local cluster

func IsLocalTests

func IsLocalTests() bool

IsLocalTests return whether tests are executed in local

func IsMavenIgnoreSelfSignedCertificate

func IsMavenIgnoreSelfSignedCertificate() bool

IsMavenIgnoreSelfSignedCertificate return whether self-signed certficate should be ignored

func IsOperatorInstalledByOlm

func IsOperatorInstalledByOlm() bool

IsOperatorInstalledByOlm return true if Kogito operator is installed using OLM

func IsOperatorInstalledByYaml

func IsOperatorInstalledByYaml() bool

IsOperatorInstalledByYaml return true if Kogito operator is installed using YAML files

func IsOperatorProfiling

func IsOperatorProfiling() bool

IsOperatorProfiling returns whether the operator profiling is activated

func IsPerformanceTests

func IsPerformanceTests() bool

IsPerformanceTests return whether performance tests should be executed

func IsShowScenarios

func IsShowScenarios() bool

IsShowScenarios return whether we should display scenarios

func IsShowSteps

func IsShowSteps() bool

IsShowSteps return whether we should display scenarios's steps

func IsSmokeTests

func IsSmokeTests() bool

IsSmokeTests return whether smoke tests should be executed

func UseProductOperator

func UseProductOperator() bool

UseProductOperator return true if RHPAM Kogito operator should be used, false for Kogito operator

Types

type ImageCacheMode

type ImageCacheMode string

ImageCacheMode defines whether image cache should be used for runtime image or images should be rather built manually.

func GetImageCacheMode

func GetImageCacheMode() ImageCacheMode

GetImageCacheMode returns image cache mode

func (ImageCacheMode) IsValid

func (imageCacheMode ImageCacheMode) IsValid() bool

IsValid returns true if image cache mode value is one of valid expected modes

type ImagePersistenceType

type ImagePersistenceType string

ImagePersistenceType represents the persistence type for the base image

const (
	// EphemeralPersistenceType ...
	EphemeralPersistenceType ImagePersistenceType = "ephemeral"
	// InfinispanPersistenceType ...
	InfinispanPersistenceType ImagePersistenceType = "infinispan"
	// MongoDBPersistenceType ...
	MongoDBPersistenceType ImagePersistenceType = "mongodb"
	// PosgresqlPersistenceType ...
	PosgresqlPersistenceType ImagePersistenceType = "posgresql"
	// RedisPersistenceType ...
	RedisPersistenceType ImagePersistenceType = "redis"
)

type ImageType

type ImageType string

ImageType represents the image base image name

const (
	// DataIndexImageType ...
	DataIndexImageType ImageType = "data-index"
	// ExplainabilityImageType ...
	ExplainabilityImageType ImageType = "explainability"
	// JobServiceImageType ...
	JobServiceImageType ImageType = "jobs-service"
	// ManagementConsoleImageType ...
	ManagementConsoleImageType ImageType = "mgmt-console"
	// TaskConsoleImageType ...
	TaskConsoleImageType ImageType = "task-console"
	// TrustyImageType ...
	TrustyImageType ImageType = "trusty"
	// TrustyUIImageType ...
	TrustyUIImageType ImageType = "trusty-ui"
)

type TestConfig

type TestConfig struct {
	// contains filtered or unexported fields
}

TestConfig contains the information about the tests environment

Jump to

Keyboard shortcuts

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