v1alpha1

package
v0.0.0-...-7be4c45 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the hacbs jvmbuildservice v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=jvmbuildservice.io

Package v1alpha1 contains API Schema definitions for the hacbs jvmbuildservice v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=jvmbuildservice.io

Index

Constants

View Source
const (
	// ArtifactBuildStateNew A new resource that has not been acted on by the operator
	ArtifactBuildStateNew = "ArtifactBuildNew"
	// ArtifactBuildStateDiscovering The discovery pipeline is running to try and figure out how to build this artifact
	ArtifactBuildStateDiscovering = "ArtifactBuildDiscovering"
	// ArtifactBuildStateMissing The discovery pipeline failed to find a way to build this
	ArtifactBuildStateMissing = "ArtifactBuildMissing"
	// ArtifactBuildStateBuilding The build is running
	ArtifactBuildStateBuilding = "ArtifactBuildBuilding"
	// ArtifactBuildStateFailed The build failed
	ArtifactBuildStateFailed = "ArtifactBuildFailed"
	// ArtifactBuildStateComplete The build completed successfully, the resource can be removed
	ArtifactBuildStateComplete = "ArtifactBuildComplete"
)
View Source
const (
	DependencyBuildStateNew          = "DependencyBuildStateNew"
	DependencyBuildStateAnalyzeBuild = "DependencyBuildStateAnalyzeBuild"
	DependencyBuildStateSubmitBuild  = "DependencyBuildStateSubmitBuild"
	DependencyBuildStateBuilding     = "DependencyBuildStateBuilding"
	DependencyBuildStateComplete     = "DependencyBuildStateComplete"
	DependencyBuildStateDeploying    = "DependencyBuildStateDeploying"
	DependencyBuildStateFailed       = "DependencyBuildStateFailed"
	DependencyBuildStateContaminated = "DependencyBuildStateContaminated"
)
View Source
const (
	JBSConfigName                           = "jvm-build-config"
	DefaultImageSecretName                  = "jvm-build-image-secrets"          //#nosec
	GitSecretName                           = "jvm-build-git-secrets"            //#nosec
	TlsSecretName                           = "jvm-build-tls-secrets"            //#nosec
	TlsConfigMapName                        = "jvm-build-tls-ca"                 //#nosec
	ImageSecretTokenKey                     = ".dockerconfigjson"                //#nosec
	GitSecretTokenKey                       = ".git-credentials"                 //#nosec
	MavenSecretKey                          = "mavenpassword"                    //#nosec
	MavenSecretName                         = "jvm-build-maven-repo-secrets"     //#nosec
	GitRepoSecretKey                        = "gitdeploytoken"                   //#nosec
	GitRepoSecretName                       = "jvm-build-git-repo-secrets"       //#nosec
	AWSAccessID                             = "awsaccesskey"                     //#nosec
	AWSSecretKey                            = "awssecretkey"                     //#nosec
	AWSProfile                              = "awsprofile"                       //#nosec
	AWSRegion                               = "awsregion"                        //#nosec
	AWSSecretName                           = "jvm-build-maven-repo-aws-secrets" //#nosec
	CacheDeploymentName                     = "jvm-build-workspace-artifact-cache"
	ConfigArtifactCacheRequestMemoryDefault = "512Mi"
	ConfigArtifactCacheRequestCPUDefault    = "1"
	ConfigArtifactCacheLimitMemoryDefault   = "512Mi"
	ConfigArtifactCacheLimitCPUDefault      = "4"
	ConfigArtifactCacheIOThreadsDefault     = "4"
	ConfigArtifactCacheWorkerThreadsDefault = "50"
	ConfigArtifactCacheStorageDefault       = "10Gi"

	HermeticBuildTypeNone     HermeticBuildType = "None"
	HermeticBuildTypeRequired HermeticBuildType = "Required"
)
View Source
const (
	DefaultRecipeDatabase = "https://github.com/redhat-appstudio/jvm-build-data"

	DefaultTimeout = 6
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme adds Build types to the scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "jvmbuildservice.io", Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type AdditionalDownload

type AdditionalDownload struct {
	Uri         string `json:"uri,omitempty"`
	Sha256      string `json:"sha256,omitempty"`
	FileName    string `json:"fileName,omitempty"`
	BinaryPath  string `json:"binaryPath,omitempty"`
	PackageName string `json:"packageName,omitempty"`
	FileType    string `json:"type"`
}

func (*AdditionalDownload) DeepCopy

func (in *AdditionalDownload) DeepCopy() *AdditionalDownload

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

func (*AdditionalDownload) DeepCopyInto

func (in *AdditionalDownload) DeepCopyInto(out *AdditionalDownload)

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

type ArtifactBuild

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

	Spec   ArtifactBuildSpec   `json:"spec"`
	Status ArtifactBuildStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status +kubebuilder:resource:path=artifactbuilds,scope=Namespaced +kubebuilder:printcolumn:name="GAV",type=string,JSONPath=`.spec.gav` +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state` ArtifactBuild TODO provide godoc description

func (*ArtifactBuild) DeepCopy

func (in *ArtifactBuild) DeepCopy() *ArtifactBuild

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

func (*ArtifactBuild) DeepCopyInto

func (in *ArtifactBuild) DeepCopyInto(out *ArtifactBuild)

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

func (*ArtifactBuild) DeepCopyObject

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

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

type ArtifactBuildList

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

ArtifactBuildList contains a list of ArtifactBuild

func (*ArtifactBuildList) DeepCopy

func (in *ArtifactBuildList) DeepCopy() *ArtifactBuildList

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

func (*ArtifactBuildList) DeepCopyInto

func (in *ArtifactBuildList) DeepCopyInto(out *ArtifactBuildList)

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

func (*ArtifactBuildList) DeepCopyObject

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

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

type ArtifactBuildSpec

type ArtifactBuildSpec struct {
	// GAV is the groupID:artifactID:version tuple seen in maven pom.xml files
	GAV string `json:"gav,omitempty"`
}

func (*ArtifactBuildSpec) DeepCopy

func (in *ArtifactBuildSpec) DeepCopy() *ArtifactBuildSpec

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

func (*ArtifactBuildSpec) DeepCopyInto

func (in *ArtifactBuildSpec) DeepCopyInto(out *ArtifactBuildSpec)

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

type ArtifactBuildStatus

type ArtifactBuildStatus struct {
	State   string  `json:"state,omitempty"`
	Message string  `json:"message,omitempty"`
	SCMInfo SCMInfo `json:"scm,omitempty"`
}

func (*ArtifactBuildStatus) DeepCopy

func (in *ArtifactBuildStatus) DeepCopy() *ArtifactBuildStatus

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

func (*ArtifactBuildStatus) DeepCopyInto

func (in *ArtifactBuildStatus) DeepCopyInto(out *ArtifactBuildStatus)

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

type BuildAttempt

type BuildAttempt struct {
	BuildId string            `json:"buildId,omitempty"`
	Recipe  *BuildRecipe      `json:"buildRecipe,omitempty"`
	Build   *BuildPipelineRun `json:"build,omitempty"`
}

func (*BuildAttempt) DeepCopy

func (in *BuildAttempt) DeepCopy() *BuildAttempt

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

func (*BuildAttempt) DeepCopyInto

func (in *BuildAttempt) DeepCopyInto(out *BuildAttempt)

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

type BuildPipelineRun

type BuildPipelineRun struct {
	PipelineName         string                   `json:"pipelineName"`
	Complete             bool                     `json:"complete"`
	Succeeded            bool                     `json:"succeeded,omitempty"`
	DiagnosticDockerFile string                   `json:"diagnosticDockerFile,omitempty"`
	Results              *BuildPipelineRunResults `json:"results,omitempty"`
	StartTime            int64                    `json:"startTime,omitempty"`
	FinishTime           int64                    `json:"finishTime,omitempty"`
}

func (*BuildPipelineRun) DeepCopy

func (in *BuildPipelineRun) DeepCopy() *BuildPipelineRun

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

func (*BuildPipelineRun) DeepCopyInto

func (in *BuildPipelineRun) DeepCopyInto(out *BuildPipelineRun)

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

type BuildPipelineRunResults

type BuildPipelineRunResults struct {
	//the image resulting from the run
	Image       string `json:"image,omitempty"`
	ImageDigest string `json:"imageDigest"`
	//If the resulting image was verified
	Verified            bool   `json:"verified,omitempty"`
	VerificationResults string `json:"verificationFailures,omitempty"`
	// The produced GAVs
	Gavs []string `json:"gavs,omitempty"`
	// The hermetic build image produced by the build
	HermeticBuildImage string `json:"hermeticBuildImage,omitempty"`
	// The git archive source information
	GitArchive GitArchive `json:"gitArchive,omitempty"`

	// The Tekton results
	PipelineResults *PipelineResults `json:"pipelineResults,omitempty"`
	Contaminants    []*Contaminant   `json:"contaminates,omitempty"`
	Contaminated    bool             `json:"contaminated,omitempty"`
}

func (*BuildPipelineRunResults) DeepCopy

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

func (*BuildPipelineRunResults) DeepCopyInto

func (in *BuildPipelineRunResults) DeepCopyInto(out *BuildPipelineRunResults)

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

type BuildRecipe

type BuildRecipe struct {
	//Deprecated
	Pipeline            string               `json:"pipeline,omitempty"`
	Tool                string               `json:"tool,omitempty"`
	Image               string               `json:"image,omitempty"`
	ContextPath         string               `json:"contextPath,omitempty"`
	CommandLine         []string             `json:"commandLine,omitempty"`
	EnforceVersion      string               `json:"enforceVersion,omitempty"`
	ToolVersion         string               `json:"toolVersion,omitempty"`
	ToolVersions        map[string]string    `json:"toolVersions,omitempty"`
	JavaVersion         string               `json:"javaVersion,omitempty"`
	PreBuildScript      string               `json:"preBuildScript,omitempty"`
	PostBuildScript     string               `json:"postBuildScript,omitempty"`
	AdditionalDownloads []AdditionalDownload `json:"additionalDownloads,omitempty"`
	DisableSubmodules   bool                 `json:"disableSubmodules,omitempty"`
	AdditionalMemory    int                  `json:"additionalMemory,omitempty"`
	Repositories        []string             `json:"repositories,omitempty"`
	AllowedDifferences  []string             `json:"allowedDifferences,omitempty"`
	DisabledPlugins     []string             `json:"disabledPlugins,omitempty"`
}

func (*BuildRecipe) DeepCopy

func (in *BuildRecipe) DeepCopy() *BuildRecipe

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

func (*BuildRecipe) DeepCopyInto

func (in *BuildRecipe) DeepCopyInto(out *BuildRecipe)

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

type BuildSettings

type BuildSettings struct {
	// The requested memory for the build and deploy steps of a pipeline
	BuildRequestMemory string `json:"buildRequestMemory,omitempty"`
	// The requested CPU for the build and deploy steps of a pipeline
	BuildRequestCPU string `json:"buildRequestCPU,omitempty"`
	// The CPU limit for the build and deploy steps of a pipeline
	BuildLimitCPU string `json:"buildLimitCPU,omitempty"`
	// The requested memory for all other steps of a pipeline
	TaskRequestMemory string `json:"taskRequestMemory,omitempty"`
	// The requested CPU for all other steps of a pipeline
	TaskRequestCPU string `json:"taskRequestCPU,omitempty"`
	// The memory limit for all other steps of a pipeline
	TaskLimitMemory string `json:"taskLimitMemory,omitempty"`
	// The CPU limit for all other steps of a pipeline
	TaskLimitCPU string `json:"taskLimitCPU,omitempty"`
}

func (*BuildSettings) DeepCopy

func (in *BuildSettings) DeepCopy() *BuildSettings

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

func (*BuildSettings) DeepCopyInto

func (in *BuildSettings) DeepCopyInto(out *BuildSettings)

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

type BuilderImageInfo

type BuilderImageInfo struct {
	Image    string `json:"image,omitempty"`
	Tag      string `json:"tag,omitempty"`
	Priority int    `json:"priority,omitempty"`
}

func (*BuilderImageInfo) DeepCopy

func (in *BuilderImageInfo) DeepCopy() *BuilderImageInfo

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

func (*BuilderImageInfo) DeepCopyInto

func (in *BuilderImageInfo) DeepCopyInto(out *BuilderImageInfo)

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

type CacheSettings

type CacheSettings struct {
	RequestMemory string `json:"requestMemory,omitempty"`
	RequestCPU    string `json:"requestCPU,omitempty"`
	LimitMemory   string `json:"limitMemory,omitempty"`
	LimitCPU      string `json:"limitCPU,omitempty"`
	IOThreads     string `json:"ioThreads,omitempty"`
	WorkerThreads string `json:"workerThreads,omitempty"`
	Storage       string `json:"storage,omitempty"`
	DisableTLS    bool   `json:"disableTLS,omitempty"`
}

func (*CacheSettings) DeepCopy

func (in *CacheSettings) DeepCopy() *CacheSettings

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

func (*CacheSettings) DeepCopyInto

func (in *CacheSettings) DeepCopyInto(out *CacheSettings)

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

type Contaminant

type Contaminant struct {
	GAV                   string   `json:"gav,omitempty"`
	ContaminatedArtifacts []string `json:"contaminatedArtifacts,omitempty"`
	BuildId               string   `json:"buildId,omitempty"`
	Source                string   `json:"source,omitempty"`
	Allowed               bool     `json:"allowed,omitempty"`
	RebuildAvailable      bool     `json:"rebuildAvailable,omitempty"`
}

func (*Contaminant) DeepCopy

func (in *Contaminant) DeepCopy() *Contaminant

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

func (*Contaminant) DeepCopyInto

func (in *Contaminant) DeepCopyInto(out *Contaminant)

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

type DependencyBuild

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

	Spec   DependencyBuildSpec   `json:"spec"`
	Status DependencyBuildStatus `json:"status,omitempty"`
}

DependencyBuild TODO provide godoc description

func (*DependencyBuild) DeepCopy

func (in *DependencyBuild) DeepCopy() *DependencyBuild

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

func (*DependencyBuild) DeepCopyInto

func (in *DependencyBuild) DeepCopyInto(out *DependencyBuild)

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

func (*DependencyBuild) DeepCopyObject

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

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

type DependencyBuildList

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

DependencyBuildList contains a list of DependencyBuild

func (*DependencyBuildList) DeepCopy

func (in *DependencyBuildList) DeepCopy() *DependencyBuildList

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

func (*DependencyBuildList) DeepCopyInto

func (in *DependencyBuildList) DeepCopyInto(out *DependencyBuildList)

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

func (*DependencyBuildList) DeepCopyObject

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

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

type DependencyBuildSpec

type DependencyBuildSpec struct {
	ScmInfo SCMInfo `json:"scm,omitempty"`
	Version string  `json:"version,omitempty"`
}

func (*DependencyBuildSpec) DeepCopy

func (in *DependencyBuildSpec) DeepCopy() *DependencyBuildSpec

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

func (*DependencyBuildSpec) DeepCopyInto

func (in *DependencyBuildSpec) DeepCopyInto(out *DependencyBuildSpec)

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

type DependencyBuildState

type DependencyBuildState string

type DependencyBuildStatus

type DependencyBuildStatus struct {
	// Conditions for capturing generic status
	// NOTE: inspecting the fabric8 Status class, it looked analogous to k8s Condition,
	// and then I took the liberty of making it an array, given best practices in the k8s/ocp ecosystems
	Conditions   []metav1.Condition `json:"conditions,omitempty"`
	State        string             `json:"state,omitempty"`
	Message      string             `json:"message,omitempty"`
	Contaminants []*Contaminant     `json:"contaminates,omitempty"`
	// PotentialBuildRecipes additional recipes to try if the current recipe fails
	PotentialBuildRecipes      []*BuildRecipe   `json:"potentialBuildRecipes,omitempty"`
	PotentialBuildRecipesIndex int              `json:"potentialBuildRecipesIndex,omitempty"`
	CommitTime                 int64            `json:"commitTime,omitempty"`
	DeployedArtifacts          []string         `json:"deployedArtifacts,omitempty"`
	FailedVerification         bool             `json:"failedVerification,omitempty"`
	Hermetic                   bool             `json:"hermetic,omitempty"`
	PipelineRetries            int              `json:"pipelineRetries,omitempty"`
	BuildAttempts              []*BuildAttempt  `json:"buildAttempts,omitempty"`
	DiscoveryPipelineResults   *PipelineResults `json:"discoveryPipelineResults,omitempty"`
	DeployPipelineResults      *PipelineResults `json:"deployPipelineResults,omitempty"`
	PreBuildImages             []PreBuildImage  `json:"builderImages,omitempty"`
}

func (*DependencyBuildStatus) CurrentBuildAttempt

func (r *DependencyBuildStatus) CurrentBuildAttempt() *BuildAttempt

func (*DependencyBuildStatus) DeepCopy

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

func (*DependencyBuildStatus) DeepCopyInto

func (in *DependencyBuildStatus) DeepCopyInto(out *DependencyBuildStatus)

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

func (*DependencyBuildStatus) GetBuildPipelineRun

func (r *DependencyBuildStatus) GetBuildPipelineRun(pipeline string) *BuildAttempt

func (*DependencyBuildStatus) ProblemContaminates

func (r *DependencyBuildStatus) ProblemContaminates() []*Contaminant

type GitArchive

type GitArchive struct {
	URL string `json:"url,omitempty"`
	Tag string `json:"tag,omitempty"`
	SHA string `json:"sha,omitempty"`
}

func (*GitArchive) DeepCopy

func (in *GitArchive) DeepCopy() *GitArchive

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

func (*GitArchive) DeepCopyInto

func (in *GitArchive) DeepCopyInto(out *GitArchive)

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

type GitSourceArchive

type GitSourceArchive struct {
	Identity               string `json:"identity,omitempty"`
	URL                    string `json:"url,omitempty"`
	DisableSSLVerification bool   `json:"disableSSLVerification,omitempty"`
}

func (*GitSourceArchive) DeepCopy

func (in *GitSourceArchive) DeepCopy() *GitSourceArchive

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

func (*GitSourceArchive) DeepCopyInto

func (in *GitSourceArchive) DeepCopyInto(out *GitSourceArchive)

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

type HermeticBuildType

type HermeticBuildType string

type ImageRegistry

type ImageRegistry struct {
	Host       string `json:"host,omitempty"` // Defaults to quay.io in ImageRegistry()
	Port       string `json:"port,omitempty"`
	Owner      string `json:"owner,omitempty"`
	Repository string `json:"repository,omitempty"` // Defaults to artifact-deployments in ImageRegistry()
	Insecure   bool   `json:"insecure,omitempty"`
	PrependTag string `json:"prependTag,omitempty"`
	SecretName string `json:"secretName,omitempty"`
}

func (*ImageRegistry) DeepCopy

func (in *ImageRegistry) DeepCopy() *ImageRegistry

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

func (*ImageRegistry) DeepCopyInto

func (in *ImageRegistry) DeepCopyInto(out *ImageRegistry)

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

type ImageRegistrySpec

type ImageRegistrySpec struct {
	ImageRegistry `json:",inline,omitempty"`

	//if this is true and we are automatically creating registries then we will make it private
	Private *bool `json:"private,omitempty"`

	DontReuseExisting *bool `json:"dontReuseExisting,omitempty"`
}

func (*ImageRegistrySpec) DeepCopy

func (in *ImageRegistrySpec) DeepCopy() *ImageRegistrySpec

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

func (*ImageRegistrySpec) DeepCopyInto

func (in *ImageRegistrySpec) DeepCopyInto(out *ImageRegistrySpec)

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

type JBSConfig

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

	Spec   JBSConfigSpec   `json:"spec"`
	Status JBSConfigStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status +kubebuilder:resource:path=jbsconfigs,scope=Namespaced +kubebuilder:printcolumn:name="Message",type=string,JSONPath=`.status.message` JBSConfig TODO provide godoc description

func (*JBSConfig) DeepCopy

func (in *JBSConfig) DeepCopy() *JBSConfig

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

func (*JBSConfig) DeepCopyInto

func (in *JBSConfig) DeepCopyInto(out *JBSConfig)

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

func (*JBSConfig) DeepCopyObject

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

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

func (*JBSConfig) ImageRegistry

func (in *JBSConfig) ImageRegistry() ImageRegistry

type JBSConfigList

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

JBSConfigList contains a list of SystemConfig

func (*JBSConfigList) DeepCopy

func (in *JBSConfigList) DeepCopy() *JBSConfigList

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

func (*JBSConfigList) DeepCopyInto

func (in *JBSConfigList) DeepCopyInto(out *JBSConfigList)

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

func (*JBSConfigList) DeepCopyObject

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

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

type JBSConfigSpec

type JBSConfigSpec struct {
	EnableRebuilds bool `json:"enableRebuilds,omitempty"`

	// If this is true then the build will fail if artifact verification fails
	// otherwise deploy will happen as normal, but a field will be set on the DependencyBuild
	RequireArtifactVerification bool              `json:"requireArtifactVerification,omitempty"`
	HermeticBuilds              HermeticBuildType `json:"hermeticBuilds,omitempty"`

	AdditionalRecipes []string `json:"additionalRecipes,omitempty"`

	MavenBaseLocations map[string]string `json:"mavenBaseLocations,omitempty"`

	SharedRegistries   []ImageRegistry            `json:"sharedRegistries,omitempty"`
	Registry           ImageRegistrySpec          `json:"registry,omitempty"`
	MavenDeployment    MavenDeployment            `json:"mavenDeployment,omitempty"`
	GitSourceArchive   GitSourceArchive           `json:"gitSourceArchive,omitempty"`
	CacheSettings      CacheSettings              `json:"cacheSettings,omitempty"`
	BuildSettings      BuildSettings              `json:"buildSettings,omitempty"`
	RelocationPatterns []RelocationPatternElement `json:"relocationPatterns,omitempty"`
}

func (*JBSConfigSpec) DeepCopy

func (in *JBSConfigSpec) DeepCopy() *JBSConfigSpec

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

func (*JBSConfigSpec) DeepCopyInto

func (in *JBSConfigSpec) DeepCopyInto(out *JBSConfigSpec)

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

type JBSConfigStatus

type JBSConfigStatus struct {
	Message          string         `json:"message,omitempty"`
	ImageRegistry    *ImageRegistry `json:"imageRegistry,omitempty"`
	RebuildsPossible bool           `json:"rebuildsPossible,omitempty"`
}

func (*JBSConfigStatus) DeepCopy

func (in *JBSConfigStatus) DeepCopy() *JBSConfigStatus

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

func (*JBSConfigStatus) DeepCopyInto

func (in *JBSConfigStatus) DeepCopyInto(out *JBSConfigStatus)

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

type JavaDependency

type JavaDependency struct {
	GAV        string            `json:"gav,omitempty"`
	Source     string            `json:"source,omitempty"`
	Attributes map[string]string `json:"attributes,omitempty"`
}

func (*JavaDependency) DeepCopy

func (in *JavaDependency) DeepCopy() *JavaDependency

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

func (*JavaDependency) DeepCopyInto

func (in *JavaDependency) DeepCopyInto(out *JavaDependency)

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

type JvmImageDependenciesState

type JvmImageDependenciesState string
const (
	// JvmImageScanStateNew A new resource that has not been acted on by the operator
	JvmImageScanStateNew JvmImageDependenciesState = "JvmImageScanNew"
	// JvmImageScanStateDiscovering The discovery pipeline is running to try and figure out what is in the image
	JvmImageScanStateDiscovering JvmImageDependenciesState = "JvmImageScanDiscovering"
	// JvmImageScanStateFailed The build failed
	JvmImageScanStateFailed JvmImageDependenciesState = "JvmImageScanFailed"
	// JvmImageScanStateComplete The discovery completed successfully, the resource can be removed
	JvmImageScanStateComplete JvmImageDependenciesState = "JvmImageScanComplete"
)

type JvmImageScan

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

	Spec   JvmImageScanSpec   `json:"spec"`
	Status JvmImageScanStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status +kubebuilder:resource:path=jvmimagescans,scope=Namespaced +kubebuilder:printcolumn:name="Image",type=string,JSONPath=`.spec.image` +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state` JvmImageScan TODO provide godoc description

func (*JvmImageScan) DeepCopy

func (in *JvmImageScan) DeepCopy() *JvmImageScan

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

func (*JvmImageScan) DeepCopyInto

func (in *JvmImageScan) DeepCopyInto(out *JvmImageScan)

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

func (*JvmImageScan) DeepCopyObject

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

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

type JvmImageScanList

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

JvmImageScanList contains a list of JvmImageScan

func (*JvmImageScanList) DeepCopy

func (in *JvmImageScanList) DeepCopy() *JvmImageScanList

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

func (*JvmImageScanList) DeepCopyInto

func (in *JvmImageScanList) DeepCopyInto(out *JvmImageScanList)

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

func (*JvmImageScanList) DeepCopyObject

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

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

type JvmImageScanSpec

type JvmImageScanSpec struct {
	Image string `json:"image,omitempty"`
}

func (*JvmImageScanSpec) DeepCopy

func (in *JvmImageScanSpec) DeepCopy() *JvmImageScanSpec

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

func (*JvmImageScanSpec) DeepCopyInto

func (in *JvmImageScanSpec) DeepCopyInto(out *JvmImageScanSpec)

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

type JvmImageScanStatus

type JvmImageScanStatus struct {
	State   JvmImageDependenciesState `json:"state,omitempty"`
	Digest  string                    `json:"digest,omitempty"`
	Message string                    `json:"message,omitempty"`
	Results []JavaDependency          `json:"results,omitempty"`
}

func (*JvmImageScanStatus) DeepCopy

func (in *JvmImageScanStatus) DeepCopy() *JvmImageScanStatus

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

func (*JvmImageScanStatus) DeepCopyInto

func (in *JvmImageScanStatus) DeepCopyInto(out *JvmImageScanStatus)

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

type MavenDeployment

type MavenDeployment struct {
	Username   string `json:"username,omitempty"`
	Repository string `json:"repository,omitempty"`
}

func (*MavenDeployment) DeepCopy

func (in *MavenDeployment) DeepCopy() *MavenDeployment

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

func (*MavenDeployment) DeepCopyInto

func (in *MavenDeployment) DeepCopyInto(out *MavenDeployment)

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

type Pattern

type Pattern struct {
	From string `json:"from"`
	To   string `json:"to"`
}

func (*Pattern) DeepCopy

func (in *Pattern) DeepCopy() *Pattern

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

func (*Pattern) DeepCopyInto

func (in *Pattern) DeepCopyInto(out *Pattern)

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

type PatternElement

type PatternElement struct {
	Pattern Pattern `json:"pattern"`
}

func (*PatternElement) DeepCopy

func (in *PatternElement) DeepCopy() *PatternElement

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

func (*PatternElement) DeepCopyInto

func (in *PatternElement) DeepCopyInto(out *PatternElement)

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

type PipelineResults

type PipelineResults struct {
	Result string `json:"result,omitempty"`
	Record string `json:"record,omitempty"`
	Logs   string `json:"logs,omitempty"`
}

A representation of the Tekton Results records for a pipeline

func (*PipelineResults) DeepCopy

func (in *PipelineResults) DeepCopy() *PipelineResults

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

func (*PipelineResults) DeepCopyInto

func (in *PipelineResults) DeepCopyInto(out *PipelineResults)

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

type PreBuildImage

type PreBuildImage struct {
	BaseBuilderImage string `json:"baseBuilderImage,omitempty"`
	BuiltImageDigest string `json:"builtImageDigest,omitempty"`
	Tool             string `json:"tool,omitempty"`
}

func (*PreBuildImage) DeepCopy

func (in *PreBuildImage) DeepCopy() *PreBuildImage

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

func (*PreBuildImage) DeepCopyInto

func (in *PreBuildImage) DeepCopyInto(out *PreBuildImage)

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

type RebuiltArtifact

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

	Spec   RebuiltArtifactSpec   `json:"spec"`
	Status RebuiltArtifactStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:path=rebuiltartifacts,scope=Namespaced +kubebuilder:printcolumn:name="GAV",type=string,JSONPath=`.spec.gav` RebuiltArtifact An artifact that has been rebuilt and deployed to S3 or a Container registry

func (*RebuiltArtifact) DeepCopy

func (in *RebuiltArtifact) DeepCopy() *RebuiltArtifact

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

func (*RebuiltArtifact) DeepCopyInto

func (in *RebuiltArtifact) DeepCopyInto(out *RebuiltArtifact)

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

func (*RebuiltArtifact) DeepCopyObject

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

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

type RebuiltArtifactList

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

RebuiltArtifactList contains a list of RebuiltArtifact

func (*RebuiltArtifactList) DeepCopy

func (in *RebuiltArtifactList) DeepCopy() *RebuiltArtifactList

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

func (*RebuiltArtifactList) DeepCopyInto

func (in *RebuiltArtifactList) DeepCopyInto(out *RebuiltArtifactList)

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

func (*RebuiltArtifactList) DeepCopyObject

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

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

type RebuiltArtifactSpec

type RebuiltArtifactSpec struct {
	// The GAV of the rebuilt artifact
	GAV    string `json:"gav,omitempty"`
	Image  string `json:"image,omitempty"`
	Digest string `json:"digest,omitempty"`
}

func (*RebuiltArtifactSpec) DeepCopy

func (in *RebuiltArtifactSpec) DeepCopy() *RebuiltArtifactSpec

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

func (*RebuiltArtifactSpec) DeepCopyInto

func (in *RebuiltArtifactSpec) DeepCopyInto(out *RebuiltArtifactSpec)

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

type RebuiltArtifactStatus

type RebuiltArtifactStatus struct {
}

func (*RebuiltArtifactStatus) DeepCopy

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

func (*RebuiltArtifactStatus) DeepCopyInto

func (in *RebuiltArtifactStatus) DeepCopyInto(out *RebuiltArtifactStatus)

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

type RelocationPattern

type RelocationPattern struct {
	BuildPolicy string           `json:"buildPolicy,omitempty" default:"default"`
	Patterns    []PatternElement `json:"patterns,omitempty"`
}

func (*RelocationPattern) DeepCopy

func (in *RelocationPattern) DeepCopy() *RelocationPattern

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

func (*RelocationPattern) DeepCopyInto

func (in *RelocationPattern) DeepCopyInto(out *RelocationPattern)

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

type RelocationPatternElement

type RelocationPatternElement struct {
	RelocationPattern RelocationPattern `json:"relocationPattern"`
}

func (*RelocationPatternElement) DeepCopy

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

func (*RelocationPatternElement) DeepCopyInto

func (in *RelocationPatternElement) DeepCopyInto(out *RelocationPatternElement)

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

type SCMInfo

type SCMInfo struct {
	SCMURL     string `json:"scmURL,omitempty"`
	SCMType    string `json:"scmType,omitempty"`
	Tag        string `json:"tag,omitempty"`
	CommitHash string `json:"commitHash,omitempty"`
	Path       string `json:"path,omitempty"`
	Private    bool   `json:"private,omitempty"`
}

func (*SCMInfo) DeepCopy

func (in *SCMInfo) DeepCopy() *SCMInfo

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

func (*SCMInfo) DeepCopyInto

func (in *SCMInfo) DeepCopyInto(out *SCMInfo)

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

type SystemConfig

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

	Spec   SystemConfigSpec   `json:"spec"`
	Status SystemConfigStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status +kubebuilder:resource:path=systemconfigs,scope=Cluster SystemConfig TODO provide godoc description

func (*SystemConfig) DeepCopy

func (in *SystemConfig) DeepCopy() *SystemConfig

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

func (*SystemConfig) DeepCopyInto

func (in *SystemConfig) DeepCopyInto(out *SystemConfig)

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

func (*SystemConfig) DeepCopyObject

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

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

type SystemConfigList

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

SystemConfigList contains a list of SystemConfig

func (*SystemConfigList) DeepCopy

func (in *SystemConfigList) DeepCopy() *SystemConfigList

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

func (*SystemConfigList) DeepCopyInto

func (in *SystemConfigList) DeepCopyInto(out *SystemConfigList)

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

func (*SystemConfigList) DeepCopyObject

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

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

type SystemConfigSpec

type SystemConfigSpec struct {
	Builders            map[string]BuilderImageInfo `json:"builders,omitempty"`
	MaxAdditionalMemory int                         `json:"maxAdditionalMemory,omitempty"`
	RecipeDatabase      string                      `json:"recipeDatabase,omitempty"`
}

func (*SystemConfigSpec) DeepCopy

func (in *SystemConfigSpec) DeepCopy() *SystemConfigSpec

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

func (*SystemConfigSpec) DeepCopyInto

func (in *SystemConfigSpec) DeepCopyInto(out *SystemConfigSpec)

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

type SystemConfigStatus

type SystemConfigStatus struct {
}

func (*SystemConfigStatus) DeepCopy

func (in *SystemConfigStatus) DeepCopy() *SystemConfigStatus

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

func (*SystemConfigStatus) DeepCopyInto

func (in *SystemConfigStatus) DeepCopyInto(out *SystemConfigStatus)

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

Jump to

Keyboard shortcuts

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