Packages

shipwright.io/v1beta1

Package v1beta1 contains API Schema definitions for the build v1beta1 API group

Resource Types

Build

Build is the Schema representing a Build definition

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringshipwright.io/v1beta1
kind stringBuild
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec BuildSpec
status BuildStatus

BuildExecutor

BuildExecutor defines the name and kind of the build runner.

Appears in:

FieldDescriptionDefaultValidation
name stringName is the name of the TaskRun or PipelineRun that was created to execute this BuildRun
kind stringKind is the kind of the object that was created to execute the BuildRun (e.g., “TaskRun”, “PipelineRun”)

BuildList

BuildList contains a list of Build

FieldDescriptionDefaultValidation
apiVersion stringshipwright.io/v1beta1
kind stringBuildList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items Build array

BuildReason

Underlying type: string

BuildReason is a type used for populating the Build Status.Reason field

Appears in:

FieldDescription
SucceededSucceedStatus indicates that all validations Succeeded
UnknownBuildStrategyKindUnknownBuildStrategyKind indicates that neither namespace-scope or cluster-scope strategy kind was used
BuildStrategyNotFoundBuildStrategyNotFound indicates that a namespaced-scope strategy was not found in the namespace
ClusterBuildStrategyNotFoundClusterBuildStrategyNotFound indicates that a cluster-scope strategy was not found
SetOwnerReferenceFailedSetOwnerReferenceFailed indicates that setting ownerReferences between a Build and a BuildRun failed
SpecSourceSecretRefNotFoundSpecSourceSecretRefNotFound indicates the referenced secret in source is missing
SpecOutputSecretRefNotFoundSpecOutputSecretRefNotFound indicates the referenced secret in output is missing
SpecBuilderSecretRefNotFoundSpecBuilderSecretRefNotFound indicates the referenced secret in builder is missing
MultipleSecretRefNotFoundMultipleSecretRefNotFound indicates that multiple secrets are missing
SpecEnvNameCanNotBeBlankSpecEnvNameCanNotBeBlank indicates that the name for an environment variable is blank
SpecEnvOnlyOneOfValueOrValueFromMustBeSpecifiedSpecEnvOnlyOneOfValueOrValueFromMustBeSpecified indicates that both value and valueFrom were specified
RuntimePathsCanNotBeEmptyRuntimePathsCanNotBeEmpty indicates that the spec.runtime feature is used but the paths were not specified
RestrictedParametersInUseRestrictedParametersInUse indicates the definition of reserved shipwright parameters
WrongParameterValueTypeWrongParameterValueType indicates that a single value was provided for an array parameter, or vice-versa
UndefinedParameterUndefinedParameter indicates the definition of param that was not defined in the strategy parameters
InconsistentParameterValuesInconsistentParameterValues indicates that parameter values have more than one of configMapValue, secretValue, or value set
EmptyArrayItemParameterValuesEmptyArrayItemParameterValues indicates that array parameters contain an item where none of configMapValue, secretValue, or value is set
IncompleteConfigMapValueParameterValuesIncompleteConfigMapValueParameterValues indicates that a configMapValue is specified where the name or the key is empty
IncompleteSecretValueParameterValuesIncompleteSecretValueParameterValues indicates that a secretValue is specified where the name or the key is empty
RemoteRepositoryUnreachableRemoteRepositoryUnreachable indicates the referenced repository is unreachable
BuildNameInvalidBuildNameInvalid indicates the build name is invalid
VolumeDoesNotExistVolumeDoesNotExist indicates that volume referenced by the Build does not exist, therefore Build cannot be run
VolumeNotOverridableVolumeNotOverridable indicates that volume defined by build is not set as overridable in the strategy
UndefinedVolumeUndefinedVolume indicates that volume defined by build is not found in the strategy
TriggerNameCanNotBeBlankTriggerNameCanNotBeBlank indicates the trigger condition does not have a name
TriggerInvalidTypeTriggerInvalidType indicates the trigger type is invalid
TriggerInvalidGitHubWebHookTriggerInvalidGitHubWebHook indicates the trigger type GitHub is invalid
TriggerInvalidImageTriggerInvalidImage indicates the trigger type Image is invalid
TriggerInvalidPipelineTriggerInvalidPipeline indicates the trigger type Pipeline is invalid
OutputTimestampNotSupportedOutputTimestampNotSupported indicates that an unsupported output timestamp setting was used
OutputTimestampNotValidOutputTimestampNotValid indicates that the output timestamp value is not valid
NodeSelectorNotValidNodeSelectorNotValid indicates that the nodeSelector value is not valid
TolerationNotValidTolerationNotValid indicates that the Toleration value is not valid
SchedulerNameNotValidSchedulerNameNotValid indicates that the Scheduler name is not valid

BuildRetention

BuildRetention struct for buildrun cleanup

Appears in:

FieldDescriptionDefaultValidation
failedLimit integerFailedLimit defines the maximum number of failed buildruns that should exist.Maximum: 10000 Minimum: 1
succeededLimit integerSucceededLimit defines the maximum number of succeeded buildruns that should exist.Maximum: 10000 Minimum: 1
ttlAfterFailed DurationTTLAfterFailed defines the maximum duration of time the failed buildrun should exist.Format: duration
ttlAfterSucceeded DurationTTLAfterSucceeded defines the maximum duration of time the succeeded buildrun should exist.Format: duration
atBuildDeletion booleanAtBuildDeletion defines if related BuildRuns should be deleted when deleting the Build.

BuildRun

BuildRun is the Schema representing an instance of build execution

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringshipwright.io/v1beta1
kind stringBuildRun
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec BuildRunSpec
status BuildRunStatus

BuildRunList

BuildRunList contains a list of BuildRun

FieldDescriptionDefaultValidation
apiVersion stringshipwright.io/v1beta1
kind stringBuildRunList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items BuildRun array

BuildRunRequestedState

Underlying type: string

BuildRunRequestedState defines the buildrun state the user can provide to override whatever is the current state.

Appears in:

BuildRunRetention

BuildRunRetention struct for buildrun cleanup

Appears in:

FieldDescriptionDefaultValidation
ttlAfterFailed DurationTTLAfterFailed defines the maximum duration of time the failed buildrun should exist.Format: duration
ttlAfterSucceeded DurationTTLAfterSucceeded defines the maximum duration of time the succeeded buildrun should exist.Format: duration

BuildRunSource

BuildRunSource describes the source to use in a BuildRun, overriding the value of the parent Build object.

Appears in:

FieldDescriptionDefaultValidation
type BuildSourceTypeType is the BuildRunSource qualifier, the type of the source.Only Local is supported.
local LocalLocal contains the details for the source of type Local

BuildRunSpec

BuildRunSpec defines the desired state of BuildRun

Appears in:

FieldDescriptionDefaultValidation
build ReferencedBuildBuild refers to an embedded build specificationThis field is mandatory
source BuildRunSourceSource overrides where the source code is obtained for the BuildRun. This can only be usedto obtain source code from a remote machine’s local directory, instead of the value definedin the build.
serviceAccount stringServiceAccount refers to the kubernetes serviceaccountwhich is used for resource control.Default serviceaccount will be set if it is empty
timeout DurationTimeout defines the maximum run time of this BuildRun.Format: duration
paramValues ParamValue arrayParams is a list of key/value that could be usedto set strategy parameters
output ImageOutput refers to the location where the generatedimage would be pushed to. It will overwrite the output image in build spec
state BuildRunRequestedStateState is used for canceling a buildrun (and maybe more later on).
env EnvVar arrayEnv contains additional environment variables that should be passed to the build container
retention BuildRunRetentionContains information about retention params
volumes BuildVolume arrayVolumes contains volume Overrides of the BuildStrategy volumes in case those are allowedto be overridden. Must only contain volumes that exist in the corresponding BuildStrategy
nodeSelector object (keys:string, values:string)NodeSelector is a selector which must be true for the pod to fit on a node.Selector which must match a node’s labels for the pod to be scheduled on that node.More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
tolerations Toleration arrayIf specified, the pod’s tolerations.
schedulerName stringSchedulerName specifies the scheduler to be used to dispatch the Pod

BuildRunStatus

BuildRunStatus defines the observed state of BuildRun

Appears in:

FieldDescriptionDefaultValidation
source SourceResultSource holds the results emitted from the source step
output OutputOutput holds the results emitted from step definition of an output
conditions ConditionsConditions holds the latest available observations of a resource’s current state.
taskRunName stringTaskRunName is the name of the TaskRun responsible for executing this BuildRun.Deprecated: Use Executor instead to describe the taskrun.
executor BuildExecutorExecutor is the name and kind of the resource responsible for executing this BuildRun.
startTime TimeStartTime is the time the build is actually started.
completionTime TimeCompletionTime is the time the build completed.
buildSpec BuildSpecBuildSpec is the Build Spec of this BuildRun.
failureDetails FailureDetailsFailureDetails contains error details that are collected and surfaced from TaskRun

BuildSourceType

Underlying type: string

BuildSourceType enumerates build source type names.

Appears in:

FieldDescription
Local
Git
OCI

BuildSpec

BuildSpec defines the desired state of Build

Appears in:

FieldDescriptionDefaultValidation
source SourceSource refers to the location where the source code is,this could be a git repository, a local source or an ociartifact
trigger TriggerTrigger defines the scenarios where a new build should be triggered.
strategy StrategyStrategy references the BuildStrategy to use to build the containerimage.
paramValues ParamValue arrayParams is a list of key/value that could be usedto set strategy parameters
output ImageOutput refers to the location where the built image would be pushed.
timeout DurationTimeout defines the maximum amount of time the Build should take to execute.Format: duration
env EnvVar arrayEnv contains additional environment variables that should be passed to the build container
retention BuildRetentionContains information about retention params
volumes BuildVolume arrayVolumes contains volume Overrides of the BuildStrategy volumes in case those are allowedto be overridden. Must only contain volumes that exist in the corresponding BuildStrategy
nodeSelector object (keys:string, values:string)NodeSelector is a selector which must be true for the pod to fit on a node.Selector which must match a node’s labels for the pod to be scheduled on that node.More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
tolerations Toleration arrayIf specified, the pod’s tolerations.
schedulerName stringSchedulerName specifies the scheduler to be used to dispatch the Pod

BuildStatus

BuildStatus defines the observed state of Build

NOTICE: This is deprecated and will be removed in a future release.

Appears in:

FieldDescriptionDefaultValidation
registered ConditionStatusThe Register status of the Build
reason BuildReasonThe reason of the registered Build, it’s an one-word camelcase
message stringThe message of the registered Build, either an error or succeed message

BuildStrategy

BuildStrategy is the Schema representing a strategy in the namespace scope to build images from source code.

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringshipwright.io/v1beta1
kind stringBuildStrategy
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec BuildStrategySpec
status BuildStrategyStatus

BuildStrategyKind

Underlying type: string

BuildStrategyKind defines the type of BuildStrategy used by the build.

Appears in:

FieldDescription
BuildStrategyNamespacedBuildStrategyKind indicates that the buildstrategy type has a namespaced scope.
ClusterBuildStrategyClusterBuildStrategyKind indicates that buildstrategy type has a cluster scope.

BuildStrategyList

BuildStrategyList contains a list of BuildStrategy

FieldDescriptionDefaultValidation
apiVersion stringshipwright.io/v1beta1
kind stringBuildStrategyList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items BuildStrategy array

BuildStrategySecurityContext

BuildStrategySecurityContext defines a UID and GID for the build that is to be used for the build strategy steps as well as for shipwright-managed steps such as the source retrieval, or the image processing. The value can be overwritten on the steps for the strategy steps. If omitted, then UID and GID from the Shipwright configuration will be used for the shipwright-managed steps.

Appears in:

FieldDescriptionDefaultValidation
runAsUser integerThe UID to run the entrypoint of the container process.Defaults to user specified in image metadata if unspecified.Can be overwritten by the security context on the step level.
runAsGroup integerThe GID to run the entrypoint of the container process.Defaults to group specified in image metadata if unspecified.Can be overwritten by the security context on the step level.

BuildStrategySpec

BuildStrategySpec defines the desired state of BuildStrategy

Appears in:

FieldDescriptionDefaultValidation
steps Step arraySteps defines the steps of the strategy
parameters Parameter arrayParameters defines the parameters of the strategy
securityContext BuildStrategySecurityContextSecurityContext defines the default security context of all strategy steps
volumes BuildStrategyVolume arrayVolumes defines the volumes of the strategy

BuildStrategyStatus

BuildStrategyStatus defines the observed state of BuildStrategy

Appears in:

BuildStrategyVolume

BuildStrategyVolume is a volume that will be mounted in build pod during build step of the Build Strategy

Appears in:

FieldDescriptionDefaultValidation
overridable booleanIndicates that this Volume can be overridden in a Build or BuildRun.Defaults to false
name stringName of the Build Volume
description stringDescription of the Build Volume

BuildVolume

BuildVolume is a volume that will be mounted in build pod during build step

Appears in:

FieldDescriptionDefaultValidation
name stringName of the Build Volume

ClusterBuildStrategy

ClusterBuildStrategy is the Schema representing a strategy in the cluster scope to build images from source code.

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringshipwright.io/v1beta1
kind stringClusterBuildStrategy
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec BuildStrategySpec
status BuildStrategyStatus

ClusterBuildStrategyList

ClusterBuildStrategyList contains a list of ClusterBuildStrategy

FieldDescriptionDefaultValidation
apiVersion stringshipwright.io/v1beta1
kind stringClusterBuildStrategyList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items ClusterBuildStrategy array

Condition

Condition defines the required fields for populating Build controllers Conditions

Appears in:

FieldDescriptionDefaultValidation
type TypeType of condition
status ConditionStatusStatus of the condition, one of True, False, Unknown.
lastTransitionTime TimeLastTransitionTime last time the condition transit from one status to another.
reason stringThe reason for the condition last transition.
message stringA human readable message indicating details about the transition.

Conditions

Underlying type: Condition

Conditions defines a list of Condition

Appears in:

FieldDescriptionDefaultValidation
type TypeType of condition
status ConditionStatusStatus of the condition, one of True, False, Unknown.
lastTransitionTime TimeLastTransitionTime last time the condition transit from one status to another.
reason stringThe reason for the condition last transition.
message stringA human readable message indicating details about the transition.

FailureDetails

FailureDetails describes an error while building images

Appears in:

FieldDescriptionDefaultValidation
reason string
message string
location Location

Git

Git describes how to obtain source code from a git repository.

Appears in:

FieldDescriptionDefaultValidation
url stringURL describes the URL of the Git repository.
revision stringRevision describes the Git revision (e.g., branch, tag, commit SHA,etc.) to fetch.If not defined, it will fallback to the repository’s default branch.
cloneSecret stringCloneSecret references a Secret that contains credentials to accessthe repository.
depth integerDepth specifies the depth of the shallow clone.If not specified the default is set to 1.Values greater than 1 will create a clone with the specified depth.If value is 0, it will create a full git history clone.

GitHubEventName

Underlying type: string

GitHubEventName set of WhenGitHub valid event names.

Appears in:

FieldDescription
PullRequestGitHubPullRequestEvent github pull-request event name.
PushGitHubPushEvent git push webhook event name.

GitSourceResult

GitSourceResult holds the results emitted from the git source

Appears in:

FieldDescriptionDefaultValidation
commitSha stringCommitSha holds the commit sha of git source
commitAuthor stringCommitAuthor holds the commit author of a git source
branchName stringBranchName holds the default branch name of the git sourcethis will be set only when revision is not specified in Build object

IgnoredVulnerabilitySeverity

Underlying type: string

IgnoredVulnerabilitySeverity is an enum for the possible values for the ignored severity

Appears in:

FieldDescription
highHigh indicates that high, medium, and low severity vulnerabilities should be ignored
mediumMedium indicates that medium, and low severity vulnerabilities should be ignored
lowHigh indicates that low severity vulnerabilities should be ignored

Image

Image refers to an container image with credentials

Appears in:

FieldDescriptionDefaultValidation
image stringImage is the reference of the image.
insecure booleanInsecure defines whether the registry is not secure
pushSecret stringDescribes the secret name for pushing a container image.
annotations object (keys:string, values:string)Annotations references the additional annotations to be applied on the image
labels object (keys:string, values:string)Labels references the additional labels to be applied on the image
vulnerabilityScan VulnerabilityScanOptionsVulnerabilityScan provides configurations about running a scan for your generated image
timestamp stringTimestamp references the optional image timestamp to be set, valid values are:- “Zero”, to set 00:00:00 UTC on 1 January 1970- “SourceTimestamp”, to set the source timestamp dereived from the input source- “BuildTimestamp”, to set the timestamp of the current build itself- Parsable integer number defined as the epoch seconds- or nil/empty to not set any specific timestamp

Local

Local describes how to obtain source code streamed in from a remote machine’s local directory. Local source code can be streamed into a build using the shp command line.

Appears in:

FieldDescriptionDefaultValidation
timeout DurationTimeout is the maximum duration the build should wait for source code to be streamed in froma remote machine’s local directory.
name stringName of the local step

Location

Location describes the location where the failure happened

Appears in:

FieldDescriptionDefaultValidation
pod string
container string

OCIArtifact

OCIArtifact describes how to obtain source code from a container image, also known as an OCI artifact.

Appears in:

FieldDescriptionDefaultValidation
image stringImage is a reference to a container image to be pulled from a container registry.For example, quay.io/org/image:tag
prune PruneOptionPrune specifies whether the image containing the source code should be deleted.Allowed values are ‘Never’ (no deletion) and AfterPull (removal after theimage was successfully pulled from the registry).If not defined, it defaults to ‘Never’.
pullSecret stringPullSecret references a Secret that contains credentials to accessthe container image.

ObjectKeyRef

Appears in:

FieldDescriptionDefaultValidation
name stringName of the object
key stringKey inside the object
format stringAn optional format to add pre- or suffix to the object value. For example ‘KEY=${SECRET_VALUE}’ or ‘KEY=${CONFIGMAP_VALUE}’ depending on the context.

OciArtifactSourceResult

OciArtifactSourceResult holds the results emitted from the bundle source

Appears in:

FieldDescriptionDefaultValidation
digest stringDigest hold the image digest result

Output

Output holds the information about the container image that the BuildRun built

Appears in:

FieldDescriptionDefaultValidation
digest stringDigest holds the digest of output image
size integerSize holds the compressed size of output image
vulnerabilities Vulnerability arrayVulnerabilities holds the list of vulnerabilities detected in the image

ParamValue

ParamValue is a key/value that populates a strategy parameter used in the execution of the strategy steps

Appears in:

FieldDescriptionDefaultValidation
name stringName of the parameter
values SingleValue arrayValues of an array parameter

Parameter

Parameter holds a name-description with a default value that allows strategy steps to be parameterize. Build users can set a value for parameter via the Build or BuildRun spec.paramValues object.

Appears in:

FieldDescriptionDefaultValidation
name stringName of the parameter
description stringDescription on the parameter purpose
type ParameterTypeType of the parameter. The possible types are “string” and “array”,and “string” is the default.
default stringDefault value for a string parameter
defaults stringDefault values for an array parameter

ParameterType

Underlying type: string

ParameterType indicates the type of a parameter

Appears in:

FieldDescription
string
array

PruneOption

Underlying type: string

PruneOption defines the supported options for image pruning

Appears in:

FieldDescription
NeverDo not delete image after it was pulled
AfterPullDelete image after it was successfully pulled

ReferencedBuild

Appears in:

FieldDescriptionDefaultValidation
spec BuildSpecSpec refers to an embedded build specification
name stringName of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names

SingleValue

The value type contains the properties for a value, this allows for an easy extension in the future to support more kinds

Appears in:

FieldDescriptionDefaultValidation
value stringThe value of the parameter
configMapValue ObjectKeyRefThe ConfigMap value of the parameter
secretValue ObjectKeyRefThe secret value of the parameter

Source

Source describes the source code to fetch for the build.

Appears in:

FieldDescriptionDefaultValidation
type BuildSourceTypeType is the type of source code used as input for the build. Allowed values areGit, OCI, and Local.
contextDir stringContextDir is a path to a subdirectory within the source code that should be used as thebuild root directory. Optional.
ociArtifact OCIArtifactOCIArtifact contains the details for obtaining source code from a container image, alsoknown as an OCI artifact.
git GitGit contains the details for obtaining source code from a git repository.
local LocalLocal contains the details for obtaining source code that is streamed in from a remotemachine’s local directory.

SourceResult

SourceResult holds the results emitted from the different sources

Appears in:

FieldDescriptionDefaultValidation
git GitSourceResultGit holds the results emitted from thesource step of type git
ociArtifact OciArtifactSourceResultOciArtifact holds the results emitted fromthe source step of type ociArtifact
timestamp TimeTimestamp holds the timestamp of the source, whichdepends on the actual source type and could range frombeing the commit timestamp or the fileystem timestampof the most recent source file in the working directory

Step

BuildStep defines a partial step that needs to run in container for building the image. If the build step declares a volumeMount, Shipwright will create an emptyDir volume mount for the named volume. Build steps which share the same named volume in the volumeMount will share the same underlying emptyDir volume. This behavior is deprecated, and will be removed when full volume support is added to build strategies as specified in SHIP-0022.

Appears in:

FieldDescriptionDefaultValidation
name stringName of the container specified as a DNS_LABEL.Each container in a pod must have a unique name (DNS_LABEL).Cannot be updated.
image stringContainer image name.More info: https://kubernetes.io/docs/concepts/containers/imagesThis field is optional to allow higher level config management to default or overridecontainer images in workload controllers like Deployments and StatefulSets.
command string arrayEntrypoint array. Not executed within a shell.The container image’s ENTRYPOINT is used if this is not provided.Variable references $(VAR_NAME) are expanded using the container’s environment. If a variablecannot be resolved, the reference in the input string will be unchanged. Double $$ are reducedto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. “$$(VAR_NAME)” willproduce the string literal “$(VAR_NAME)”. Escaped references will never be expanded, regardlessof whether the variable exists or not. Cannot be updated.More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
args string arrayArguments to the entrypoint.The container image’s CMD is used if this is not provided.Variable references $(VAR_NAME) are expanded using the container’s environment. If a variablecannot be resolved, the reference in the input string will be unchanged. Double $$ are reducedto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. “$$(VAR_NAME)” willproduce the string literal “$(VAR_NAME)”. Escaped references will never be expanded, regardlessof whether the variable exists or not. Cannot be updated.More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
workingDir stringContainer’s working directory.If not specified, the container runtime’s default will be used, whichmight be configured in the container image.Cannot be updated.
env EnvVar arrayList of environment variables to set in the container.Cannot be updated.
resources ResourceRequirementsCompute Resources required by this container.Cannot be updated.More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
volumeMounts VolumeMount arrayPod volumes to mount into the container’s filesystem.Cannot be updated.
imagePullPolicy PullPolicyImage pull policy.One of Always, Never, IfNotPresent.Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.Cannot be updated.More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
securityContext SecurityContextSecurityContext defines the security options the container should be run with.If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/

Strategy

Strategy can be used to refer to a specific instance of a buildstrategy. Copied from CrossVersionObjectReference: https://github.com/kubernetes/kubernetes/blob/169df7434155cbbc22f1532cba8e0a9588e29ad8/pkg/apis/autoscaling/types.go#L64

Appears in:

FieldDescriptionDefaultValidation
name stringName of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
kind BuildStrategyKindBuildStrategyKind indicates the kind of the buildstrategy, namespaced or cluster scoped.

Trigger

Trigger represents the webhook trigger configuration for a Build.

Appears in:

FieldDescriptionDefaultValidation
when TriggerWhen arrayWhen the list of scenarios when a new build should take place.
triggerSecret stringTriggerSecret points to a local object carrying the secret token to validate webhook request.

TriggerType

Underlying type: string

TriggerType set of TriggerWhen valid names.

Appears in:

FieldDescription
GitHubGitHubWebHookTrigger GitHubWebHookTrigger trigger type name.
ImageImageTrigger Image trigger type name.
PipelinePipelineTrigger Tekton Pipeline trigger type name.

TriggerWhen

TriggerWhen a given scenario where the webhook trigger is applicable.

Appears in:

FieldDescriptionDefaultValidation
name stringName name or the short description of the trigger condition.
type TriggerTypeType the event type
github WhenGitHubGitHub describes how to trigger builds based on GitHub (SCM) events.
image WhenImageImage slice of image names where the event applies.
objectRef WhenObjectRefObjectRef describes how to match a foreign resource, either using the name or the labelselector, plus the current resource status.

Type

Underlying type: string

Type used for defining the conditiont Type field flavour

Appears in:

FieldDescription
SucceededSucceeded specifies that the resource has finished.For resources that run to completion.

Vulnerability

Vulnerability defines a vulnerability by its ID and severity

Appears in:

FieldDescriptionDefaultValidation
id string
severity VulnerabilitySeverity

VulnerabilityIgnoreOptions

VulnerabilityIgnoreOptions refers to ignore options for vulnerability scan

Appears in:

FieldDescriptionDefaultValidation
id string arrayID references the security issues to be ignored in vulnerability scan
severity IgnoredVulnerabilitySeveritySeverity denotes the severity levels of security issues to be ignored, valid values are:- “low”: it will exclude low severity vulnerabilities, displaying only medium, high and critical vulnerabilities- “medium”: it will exclude low and medium severity vulnerabilities, displaying only high and critical vulnerabilities- “high”: it will exclude low, medium and high severity vulnerabilities, displaying only the critical vulnerabilitiesEnum: [low medium high]
unfixed booleanUnfixed indicates to ignore vulnerabilities for which no fix exists

VulnerabilityScanOptions

VulnerabilityScanOptions provides configurations about running a scan for your generated image

Appears in:

FieldDescriptionDefaultValidation
enabled booleanEnabled indicates whether to run vulnerability scan for image
failOnFinding booleanFailOnFinding indicates whether to fail the build run if the vulnerability scan results in vulnerabilities
ignore VulnerabilityIgnoreOptionsIgnore refers to ignore options for vulnerability scan

VulnerabilitySeverity

Underlying type: string

VulnerabilitySeverity is an enum for the possible values for severity of a vulnerability

Appears in:

FieldDescription
criticalCritical indicates a critical severity
highHigh indicates a high severity
mediumMedium indicates a medium severity
lowLow indicates a low severity
unknownUnknown indicates an unknown severity

WhenGitHub

WhenGitHub attributes to match GitHub events.

Appears in:

FieldDescriptionDefaultValidation
events GitHubEventName arrayEvents GitHub event names.MinItems: 1
branches string arrayBranches slice of branch names where the event applies.

WhenImage

WhenImage attributes to match Image events.

Appears in:

FieldDescriptionDefaultValidation
names string arrayNames fully qualified image names.

WhenObjectRef

WhenObjectRef attributes to reference local Kubernetes objects.

Appears in:

FieldDescriptionDefaultValidation
name stringName target object name.
status string arrayStatus object status.
selector object (keys:string, values:string)Selector label selector.