Documentation ¶
Index ¶
- Constants
- func GetApplicationName(build api.KogitoBuildInterface) string
- func GetBuildBuilderName(build api.KogitoBuildInterface) string
- func GetDefaultBuilderImage() string
- func GetDefaultRuntimeJVMImage() string
- func GetDefaultRuntimeNativeImage() string
- type BuildConfigHandler
- type BuildHandler
- type BuildManager
- type DecoratorHandler
- type DeltaProcessor
- type ImageStreamHandler
- type StatusHandler
- type TriggerHandler
Constants ¶
const (
// BuildConfigLabelSelector default build selector for buildconfigs
BuildConfigLabelSelector = "buildconfig"
)
const (
// LabelKeyBuildType identifies the instance build type
LabelKeyBuildType = "buildType"
)
Variables ¶
This section is empty.
Functions ¶
func GetApplicationName ¶
func GetApplicationName(build api.KogitoBuildInterface) string
GetApplicationName gets the Kogito service name
func GetBuildBuilderName ¶
func GetBuildBuilderName(build api.KogitoBuildInterface) string
GetBuildBuilderName gets the BuildConfig builder name
func GetDefaultRuntimeJVMImage ¶
func GetDefaultRuntimeJVMImage() string
GetDefaultRuntimeJVMImage ...
func GetDefaultRuntimeNativeImage ¶
func GetDefaultRuntimeNativeImage() string
GetDefaultRuntimeNativeImage ...
Types ¶
type BuildConfigHandler ¶ added in v1.9.0
type BuildConfigHandler interface {
// contains filtered or unexported methods
}
BuildConfigHandler ...
func NewBuildConfigHandler ¶ added in v1.9.0
func NewBuildConfigHandler(context operator.Context) BuildConfigHandler
NewBuildConfigHandler ...
type BuildHandler ¶ added in v1.20.0
type BuildHandler interface { TriggerBuild(bc *buildv1.BuildConfig, triggeredBy string) (bool, error) TriggerBuildFromFile(namespace string, r io.Reader, options *buildv1.BinaryBuildRequestOptions, binaryBuild bool, scheme *runtime.Scheme) (*buildv1.Build, error) GetBuildsStatus(bc *buildv1.BuildConfig, labelSelector string) (api.BuildsInterface, error) GetBuildsStatusByLabel(namespace, labelSelector string) (api.BuildsInterface, error) }
BuildHandler exposes OpenShift BuildConfig operations
func NewBuildHandler ¶ added in v1.20.0
func NewBuildHandler(context operator.Context, kogitoBuildHandler manager.KogitoBuildHandler) BuildHandler
NewBuildHandler ...
type BuildManager ¶ added in v1.20.0
type BuildManager interface { GetRequestedResources() (map[reflect.Type][]client.Object, error) GetDeployedResources() (map[reflect.Type][]client.Object, error) GetComparator() compare.MapComparator }
BuildManager ...
type DecoratorHandler ¶
type DecoratorHandler interface {
// contains filtered or unexported methods
}
DecoratorHandler ...
func NewDecoratorHandler ¶
func NewDecoratorHandler(context operator.Context) DecoratorHandler
NewDecoratorHandler ...
type DeltaProcessor ¶
type DeltaProcessor interface { // ProcessDelta... ProcessDelta() error }
DeltaProcessor describes the interface to communicate with the build package. The controller typically manipulates the Kubernetes resources through this implementation.
func NewDeltaProcessor ¶
func NewDeltaProcessor(context operator.Context, build api.KogitoBuildInterface, buildHandler manager.KogitoBuildHandler) (DeltaProcessor, error)
NewDeltaProcessor creates a new DeltaProcessor instance for the given KogitoBuild
type ImageStreamHandler ¶
type ImageStreamHandler interface { CreateRequiredKogitoImageStreams(build api.KogitoBuildInterface) (created bool, err error) ResolveKogitoImageStreamTagName(build api.KogitoBuildInterface, isBuilder bool) string ResolveKogitoImageNameTag(build api.KogitoBuildInterface, isBuilder bool) string }
ImageStreamHandler ...
func NewImageSteamHandler ¶
func NewImageSteamHandler(context operator.Context) ImageStreamHandler
NewImageSteamHandler ...
type StatusHandler ¶
type StatusHandler interface {
HandleStatusChange(instance api.KogitoBuildInterface, err error)
}
StatusHandler ...
func NewStatusHandler ¶
func NewStatusHandler(context operator.Context, buildHandler manager.KogitoBuildHandler) StatusHandler
NewStatusHandler ...
type TriggerHandler ¶
type TriggerHandler interface {
StartNewBuild(buildConfig *v1.BuildConfig) error
}
TriggerHandler ...
func NewTriggerHandler ¶
func NewTriggerHandler(context operator.Context, buildHandler manager.KogitoBuildHandler) TriggerHandler
NewTriggerHandler ...