v1

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: 8 Imported by: 5

Documentation

Overview

Package v1 contains API Schema definitions for the rhpam v1 API group

Package v1 contains API Schema definitions for the rhpam v1 API group +kubebuilder:object:generate=true +groupName=rhpam.kiegroup.org

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "rhpam.kiegroup.org", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Artifact

type Artifact struct {

	//Indicates the unique identifier of the organization or group that created the project.
	// + optional
	GroupID string `json:"groupId,omitempty"`

	//Indicates the unique base name of the primary artifact being generated.
	// + optional
	ArtifactID string `json:"artifactId,omitempty"`

	//Indicates the version of the artifact generated by the project.
	// + optional
	Version string `json:"version,omitempty"`
}

Artifact contains override information for building the Maven artifact. + optional +operator-sdk:csv:customresourcedefinitions:displayName="Final Artifact"

func (*Artifact) DeepCopy

func (in *Artifact) DeepCopy() *Artifact

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Artifact.

func (*Artifact) DeepCopyInto

func (in *Artifact) DeepCopyInto(out *Artifact)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Artifact) GetArtifactID

func (a *Artifact) GetArtifactID() string

GetArtifactID ...

func (*Artifact) GetGroupID

func (a *Artifact) GetGroupID() string

GetGroupID ...

func (*Artifact) GetVersion

func (a *Artifact) GetVersion() string

GetVersion ...

func (*Artifact) SetArtifactID

func (a *Artifact) SetArtifactID(artifactID string)

SetArtifactID ...

func (*Artifact) SetGroupID

func (a *Artifact) SetGroupID(groupID string)

SetGroupID ...

func (*Artifact) SetVersion

func (a *Artifact) SetVersion(version string)

SetVersion ...

type Builds

type Builds struct {
	// Builds are being created.
	// +listType=set
	New []string `json:"new,omitempty"`
	// Builds are about to start running.
	// +listType=set
	Pending []string `json:"pending,omitempty"`
	// Builds are running.
	// +listType=set
	Running []string `json:"running,omitempty"`
	// Builds have executed and succeeded.
	// +listType=set
	Complete []string `json:"complete,omitempty"`
	// Builds have executed and failed.
	// +listType=set
	Failed []string `json:"failed,omitempty"`
	// Builds have been prevented from executing by an error.
	// +listType=set
	Error []string `json:"error,omitempty"`
	// Builds have been stopped from executing.
	// +listType=set
	Cancelled []string `json:"cancelled,omitempty"`
}

Builds ... +k8s:openapi-gen=true

func (*Builds) DeepCopy

func (in *Builds) DeepCopy() *Builds

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Builds.

func (*Builds) DeepCopyInto

func (in *Builds) DeepCopyInto(out *Builds)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Builds) GetCancelled

func (b *Builds) GetCancelled() []string

GetCancelled ...

func (*Builds) GetComplete

func (b *Builds) GetComplete() []string

GetComplete ...

func (*Builds) GetError

func (b *Builds) GetError() []string

GetError ...

func (*Builds) GetFailed

func (b *Builds) GetFailed() []string

GetFailed ...

func (*Builds) GetNew

func (b *Builds) GetNew() []string

GetNew ...

func (*Builds) GetPending

func (b *Builds) GetPending() []string

GetPending ...

func (*Builds) GetRunning

func (b *Builds) GetRunning() []string

GetRunning ...

func (*Builds) SetCancelled

func (b *Builds) SetCancelled(cancelled []string)

SetCancelled ...

func (*Builds) SetComplete

func (b *Builds) SetComplete(completeBuilds []string)

SetComplete ...

func (*Builds) SetError

func (b *Builds) SetError(errorBuilds []string)

SetError ...

func (*Builds) SetFailed

func (b *Builds) SetFailed(failedBuilds []string)

SetFailed ...

func (*Builds) SetNew

func (b *Builds) SetNew(newBuilds []string)

SetNew ...

func (*Builds) SetPending

func (b *Builds) SetPending(pendingBuilds []string)

SetPending ...

func (*Builds) SetRunning

func (b *Builds) SetRunning(runningBuilds []string)

SetRunning ...

type GitSource

type GitSource struct {
	// Git URI for the s2i source.
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Git URI"
	URI string `json:"uri"`
	// Branch to use in the Git repository.
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Git Reference"
	Reference string `json:"reference,omitempty"`
	// Context/subdirectory where the code is located, relative to the repo root.
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Git Context"
	ContextDir string `json:"contextDir,omitempty"`
}

GitSource Git coordinates to locate the source code to build. +k8s:openapi-gen=true +operator-sdk:csv:customresourcedefinitions:displayName="Kogito Git Source"

func (*GitSource) DeepCopy

func (in *GitSource) DeepCopy() *GitSource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitSource.

func (*GitSource) DeepCopyInto

func (in *GitSource) DeepCopyInto(out *GitSource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GitSource) GetContextDir

func (g *GitSource) GetContextDir() string

GetContextDir ...

func (*GitSource) GetReference

func (g *GitSource) GetReference() string

GetReference ...

func (*GitSource) GetURI

func (g *GitSource) GetURI() string

GetURI ...

func (*GitSource) SetContextDir

func (g *GitSource) SetContextDir(context string)

SetContextDir ...

func (*GitSource) SetReference

func (g *GitSource) SetReference(reference string)

SetReference ...

func (*GitSource) SetURI

func (g *GitSource) SetURI(uri string)

SetURI ...

type InfraResource

type InfraResource struct {

	// APIVersion describes the API Version of referred Kubernetes resource for example, infinispan.org/v1
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="APIVersion"
	APIVersion string `json:"apiVersion"`

	// Kind describes the kind of referred Kubernetes resource for example, Infinispan
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Kind"
	Kind string `json:"kind"`

	// +optional
	// Namespace where referred resource exists.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Namespace"
	Namespace string `json:"namespace,omitempty"`

	// Name of referred resource.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Name"
	Name string `json:"name"`
}

InfraResource provide reference infra resource

func (*InfraResource) DeepCopy

func (in *InfraResource) DeepCopy() *InfraResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InfraResource.

func (*InfraResource) DeepCopyInto

func (in *InfraResource) DeepCopyInto(out *InfraResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*InfraResource) GetAPIVersion

func (r *InfraResource) GetAPIVersion() string

GetAPIVersion ...

func (*InfraResource) GetKind

func (r *InfraResource) GetKind() string

GetKind ...

func (*InfraResource) GetName

func (r *InfraResource) GetName() string

GetName ...

func (*InfraResource) GetNamespace

func (r *InfraResource) GetNamespace() string

GetNamespace ...

func (*InfraResource) SetAPIVersion

func (r *InfraResource) SetAPIVersion(apiVersion string)

SetAPIVersion ...

func (*InfraResource) SetKind

func (r *InfraResource) SetKind(kind string)

SetKind ...

func (*InfraResource) SetName

func (r *InfraResource) SetName(name string)

SetName ...

func (*InfraResource) SetNamespace

func (r *InfraResource) SetNamespace(namespace string)

SetNamespace ...

type KogitoBuild

type KogitoBuild struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KogitoBuildSpec   `json:"spec,omitempty"`
	Status KogitoBuildStatus `json:"status,omitempty"`
}

KogitoBuild handles how to build a custom Kogito service in a Kubernetes/OpenShift cluster.

func (*KogitoBuild) DeepCopy

func (in *KogitoBuild) DeepCopy() *KogitoBuild

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoBuild.

func (*KogitoBuild) DeepCopyInto

func (in *KogitoBuild) DeepCopyInto(out *KogitoBuild)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoBuild) DeepCopyObject

func (in *KogitoBuild) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*KogitoBuild) GetSpec

func (k *KogitoBuild) GetSpec() api.KogitoBuildSpecInterface

GetSpec provide spec of Kogito Build

func (*KogitoBuild) GetStatus

func (k *KogitoBuild) GetStatus() api.KogitoBuildStatusInterface

GetStatus provide status of Kogito Build

type KogitoBuildList

type KogitoBuildList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// +listType=atomic
	Items []KogitoBuild `json:"items"`
}

KogitoBuildList contains a list of KogitoBuild.

func (*KogitoBuildList) DeepCopy

func (in *KogitoBuildList) DeepCopy() *KogitoBuildList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoBuildList.

func (*KogitoBuildList) DeepCopyInto

func (in *KogitoBuildList) DeepCopyInto(out *KogitoBuildList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoBuildList) DeepCopyObject

func (in *KogitoBuildList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KogitoBuildSpec

type KogitoBuildSpec struct {

	// Sets the type of build that this instance will handle:
	//
	// Binary - takes an uploaded binary file already compiled and creates a Kogito service image from it.
	//
	// RemoteSource - pulls the source code from a Git repository, builds the binary and then the final Kogito service image.
	//
	// LocalSource - takes an uploaded resource file such as DRL (rules), DMN (decision) or BPMN (process), builds the binary and the final Kogito service image.
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Build Type"
	// +kubebuilder:validation:Enum=Binary;RemoteSource;LocalSource
	Type api.KogitoBuildType `json:"type"`

	// DisableIncremental indicates that source to image builds should NOT be incremental. Defaults to false.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Disable Incremental Builds"
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
	// +optional
	DisableIncremental bool `json:"disableIncremental,omitempty"`

	// Environment variables used during build time.
	// +listType=atomic
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Build Env Variables"
	// +optional
	Env []corev1.EnvVar `json:"env,omitempty"`

	// Information about the git repository where the Kogito Service source code resides.
	//
	// Ignored for binary builds.
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Kogito Git Source"
	GitSource GitSource `json:"gitSource,omitempty"`

	// Which runtime Kogito service base image to use when building the Kogito service.
	// If "BuildImage" is set, this value is ignored by the operator.
	// Default value: quarkus.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Runtime"
	// +optional
	// +kubebuilder:validation:Enum=quarkus;springboot
	Runtime api.RuntimeType `json:"runtime,omitempty"`

	// WebHooks secrets for source to image builds based on Git repositories (Remote Sources).
	// +listType=atomic
	// +optional
	WebHooks []WebHookSecret `json:"webHooks,omitempty"`

	// Native indicates if the Kogito Service built should be compiled to run on native mode when Runtime is Quarkus (Source to Image build only).
	//
	// For more information, see https://www.graalvm.org/docs/reference-manual/aot-compilation/.
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Native Build"
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
	Native bool `json:"native,omitempty"`

	// Resources Requirements for builder pods.
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:resourceRequirements"
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`

	// Maven Mirror URL to be used during source-to-image builds (Local and Remote) to considerably increase build speed.
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Maven Mirror URL"
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	MavenMirrorURL string `json:"mavenMirrorURL,omitempty"`

	// Image used to build the Kogito Service from source (Local and Remote).
	//
	// If not defined the operator will use image provided by the Kogito Team based on the "Runtime" field.
	//
	// Example: "quay.io/kiegroup/kogito-jvm-builder:latest".
	//
	// On OpenShift an ImageStream will be created in the current namespace pointing to the given image.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Build Image"
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	// +optional
	BuildImage string `json:"buildImage,omitempty"`

	// Image used as the base image for the final Kogito service. This image only has the required packages to run the application.
	//
	// For example: quarkus based services will have only JVM installed, native services only the packages required by the OS.
	//
	// If not defined the operator will use image provided by the Kogito Team based on the "Runtime" field.
	//
	// Example: "quay.io/kiegroup/kogito-jvm-builder:latest".
	//
	// On OpenShift an ImageStream will be created in the current namespace pointing to the given image.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Base Image"
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	// +optional
	RuntimeImage string `json:"runtimeImage,omitempty"`

	// Set this field targeting the desired KogitoRuntime when this KogitoBuild instance has a different name than the KogitoRuntime.
	//
	// By default this KogitoBuild instance will generate a final image named after its own name (.metadata.name).
	//
	// On OpenShift, an ImageStream will be created causing a redeployment on any KogitoRuntime with the same name.
	// On Kubernetes, the final image will be pushed to the KogitoRuntime deployment.
	//
	// If you have multiple KogitoBuild instances (let's say BinaryBuildType and Remote Source), you might need that both target the same KogitoRuntime.
	// Both KogitoBuilds will update the same ImageStream or generate a final image to the same KogitoRuntime deployment.
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Target kogito Runtime"
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	TargetKogitoRuntime string `json:"targetKogitoRuntime,omitempty"`

	// Artifact contains override information for building the Maven artifact (used for Local Source builds).
	//
	// You might want to override this information when building from decisions, rules or process files.
	// In this scenario the Kogito Images will generate a new Java project for you underneath.
	// This information will be used to generate this project.
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Final Artifact"
	Artifact Artifact `json:"artifact,omitempty"`

	// If set to true will print the logs for downloading/uploading of maven dependencies. Defaults to false.
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Enable Maven Download Output"
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
	EnableMavenDownloadOutput bool `json:"enableMavenDownloadOutput,omitempty"`
}

KogitoBuildSpec defines the desired state of KogitoBuild.

func (*KogitoBuildSpec) AddResourceLimit

func (k *KogitoBuildSpec) AddResourceLimit(name, value string)

AddResourceLimit adds new resource limit. Works also on an uninitialized Limits field.

func (*KogitoBuildSpec) AddResourceRequest

func (k *KogitoBuildSpec) AddResourceRequest(name, value string)

AddResourceRequest adds new resource request. Works also on an uninitialized Requests field.

func (*KogitoBuildSpec) DeepCopy

func (in *KogitoBuildSpec) DeepCopy() *KogitoBuildSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoBuildSpec.

func (*KogitoBuildSpec) DeepCopyInto

func (in *KogitoBuildSpec) DeepCopyInto(out *KogitoBuildSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoBuildSpec) GetArtifact

func (k *KogitoBuildSpec) GetArtifact() api.ArtifactInterface

GetArtifact ...

func (*KogitoBuildSpec) GetBuildImage

func (k *KogitoBuildSpec) GetBuildImage() string

GetBuildImage ...

func (*KogitoBuildSpec) GetEnv

func (k *KogitoBuildSpec) GetEnv() []corev1.EnvVar

GetEnv ...

func (*KogitoBuildSpec) GetGitSource

func (k *KogitoBuildSpec) GetGitSource() api.GitSourceInterface

GetGitSource ...

func (*KogitoBuildSpec) GetMavenMirrorURL

func (k *KogitoBuildSpec) GetMavenMirrorURL() string

GetMavenMirrorURL ...

func (*KogitoBuildSpec) GetResources

func (k *KogitoBuildSpec) GetResources() corev1.ResourceRequirements

GetResources ...

func (*KogitoBuildSpec) GetRuntime

func (k *KogitoBuildSpec) GetRuntime() api.RuntimeType

GetRuntime ...

func (*KogitoBuildSpec) GetRuntimeImage

func (k *KogitoBuildSpec) GetRuntimeImage() string

GetRuntimeImage ...

func (*KogitoBuildSpec) GetTargetKogitoRuntime

func (k *KogitoBuildSpec) GetTargetKogitoRuntime() string

GetTargetKogitoRuntime ...

func (*KogitoBuildSpec) GetType

func (k *KogitoBuildSpec) GetType() api.KogitoBuildType

GetType ...

func (*KogitoBuildSpec) GetWebHooks

func (k *KogitoBuildSpec) GetWebHooks() []api.WebHookSecretInterface

GetWebHooks ...

func (*KogitoBuildSpec) IsDisableIncremental

func (k *KogitoBuildSpec) IsDisableIncremental() bool

IsDisableIncremental ...

func (*KogitoBuildSpec) IsEnableMavenDownloadOutput

func (k *KogitoBuildSpec) IsEnableMavenDownloadOutput() bool

IsEnableMavenDownloadOutput ...

func (*KogitoBuildSpec) IsNative

func (k *KogitoBuildSpec) IsNative() bool

IsNative ...

func (*KogitoBuildSpec) SetArtifact

func (k *KogitoBuildSpec) SetArtifact(artifact api.ArtifactInterface)

SetArtifact ...

func (*KogitoBuildSpec) SetBuildImage

func (k *KogitoBuildSpec) SetBuildImage(buildImage string)

SetBuildImage ...

func (*KogitoBuildSpec) SetDisableIncremental

func (k *KogitoBuildSpec) SetDisableIncremental(disableIncremental bool)

SetDisableIncremental ...

func (*KogitoBuildSpec) SetEnableMavenDownloadOutput

func (k *KogitoBuildSpec) SetEnableMavenDownloadOutput(enableMavenDownloadOutput bool)

SetEnableMavenDownloadOutput ...

func (*KogitoBuildSpec) SetEnv

func (k *KogitoBuildSpec) SetEnv(env []corev1.EnvVar)

SetEnv ...

func (*KogitoBuildSpec) SetGitSource

func (k *KogitoBuildSpec) SetGitSource(gitSource api.GitSourceInterface)

SetGitSource ...

func (*KogitoBuildSpec) SetMavenMirrorURL

func (k *KogitoBuildSpec) SetMavenMirrorURL(mavenMirrorURL string)

SetMavenMirrorURL ...

func (*KogitoBuildSpec) SetNative

func (k *KogitoBuildSpec) SetNative(native bool)

SetNative ...

func (*KogitoBuildSpec) SetResources

func (k *KogitoBuildSpec) SetResources(resources corev1.ResourceRequirements)

SetResources ...

func (*KogitoBuildSpec) SetRuntime

func (k *KogitoBuildSpec) SetRuntime(runtime api.RuntimeType)

SetRuntime ...

func (*KogitoBuildSpec) SetRuntimeImage

func (k *KogitoBuildSpec) SetRuntimeImage(runtime string)

SetRuntimeImage ...

func (*KogitoBuildSpec) SetTargetKogitoRuntime

func (k *KogitoBuildSpec) SetTargetKogitoRuntime(targetRuntime string)

SetTargetKogitoRuntime ....

func (*KogitoBuildSpec) SetType

func (k *KogitoBuildSpec) SetType(buildType api.KogitoBuildType)

SetType ...

func (*KogitoBuildSpec) SetWebHooks

func (k *KogitoBuildSpec) SetWebHooks(webhooks []api.WebHookSecretInterface)

SetWebHooks ...

type KogitoBuildStatus

type KogitoBuildStatus struct {
	// +listType=atomic
	// History of conditions for the resource
	// +operator-sdk:csv:customresourcedefinitions:type=status
	// +operator-sdk:csv:customresourcedefinitions:type=status,xDescriptors="urn:alm:descriptor:io.kubernetes.conditions"
	Conditions *[]metav1.Condition `json:"conditions"`
	// +operator-sdk:csv:customresourcedefinitions:type=status
	// +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Latest Build"
	LatestBuild string `json:"latestBuild,omitempty"`
	// History of builds
	// +operator-sdk:csv:customresourcedefinitions:type=status
	// +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Builds"
	Builds Builds `json:"builds"`
}

KogitoBuildStatus defines the observed state of KogitoBuild. +k8s:openapi-gen=true

func (*KogitoBuildStatus) DeepCopy

func (in *KogitoBuildStatus) DeepCopy() *KogitoBuildStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoBuildStatus.

func (*KogitoBuildStatus) DeepCopyInto

func (in *KogitoBuildStatus) DeepCopyInto(out *KogitoBuildStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoBuildStatus) GetBuilds

func (k *KogitoBuildStatus) GetBuilds() api.BuildsInterface

GetBuilds ...

func (*KogitoBuildStatus) GetConditions

func (k *KogitoBuildStatus) GetConditions() *[]metav1.Condition

GetConditions ...

func (*KogitoBuildStatus) GetLatestBuild

func (k *KogitoBuildStatus) GetLatestBuild() string

GetLatestBuild ...

func (*KogitoBuildStatus) SetBuilds

func (k *KogitoBuildStatus) SetBuilds(builds api.BuildsInterface)

SetBuilds ...

func (*KogitoBuildStatus) SetConditions

func (k *KogitoBuildStatus) SetConditions(conditions *[]metav1.Condition)

SetConditions ...

func (*KogitoBuildStatus) SetLatestBuild

func (k *KogitoBuildStatus) SetLatestBuild(latestBuild string)

SetLatestBuild ...

type KogitoCloudEventInfo

type KogitoCloudEventInfo struct {
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Type string `json:"type"`
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Source string `json:"source,omitempty"`
}

KogitoCloudEventInfo describes the CloudEvent information based on the specification

func (*KogitoCloudEventInfo) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoCloudEventInfo.

func (*KogitoCloudEventInfo) DeepCopyInto

func (in *KogitoCloudEventInfo) DeepCopyInto(out *KogitoCloudEventInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (KogitoCloudEventInfo) GetSource

func (k KogitoCloudEventInfo) GetSource() string

GetSource ...

func (KogitoCloudEventInfo) GetType

func (k KogitoCloudEventInfo) GetType() string

GetType ...

type KogitoCloudEventsStatus

type KogitoCloudEventsStatus struct {
	// +optional
	// +listType=atomic
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Consumes []KogitoCloudEventInfo `json:"consumes,omitempty"`
	// +optional
	// +listType=atomic
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Produces []KogitoCloudEventInfo `json:"produces,omitempty"`
}

KogitoCloudEventsStatus describes the CloudEvents that can be produced or consumed by this Kogito Service instance

func (*KogitoCloudEventsStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoCloudEventsStatus.

func (*KogitoCloudEventsStatus) DeepCopyInto

func (in *KogitoCloudEventsStatus) DeepCopyInto(out *KogitoCloudEventsStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoCloudEventsStatus) GetConsumes

GetConsumes ...

func (*KogitoCloudEventsStatus) GetProduces

GetProduces ...

func (*KogitoCloudEventsStatus) SetConsumes

func (k *KogitoCloudEventsStatus) SetConsumes(consumes []api.KogitoCloudEventInfoInterface)

SetConsumes ...

func (*KogitoCloudEventsStatus) SetProduces

func (k *KogitoCloudEventsStatus) SetProduces(produces []api.KogitoCloudEventInfoInterface)

SetProduces ...

type KogitoInfra

type KogitoInfra struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KogitoInfraSpec   `json:"spec,omitempty"`
	Status KogitoInfraStatus `json:"status,omitempty"`
}

KogitoInfra is the resource to bind a Custom Resource (CR) not managed by Kogito Operator to a given deployed Kogito service.

It holds the reference of a CR managed by another operator such as Strimzi. For example: one can create a Kafka CR via Strimzi and link this resource using KogitoInfra to a given Kogito service (custom or supporting, such as Data Index).

Please refer to the Kogito Operator documentation (https://docs.jboss.org/kogito/release/latest/html_single/) for more information.

func (*KogitoInfra) DeepCopy

func (in *KogitoInfra) DeepCopy() *KogitoInfra

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoInfra.

func (*KogitoInfra) DeepCopyInto

func (in *KogitoInfra) DeepCopyInto(out *KogitoInfra)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoInfra) DeepCopyObject

func (in *KogitoInfra) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*KogitoInfra) GetSpec

func (k *KogitoInfra) GetSpec() api.KogitoInfraSpecInterface

GetSpec provide spec of Kogito infra

func (*KogitoInfra) GetStatus

func (k *KogitoInfra) GetStatus() api.KogitoInfraStatusInterface

GetStatus provide status of Kogito infra

type KogitoInfraList

type KogitoInfraList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KogitoInfra `json:"items"`
}

KogitoInfraList contains a list of KogitoInfra.

func (*KogitoInfraList) DeepCopy

func (in *KogitoInfraList) DeepCopy() *KogitoInfraList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoInfraList.

func (*KogitoInfraList) DeepCopyInto

func (in *KogitoInfraList) DeepCopyInto(out *KogitoInfraList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoInfraList) DeepCopyObject

func (in *KogitoInfraList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KogitoInfraSpec

type KogitoInfraSpec struct {

	// Resource for the service. Example: Infinispan/Kafka/Keycloak.
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Resource *InfraResource `json:"resource,omitempty"`

	// +optional
	// +mapType=atomic
	// Optional properties which would be needed to setup correct runtime/service configuration, based on the resource type.
	//
	// For example, MongoDB will require `username` and `database` as properties for a correct setup, else it will fail
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	InfraProperties map[string]string `json:"infraProperties,omitempty"`

	// +optional
	// +listType=atomic
	// Environment variables to be added to the runtime container. Keys must be a C_IDENTIFIER.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Envs []corev1.EnvVar `json:"envs,omitempty"`

	// +optional
	// +listType=atomic
	// List of secret that should be mounted to the services as envs
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	ConfigMapEnvFromReferences []string `json:"configMapEnvFromReferences,omitempty"`

	// +optional
	// +listType=atomic
	// List of configmap that should be added to the services bound to this infra instance
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	ConfigMapVolumeReferences []VolumeReference `json:"configMapVolumeReferences,omitempty"`

	// +optional
	// +listType=atomic
	// List of secret that should be mounted to the services as envs
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	SecretEnvFromReferences []string `json:"secretEnvFromReferences,omitempty"`

	// +optional
	// +listType=atomic
	// List of secret that should be munted to the services bound to this infra instance
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	SecretVolumeReferences []VolumeReference `json:"secretVolumeReferences,omitempty"`
}

KogitoInfraSpec defines the desired state of KogitoInfra. +k8s:openapi-gen=true

func (*KogitoInfraSpec) AddInfraProperties

func (k *KogitoInfraSpec) AddInfraProperties(infraProperties map[string]string)

AddInfraProperties ...

func (*KogitoInfraSpec) DeepCopy

func (in *KogitoInfraSpec) DeepCopy() *KogitoInfraSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoInfraSpec.

func (*KogitoInfraSpec) DeepCopyInto

func (in *KogitoInfraSpec) DeepCopyInto(out *KogitoInfraSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoInfraSpec) GetConfigMapEnvFromReferences

func (k *KogitoInfraSpec) GetConfigMapEnvFromReferences() []string

GetConfigMapEnvFromReferences ...

func (*KogitoInfraSpec) GetConfigMapVolumeReferences

func (k *KogitoInfraSpec) GetConfigMapVolumeReferences() []api.VolumeReferenceInterface

GetConfigMapVolumeReferences ...

func (*KogitoInfraSpec) GetEnvs

func (k *KogitoInfraSpec) GetEnvs() []corev1.EnvVar

GetEnvs ...

func (*KogitoInfraSpec) GetInfraProperties

func (k *KogitoInfraSpec) GetInfraProperties() map[string]string

GetInfraProperties ...

func (*KogitoInfraSpec) GetResource

func (k *KogitoInfraSpec) GetResource() api.ResourceInterface

GetResource ...

func (*KogitoInfraSpec) GetSecretEnvFromReferences

func (k *KogitoInfraSpec) GetSecretEnvFromReferences() []string

GetSecretEnvFromReferences ...

func (*KogitoInfraSpec) GetSecretVolumeReferences

func (k *KogitoInfraSpec) GetSecretVolumeReferences() []api.VolumeReferenceInterface

GetSecretVolumeReferences ...

func (*KogitoInfraSpec) IsResourceEmpty

func (k *KogitoInfraSpec) IsResourceEmpty() bool

IsResourceEmpty ...

type KogitoInfraStatus

type KogitoInfraStatus struct {
	// +listType=atomic
	// History of conditions for the resource
	// +operator-sdk:csv:customresourcedefinitions:type=status
	// +operator-sdk:csv:customresourcedefinitions:type=status,xDescriptors="urn:alm:descriptor:io.kubernetes.conditions"
	Conditions *[]metav1.Condition `json:"conditions"`

	// +optional
	// +listType=atomic
	// Environment variables to be added to the runtime container. Keys must be a C_IDENTIFIER.
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Envs []corev1.EnvVar `json:"env,omitempty"`

	// +optional
	// +listType=atomic
	// List of Configmap that should be mounted to the services as envs
	// +operator-sdk:csv:customresourcedefinitions:type=status
	ConfigMapEnvFromReferences []string `json:"configMapEnvFromReferences,omitempty"`

	// +optional
	// +listType=atomic
	// List of configmap that should be added as volume mount to this infra instance
	// +operator-sdk:csv:customresourcedefinitions:type=status
	ConfigMapVolumeReferences []VolumeReference `json:"configMapVolumeReferences,omitempty"`

	// +optional
	// +listType=atomic
	// List of secret that should be mounted to the services as envs
	// +operator-sdk:csv:customresourcedefinitions:type=status
	SecretEnvFromReferences []string `json:"secretEnvFromReferences,omitempty"`

	// +optional
	// +listType=atomic
	// List of secret that should be added as volume mount to this infra instance
	// +operator-sdk:csv:customresourcedefinitions:type=status
	SecretVolumeReferences []VolumeReference `json:"secretVolumeReferences,omitempty"`
}

KogitoInfraStatus defines the observed state of KogitoInfra. +k8s:openapi-gen=true

func (*KogitoInfraStatus) AddConfigMapEnvFromReferences

func (k *KogitoInfraStatus) AddConfigMapEnvFromReferences(cmName string)

AddConfigMapEnvFromReferences ...

func (*KogitoInfraStatus) AddConfigMapVolumeReference

func (k *KogitoInfraStatus) AddConfigMapVolumeReference(name string, mountPath string, fileMode *int32, optional *bool)

AddConfigMapVolumeReference ...

func (*KogitoInfraStatus) AddEnvs

func (k *KogitoInfraStatus) AddEnvs(envs []corev1.EnvVar)

AddEnvs ...

func (*KogitoInfraStatus) AddSecretEnvFromReferences

func (k *KogitoInfraStatus) AddSecretEnvFromReferences(cmName string)

AddSecretEnvFromReferences ...

func (*KogitoInfraStatus) AddSecretVolumeReference

func (k *KogitoInfraStatus) AddSecretVolumeReference(name string, mountPath string, fileMode *int32, optional *bool)

AddSecretVolumeReference ...

func (*KogitoInfraStatus) DeepCopy

func (in *KogitoInfraStatus) DeepCopy() *KogitoInfraStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoInfraStatus.

func (*KogitoInfraStatus) DeepCopyInto

func (in *KogitoInfraStatus) DeepCopyInto(out *KogitoInfraStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoInfraStatus) GetConditions

func (k *KogitoInfraStatus) GetConditions() *[]metav1.Condition

GetConditions ...

func (*KogitoInfraStatus) GetConfigMapEnvFromReferences

func (k *KogitoInfraStatus) GetConfigMapEnvFromReferences() []string

GetConfigMapEnvFromReferences ...

func (*KogitoInfraStatus) GetConfigMapVolumeReferences

func (k *KogitoInfraStatus) GetConfigMapVolumeReferences() []api.VolumeReferenceInterface

GetConfigMapVolumeReferences ...

func (*KogitoInfraStatus) GetEnvs

func (k *KogitoInfraStatus) GetEnvs() []corev1.EnvVar

GetEnvs ...

func (*KogitoInfraStatus) GetSecretEnvFromReferences

func (k *KogitoInfraStatus) GetSecretEnvFromReferences() []string

GetSecretEnvFromReferences ...

func (*KogitoInfraStatus) GetSecretVolumeReferences

func (k *KogitoInfraStatus) GetSecretVolumeReferences() []api.VolumeReferenceInterface

GetSecretVolumeReferences ...

func (*KogitoInfraStatus) SetConditions

func (k *KogitoInfraStatus) SetConditions(conditions *[]metav1.Condition)

SetConditions ...

func (*KogitoInfraStatus) SetConfigMapEnvFromReferences

func (k *KogitoInfraStatus) SetConfigMapEnvFromReferences(configMapEnvFromReferences []string)

SetConfigMapEnvFromReferences ...

func (*KogitoInfraStatus) SetConfigMapVolumeReferences

func (k *KogitoInfraStatus) SetConfigMapVolumeReferences(configMapVolumeReferences []api.VolumeReferenceInterface)

SetConfigMapVolumeReferences ...

func (*KogitoInfraStatus) SetEnvs

func (k *KogitoInfraStatus) SetEnvs(envs []corev1.EnvVar)

SetEnvs ...

func (*KogitoInfraStatus) SetSecretEnvFromReferences

func (k *KogitoInfraStatus) SetSecretEnvFromReferences(secretEnvFromReferences []string)

SetSecretEnvFromReferences ...

func (*KogitoInfraStatus) SetSecretVolumeReferences

func (k *KogitoInfraStatus) SetSecretVolumeReferences(secretVolumeReferences []api.VolumeReferenceInterface)

SetSecretVolumeReferences ...

type KogitoProbe

type KogitoProbe struct {
	// LivenessProbe describes how the Kogito container liveness probe should work
	// +
	// +optional
	LivenessProbe corev1.Probe `json:"livenessProbe,omitempty"`

	// ReadinessProbe describes how the Kogito container readiness probe should work
	// +
	// +optional
	ReadinessProbe corev1.Probe `json:"readinessProbe,omitempty"`

	// StartupProbe describes how the Kogito container startup probe should work
	// +
	// +optional
	StartupProbe corev1.Probe `json:"startupProbe,omitempty"`
}

KogitoProbe configure liveness, readiness and startup probes for containers

func (*KogitoProbe) DeepCopy

func (in *KogitoProbe) DeepCopy() *KogitoProbe

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoProbe.

func (*KogitoProbe) DeepCopyInto

func (in *KogitoProbe) DeepCopyInto(out *KogitoProbe)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoProbe) GetLivenessProbe

func (p *KogitoProbe) GetLivenessProbe() corev1.Probe

GetLivenessProbe ...

func (*KogitoProbe) GetReadinessProbe

func (p *KogitoProbe) GetReadinessProbe() corev1.Probe

GetReadinessProbe ...

func (*KogitoProbe) GetStartupProbe

func (p *KogitoProbe) GetStartupProbe() corev1.Probe

GetStartupProbe ...

func (*KogitoProbe) SetLivenessProbe

func (p *KogitoProbe) SetLivenessProbe(livenessProbe corev1.Probe)

SetLivenessProbe ...

func (*KogitoProbe) SetReadinessProbe

func (p *KogitoProbe) SetReadinessProbe(readinessProbe corev1.Probe)

SetReadinessProbe ...

func (*KogitoProbe) SetStartupProbe

func (p *KogitoProbe) SetStartupProbe(startupProbe corev1.Probe)

SetStartupProbe ...

type KogitoRuntime

type KogitoRuntime struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KogitoRuntimeSpec   `json:"spec,omitempty"`
	Status KogitoRuntimeStatus `json:"status,omitempty"`
}

KogitoRuntime is a custom Kogito service.

func (*KogitoRuntime) DeepCopy

func (in *KogitoRuntime) DeepCopy() *KogitoRuntime

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoRuntime.

func (*KogitoRuntime) DeepCopyInto

func (in *KogitoRuntime) DeepCopyInto(out *KogitoRuntime)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoRuntime) DeepCopyObject

func (in *KogitoRuntime) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*KogitoRuntime) GetRuntimeSpec

func (k *KogitoRuntime) GetRuntimeSpec() api.KogitoRuntimeSpecInterface

GetRuntimeSpec ...

func (*KogitoRuntime) GetRuntimeStatus

func (k *KogitoRuntime) GetRuntimeStatus() api.KogitoRuntimeStatusInterface

GetRuntimeStatus ...

func (*KogitoRuntime) GetSpec

func (k *KogitoRuntime) GetSpec() api.KogitoServiceSpecInterface

GetSpec ...

func (*KogitoRuntime) GetStatus

func (k *KogitoRuntime) GetStatus() api.KogitoServiceStatusInterface

GetStatus ...

type KogitoRuntimeList

type KogitoRuntimeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KogitoRuntime `json:"items"`
}

KogitoRuntimeList contains a list of KogitoRuntime.

func (*KogitoRuntimeList) DeepCopy

func (in *KogitoRuntimeList) DeepCopy() *KogitoRuntimeList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoRuntimeList.

func (*KogitoRuntimeList) DeepCopyInto

func (in *KogitoRuntimeList) DeepCopyInto(out *KogitoRuntimeList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoRuntimeList) DeepCopyObject

func (in *KogitoRuntimeList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*KogitoRuntimeList) GetItems

func (k *KogitoRuntimeList) GetItems() []api.KogitoRuntimeInterface

GetItems ...

type KogitoRuntimeSpec

type KogitoRuntimeSpec struct {
	KogitoServiceSpec `json:",inline"`

	// Annotates the pods managed by the operator with the required metadata for Istio to setup its sidecars, enabling the mesh. Defaults to false.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Enable Istio"
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
	EnableIstio bool `json:"enableIstio,omitempty"`

	// The name of the runtime used, either Quarkus or SpringBoot.
	//
	// Default value: quarkus
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Runtime"
	// +kubebuilder:validation:Enum=quarkus;springboot
	Runtime api.RuntimeType `json:"runtime,omitempty"`
}

KogitoRuntimeSpec defines the desired state of KogitoRuntime.

func (*KogitoRuntimeSpec) DeepCopy

func (in *KogitoRuntimeSpec) DeepCopy() *KogitoRuntimeSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoRuntimeSpec.

func (*KogitoRuntimeSpec) DeepCopyInto

func (in *KogitoRuntimeSpec) DeepCopyInto(out *KogitoRuntimeSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoRuntimeSpec) GetRuntime

func (k *KogitoRuntimeSpec) GetRuntime() api.RuntimeType

GetRuntime ...

func (*KogitoRuntimeSpec) IsEnableIstio

func (k *KogitoRuntimeSpec) IsEnableIstio() bool

IsEnableIstio ...

func (*KogitoRuntimeSpec) SetEnableIstio

func (k *KogitoRuntimeSpec) SetEnableIstio(enableIstio bool)

SetEnableIstio ...

type KogitoRuntimeStatus

type KogitoRuntimeStatus struct {
	KogitoServiceStatus `json:",inline"`
}

KogitoRuntimeStatus defines the observed state of KogitoRuntime.

func (*KogitoRuntimeStatus) DeepCopy

func (in *KogitoRuntimeStatus) DeepCopy() *KogitoRuntimeStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoRuntimeStatus.

func (*KogitoRuntimeStatus) DeepCopyInto

func (in *KogitoRuntimeStatus) DeepCopyInto(out *KogitoRuntimeStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KogitoServiceSpec

type KogitoServiceSpec struct {

	// Number of replicas that the service will have deployed in the cluster.
	//
	// Default value: 1.
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Replicas"
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:podCount"
	// +kubebuilder:validation:Minimum=0
	Replicas *int32 `json:"replicas,omitempty"`

	// +optional
	// +listType=atomic
	// Environment variables to be added to the runtime container. Keys must be a C_IDENTIFIER.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Env []corev1.EnvVar `json:"env,omitempty"`

	// +optional
	// Image definition for the service. Example: "quay.io/kiegroup/kogito-service:latest".
	//
	// On OpenShift an ImageStream will be created in the current namespace pointing to the given image.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	Image string `json:"image,omitempty"`

	// +optional
	// A flag indicating that image streams created by Kogito Operator should be configured to allow pulling from insecure registries.
	// Usable just on OpenShift.
	//
	// Defaults to 'false'.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Insecure Image Registry"
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
	InsecureImageRegistry bool `json:"insecureImageRegistry,omitempty"`

	// Defined compute resource requirements for the deployed service.
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:resourceRequirements"
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`

	// Additional labels to be added to the Deployment and Pods managed by the operator.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Additional Deployment Labels"
	DeploymentLabels map[string]string `json:"deploymentLabels,omitempty"`

	// Additional labels to be added to the Service managed by the operator.
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Additional Service Labels"
	ServiceLabels map[string]string `json:"serviceLabels,omitempty"`

	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="ConfigMap Properties"
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:io.kubernetes:ConfigMap"
	// Custom ConfigMap with application.properties file to be mounted for the Kogito service.
	//
	// The ConfigMap must be created in the same namespace.
	//
	// Use this property if you need custom properties to be mounted before the application deployment.
	//
	// If left empty, one will be created for you. Later it can be updated to add any custom properties to apply to the service.
	PropertiesConfigMap string `json:"propertiesConfigMap,omitempty"`

	// Infra provides list of dependent KogitoInfra objects.
	// +optional
	Infra []string `json:"infra,omitempty"`

	// Create Service monitor instance to connect with Monitoring service
	// +optional
	Monitoring Monitoring `json:"monitoring,omitempty"`

	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Configs"
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	// Application properties that will be set to the service. For example 'MY_VAR: my_value'.
	Config map[string]string `json:"config,omitempty"`

	// Configure liveness, readiness and startup probes for containers
	// +optional
	Probes KogitoProbe `json:"probes,omitempty"`

	// Custom JKS TrustStore that will be used by this service to make calls to TLS endpoints.
	//
	// It's expected that the secret has two keys: `keyStorePassword` containing the password for the KeyStore
	// and `cacerts` containing the binary data of the given KeyStore.
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:io.kubernetes:Secret"
	TrustStoreSecret string `json:"trustStoreSecret,omitempty"`

	// A flag indicating that routes are disabled. Usable just on OpenShift.
	//
	// If not provided, defaults to 'false'.
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="DisableRoute"
	// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
	DisableRoute bool `json:"disableRoute,omitempty"`
}

KogitoServiceSpec is the basic structure for the Kogito Service specification.

func (*KogitoServiceSpec) AddDeploymentLabel

func (k *KogitoServiceSpec) AddDeploymentLabel(name, value string)

AddDeploymentLabel adds new deployment label. Works also on uninitialized DeploymentLabels field.

func (*KogitoServiceSpec) AddEnvironmentVariable

func (k *KogitoServiceSpec) AddEnvironmentVariable(name, value string)

AddEnvironmentVariable adds new environment variable to service environment variables.

func (*KogitoServiceSpec) AddEnvironmentVariableFromSecret

func (k *KogitoServiceSpec) AddEnvironmentVariableFromSecret(variableName, secretName, secretKey string)

AddEnvironmentVariableFromSecret adds a new environment variable from the secret under the key.

func (*KogitoServiceSpec) AddInfra

func (k *KogitoServiceSpec) AddInfra(name string)

AddInfra ...

func (*KogitoServiceSpec) AddResourceLimit

func (k *KogitoServiceSpec) AddResourceLimit(name, value string)

AddResourceLimit adds new resource limit. Works also on uninitialized Limits field.

func (*KogitoServiceSpec) AddResourceRequest

func (k *KogitoServiceSpec) AddResourceRequest(name, value string)

AddResourceRequest adds new resource request. Works also on uninitialized Requests field.

func (*KogitoServiceSpec) AddServiceLabel

func (k *KogitoServiceSpec) AddServiceLabel(name, value string)

AddServiceLabel adds new service label. Works also on uninitialized ServiceLabels field.

func (*KogitoServiceSpec) DeepCopy

func (in *KogitoServiceSpec) DeepCopy() *KogitoServiceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoServiceSpec.

func (*KogitoServiceSpec) DeepCopyInto

func (in *KogitoServiceSpec) DeepCopyInto(out *KogitoServiceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoServiceSpec) GetConfig

func (k *KogitoServiceSpec) GetConfig() map[string]string

GetConfig ...

func (*KogitoServiceSpec) GetDeploymentLabels

func (k *KogitoServiceSpec) GetDeploymentLabels() map[string]string

GetDeploymentLabels ...

func (*KogitoServiceSpec) GetEnvs

func (k *KogitoServiceSpec) GetEnvs() []corev1.EnvVar

GetEnvs ...

func (*KogitoServiceSpec) GetImage

func (k *KogitoServiceSpec) GetImage() string

GetImage ...

func (*KogitoServiceSpec) GetInfra

func (k *KogitoServiceSpec) GetInfra() []string

GetInfra ...

func (*KogitoServiceSpec) GetMonitoring

func (k *KogitoServiceSpec) GetMonitoring() api.MonitoringInterface

GetMonitoring ...

func (*KogitoServiceSpec) GetProbes

GetProbes ...

func (*KogitoServiceSpec) GetPropertiesConfigMap

func (k *KogitoServiceSpec) GetPropertiesConfigMap() string

GetPropertiesConfigMap ...

func (*KogitoServiceSpec) GetReplicas

func (k *KogitoServiceSpec) GetReplicas() *int32

GetReplicas ...

func (*KogitoServiceSpec) GetResources

func (k *KogitoServiceSpec) GetResources() corev1.ResourceRequirements

GetResources ...

func (*KogitoServiceSpec) GetServiceLabels

func (k *KogitoServiceSpec) GetServiceLabels() map[string]string

GetServiceLabels ...

func (*KogitoServiceSpec) GetTrustStoreSecret

func (k *KogitoServiceSpec) GetTrustStoreSecret() string

GetTrustStoreSecret ...

func (*KogitoServiceSpec) IsInsecureImageRegistry

func (k *KogitoServiceSpec) IsInsecureImageRegistry() bool

IsInsecureImageRegistry ...

func (*KogitoServiceSpec) IsRouteDisabled

func (k *KogitoServiceSpec) IsRouteDisabled() bool

IsRouteDisabled ...

func (*KogitoServiceSpec) SetDeploymentLabels

func (k *KogitoServiceSpec) SetDeploymentLabels(labels map[string]string)

SetDeploymentLabels ...

func (*KogitoServiceSpec) SetDisableRoute

func (k *KogitoServiceSpec) SetDisableRoute(disableRoute bool)

SetDisableRoute ...

func (*KogitoServiceSpec) SetEnvs

func (k *KogitoServiceSpec) SetEnvs(envs []corev1.EnvVar)

SetEnvs ...

func (*KogitoServiceSpec) SetImage

func (k *KogitoServiceSpec) SetImage(image string)

SetImage ...

func (*KogitoServiceSpec) SetMonitoring

func (k *KogitoServiceSpec) SetMonitoring(monitoring api.MonitoringInterface)

SetMonitoring ...

func (*KogitoServiceSpec) SetProbes

func (k *KogitoServiceSpec) SetProbes(probes api.KogitoProbeInterface)

SetProbes ...

func (*KogitoServiceSpec) SetReplicas

func (k *KogitoServiceSpec) SetReplicas(replicas int32)

SetReplicas ...

func (*KogitoServiceSpec) SetResources

func (k *KogitoServiceSpec) SetResources(resources corev1.ResourceRequirements)

SetResources ...

func (*KogitoServiceSpec) SetServiceLabels

func (k *KogitoServiceSpec) SetServiceLabels(labels map[string]string)

SetServiceLabels ...

func (*KogitoServiceSpec) SetTrustStoreSecret

func (k *KogitoServiceSpec) SetTrustStoreSecret(trustStoreSecret string)

SetTrustStoreSecret ...

type KogitoServiceStatus

type KogitoServiceStatus struct {
	// +listType=atomic
	// History of conditions for the resource
	// +operator-sdk:csv:customresourcedefinitions:type=status
	// +operator-sdk:csv:customresourcedefinitions:type=status,xDescriptors="urn:alm:descriptor:io.kubernetes.conditions"
	Conditions *[]metav1.Condition `json:"conditions"`
	// General conditions for the Kogito Service deployment.
	// +operator-sdk:csv:customresourcedefinitions:type=status
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Deployment Conditions"
	// +operator-sdk:csv:customresourcedefinitions:type=status,xDescriptors="urn:alm:descriptor:io.kubernetes.conditions"
	DeploymentConditions []appsv1.DeploymentCondition `json:"deploymentConditions,omitempty"`
	// General conditions for the Kogito Service route.
	// +operator-sdk:csv:customresourcedefinitions:type=status
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Route Conditions"
	// +operator-sdk:csv:customresourcedefinitions:type=status,xDescriptors="urn:alm:descriptor:io.kubernetes.conditions"
	RouteConditions *[]metav1.Condition `json:"routeConditions,omitempty"`
	// Image is the resolved image for this service.
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Image string `json:"image,omitempty"`
	// URI is where the service is exposed.
	// +operator-sdk:csv:customresourcedefinitions:type=status
	// +operator-sdk:csv:customresourcedefinitions:type=status,xDescriptors="urn:alm:descriptor:org.w3:link"
	ExternalURI string `json:"externalURI,omitempty"`
	// Describes the CloudEvents that this instance can consume or produce
	// +operator-sdk:csv:customresourcedefinitions:type=status
	CloudEvents KogitoCloudEventsStatus `json:"cloudEvents,omitempty"`
}

KogitoServiceStatus is the basic structure for any Kogito Service status.

func (*KogitoServiceStatus) DeepCopy

func (in *KogitoServiceStatus) DeepCopy() *KogitoServiceStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoServiceStatus.

func (*KogitoServiceStatus) DeepCopyInto

func (in *KogitoServiceStatus) DeepCopyInto(out *KogitoServiceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoServiceStatus) GetCloudEvents

GetCloudEvents ...

func (*KogitoServiceStatus) GetConditions

func (k *KogitoServiceStatus) GetConditions() *[]metav1.Condition

GetConditions ...

func (*KogitoServiceStatus) GetDeploymentConditions

func (k *KogitoServiceStatus) GetDeploymentConditions() []appsv1.DeploymentCondition

GetDeploymentConditions gets the deployment conditions for the service.

func (*KogitoServiceStatus) GetExternalURI

func (k *KogitoServiceStatus) GetExternalURI() string

GetExternalURI ...

func (*KogitoServiceStatus) GetImage

func (k *KogitoServiceStatus) GetImage() string

GetImage ...

func (*KogitoServiceStatus) GetRouteConditions

func (k *KogitoServiceStatus) GetRouteConditions() *[]metav1.Condition

GetRouteConditions gets the deployment conditions for the service.

func (*KogitoServiceStatus) SetCloudEvents

func (k *KogitoServiceStatus) SetCloudEvents(cloudEvents api.KogitoCloudEventsStatusInterface)

SetCloudEvents ...

func (*KogitoServiceStatus) SetConditions

func (k *KogitoServiceStatus) SetConditions(conditions *[]metav1.Condition)

SetConditions ...

func (*KogitoServiceStatus) SetDeploymentConditions

func (k *KogitoServiceStatus) SetDeploymentConditions(deploymentConditions []appsv1.DeploymentCondition)

SetDeploymentConditions sets the deployment conditions for the service.

func (*KogitoServiceStatus) SetExternalURI

func (k *KogitoServiceStatus) SetExternalURI(uri string)

SetExternalURI ...

func (*KogitoServiceStatus) SetImage

func (k *KogitoServiceStatus) SetImage(image string)

SetImage ...

func (*KogitoServiceStatus) SetRouteConditions

func (k *KogitoServiceStatus) SetRouteConditions(conditions *[]metav1.Condition)

SetRouteConditions sets the deployment conditions for the service.

type KogitoSupportingService

type KogitoSupportingService struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KogitoSupportingServiceSpec   `json:"spec,omitempty"`
	Status KogitoSupportingServiceStatus `json:"status,omitempty"`
}

KogitoSupportingService deploys the Supporting service in the given namespace.

func (*KogitoSupportingService) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoSupportingService.

func (*KogitoSupportingService) DeepCopyInto

func (in *KogitoSupportingService) DeepCopyInto(out *KogitoSupportingService)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoSupportingService) DeepCopyObject

func (in *KogitoSupportingService) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*KogitoSupportingService) GetSpec

func (k *KogitoSupportingService) GetSpec() api.KogitoServiceSpecInterface

GetSpec ...

func (*KogitoSupportingService) GetStatus

func (k *KogitoSupportingService) GetStatus() api.KogitoServiceStatusInterface

GetStatus ...

func (*KogitoSupportingService) GetSupportingServiceSpec

func (k *KogitoSupportingService) GetSupportingServiceSpec() api.KogitoSupportingServiceSpecInterface

GetSupportingServiceSpec ...

func (*KogitoSupportingService) GetSupportingServiceStatus

func (k *KogitoSupportingService) GetSupportingServiceStatus() api.KogitoSupportingServiceStatusInterface

GetSupportingServiceStatus ...

type KogitoSupportingServiceList

type KogitoSupportingServiceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KogitoSupportingService `json:"items"`
}

KogitoSupportingServiceList contains a list of KogitoSupportingService.

func (*KogitoSupportingServiceList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoSupportingServiceList.

func (*KogitoSupportingServiceList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoSupportingServiceList) DeepCopyObject

func (in *KogitoSupportingServiceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*KogitoSupportingServiceList) GetItems

func (k *KogitoSupportingServiceList) GetItems() []api.KogitoSupportingServiceInterface

GetItems ...

type KogitoSupportingServiceSpec

type KogitoSupportingServiceSpec struct {
	KogitoServiceSpec `json:",inline"`

	// Defines the type for the supporting service, eg: DataIndex, JobsService
	// Default value: JobsService
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Service Type"
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=DataIndex;Explainability;JobsService;MgmtConsole;TaskConsole;TrustyAI;TrustyUI
	ServiceType api.ServiceType `json:"serviceType"`
}

KogitoSupportingServiceSpec defines the desired state of KogitoSupportingService. +k8s:openapi-gen=true

func (*KogitoSupportingServiceSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoSupportingServiceSpec.

func (*KogitoSupportingServiceSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KogitoSupportingServiceSpec) GetRuntime

func (k *KogitoSupportingServiceSpec) GetRuntime() api.RuntimeType

GetRuntime ...

func (*KogitoSupportingServiceSpec) GetServiceType

func (k *KogitoSupportingServiceSpec) GetServiceType() api.ServiceType

GetServiceType ...

func (*KogitoSupportingServiceSpec) SetServiceType

func (k *KogitoSupportingServiceSpec) SetServiceType(serviceType api.ServiceType)

SetServiceType ...

type KogitoSupportingServiceStatus

type KogitoSupportingServiceStatus struct {
	KogitoServiceStatus `json:",inline"`
}

KogitoSupportingServiceStatus defines the observed state of KogitoSupportingService. +k8s:openapi-gen=true

func (*KogitoSupportingServiceStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KogitoSupportingServiceStatus.

func (*KogitoSupportingServiceStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Monitoring

type Monitoring struct {
	// HTTP scheme to use for scraping.
	// +optional
	Scheme string `json:"scheme,omitempty"`

	// HTTP path to scrape for metrics.
	// +optional
	Path string `json:"path,omitempty"`
}

Monitoring properties to connect with Monitoring service

func (*Monitoring) DeepCopy

func (in *Monitoring) DeepCopy() *Monitoring

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Monitoring.

func (*Monitoring) DeepCopyInto

func (in *Monitoring) DeepCopyInto(out *Monitoring)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Monitoring) GetPath

func (m *Monitoring) GetPath() string

GetPath ...

func (*Monitoring) GetScheme

func (m *Monitoring) GetScheme() string

GetScheme ...

func (*Monitoring) SetPath

func (m *Monitoring) SetPath(path string)

SetPath ...

func (*Monitoring) SetScheme

func (m *Monitoring) SetScheme(scheme string)

SetScheme ...

type VolumeReference

type VolumeReference struct {
	// This must match the Name of a ConfigMap.
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// Path within the container at which the volume should be mounted.  Must
	// not contain ':'. Default mount path is /home/kogito/config
	// +optional
	MountPath string `json:"mountPath,omitempty" protobuf:"bytes,3,opt,name=mountPath"`
	// Permission on the file mounted as volume on deployment.
	// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
	// YAML accepts both octal and decimal values, JSON requires decimal values
	// for mode bits. Defaults to 0644.
	// +optional
	FileMode *int32 `json:"fileMode,omitempty" protobuf:"bytes,4,opt,name=fileMode"`
	// Specify whether the Secret or its keys must be defined
	// +optional
	Optional *bool `json:"optional,omitempty" protobuf:"varint,5,opt,name=optional"`
}

VolumeReference represents the source of a volume to mount.

func (*VolumeReference) DeepCopy

func (in *VolumeReference) DeepCopy() *VolumeReference

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeReference.

func (*VolumeReference) DeepCopyInto

func (in *VolumeReference) DeepCopyInto(out *VolumeReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VolumeReference) GetFileMode

func (c *VolumeReference) GetFileMode() *int32

GetFileMode ...

func (*VolumeReference) GetMountPath

func (c *VolumeReference) GetMountPath() string

GetMountPath ...

func (*VolumeReference) GetName

func (c *VolumeReference) GetName() string

GetName ...

func (*VolumeReference) IsOptional

func (c *VolumeReference) IsOptional() *bool

IsOptional ...

func (*VolumeReference) SetFileMode

func (c *VolumeReference) SetFileMode(fileMode *int32)

SetFileMode ...

func (*VolumeReference) SetMountPath

func (c *VolumeReference) SetMountPath(mountPath string)

SetMountPath ...

func (*VolumeReference) SetName

func (c *VolumeReference) SetName(name string)

SetName ...

func (*VolumeReference) SetOptional

func (c *VolumeReference) SetOptional(optional *bool)

SetOptional ....

type WebHookSecret

type WebHookSecret struct {
	// WebHook type, either GitHub or Generic.
	// +kubebuilder:validation:Enum=GitHub;Generic
	Type api.WebHookType `json:"type,omitempty"`
	// Secret value for webHook
	Secret string `json:"secret,omitempty"`
}

WebHookSecret Secret to use for a given webHook. +k8s:openapi-gen=true

func (*WebHookSecret) DeepCopy

func (in *WebHookSecret) DeepCopy() *WebHookSecret

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebHookSecret.

func (*WebHookSecret) DeepCopyInto

func (in *WebHookSecret) DeepCopyInto(out *WebHookSecret)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (WebHookSecret) GetSecret

func (w WebHookSecret) GetSecret() string

GetSecret ...

func (WebHookSecret) GetType

func (w WebHookSecret) GetType() api.WebHookType

GetType ...

Jump to

Keyboard shortcuts

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