v1beta1

package
v0.0.0-...-932eec2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the pipeline v1beta1 API group +k8s:deepcopy-gen=package +groupName=core.openfunction.io

Package v1beta1 contains API Schema definitions for the core v1beta1 API group +kubebuilder:object:generate=true +groupName=core.openfunction.io

Index

Constants

View Source
const (
	BuildPhase     = "Build"
	ServingPhase   = "Serving"
	Created        = "Created"
	Building       = "Building"
	Starting       = "Starting"
	Running        = "Running"
	Succeeded      = "Succeeded"
	Failed         = "Failed"
	Skipped        = "Skipped"
	Timeout        = "Timeout"
	Canceled       = "Canceled"
	UnknownRuntime = "UnknownRuntime"
)
View Source
const (
	Knative Runtime = "knative"
	Async   Runtime = "async"

	DaprBindings = "bindings"
	DaprPubsub   = "pubsub"

	WorkloadTypeJob         = "Job"
	WorkloadTypeStatefulSet = "StatefulSet"
	WorkloadTypeDeployment  = "Deployment"
)
View Source
const (
	// BuilderStateCancelled indicates a user's intent to stop the build process if not
	// already canceled or terminated
	BuilderStateCancelled = "Cancelled"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "core.openfunction.io", Version: "v1beta1"}

	// SchemeGroupVersion is group version used to register these objects
	// added for generated clientset
	SchemeGroupVersion = GroupVersion

	// 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 AddressType

type AddressType string
const ExternalAddressType AddressType = "External"
const InternalAddressType AddressType = "Internal"

type BuildImpl

type BuildImpl struct {
	// Builder refers to the image containing the build tools to build the source code.
	//
	// +optional
	Builder *string `json:"builder,omitempty"`
	// BuilderCredentials references a Secret that contains credentials to access
	// the builder image repository.
	//
	// +optional
	BuilderCredentials *v1.LocalObjectReference `json:"builderCredentials,omitempty"`
	// The configuration for the `Shipwright` build engine.
	Shipwright *ShipwrightEngine `json:"shipwright,omitempty"`
	// Params is a list of key/value that could be used to set strategy parameters.
	// When using _params_, users should avoid:
	// Defining a parameter name that doesn't match one of the `spec.parameters` defined in the `BuildStrategy`.
	// Defining a parameter name that collides with the Shipwright reserved parameters including BUILDER_IMAGE,DOCKERFILE,CONTEXT_DIR and any name starting with shp-.
	Params map[string]string `json:"params,omitempty"`
	// Environment variables to pass to the builder.
	Env map[string]string `json:"env,omitempty"`
	// Function Source code repository
	SrcRepo *GitRepo `json:"srcRepo"`
	// Dockerfile is the path to the Dockerfile used by build strategies that rely on the Dockerfile to build an image.
	//
	// +optional
	Dockerfile *string `json:"dockerfile,omitempty"`
	// Timeout defines the maximum amount of time the Build should take to execute.
	//
	// +optional
	Timeout *metav1.Duration `json:"timeout,omitempty"`

	// The number of successful builds to retain, default is 0.
	// +optional
	SuccessfulBuildsHistoryLimit *int32 `json:"successfulBuildsHistoryLimit,omitempty"`

	// The number of failed builds to retain, default is 1.
	// +optional
	FailedBuildsHistoryLimit *int32 `json:"failedBuildsHistoryLimit,omitempty"`
	// The duration to retain a completed builder, defaults to 0 (forever).
	// +optional
	BuilderMaxAge *metav1.Duration `json:"builderMaxAge,omitempty"`
}

func (*BuildImpl) DeepCopy

func (in *BuildImpl) DeepCopy() *BuildImpl

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

func (*BuildImpl) DeepCopyInto

func (in *BuildImpl) DeepCopyInto(out *BuildImpl)

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

type Builder

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

	Spec   BuilderSpec   `json:"spec,omitempty"`
	Status BuilderStatus `json:"status,omitempty"`
}

Builder is the Schema for the builders API

func (*Builder) ConvertFrom

func (dst *Builder) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom is expected to modify its receiver to contain the converted object. Most of the conversion is straightforward copying, except for converting our changed field.

ConvertFrom converts from the Hub version (v1beta2) to this version.

func (*Builder) ConvertTo

func (src *Builder) ConvertTo(dstRaw conversion.Hub) error

ConvertTo is expected to modify its argument to contain the converted object. Most of the conversion is straightforward copying, except for converting our changed field.

ConvertTo converts this Function to the Hub version (v1beta2).

func (*Builder) DeepCopy

func (in *Builder) DeepCopy() *Builder

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

func (*Builder) DeepCopyInto

func (in *Builder) DeepCopyInto(out *Builder)

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

func (*Builder) DeepCopyObject

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

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

type BuilderList

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

BuilderList contains a list of Builder

func (*BuilderList) DeepCopy

func (in *BuilderList) DeepCopy() *BuilderList

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

func (*BuilderList) DeepCopyInto

func (in *BuilderList) DeepCopyInto(out *BuilderList)

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

func (*BuilderList) DeepCopyObject

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

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

type BuilderSpec

type BuilderSpec struct {
	// Params is a list of key/value that could be used to set strategy parameters.
	Params map[string]string `json:"params,omitempty"`
	// Environment params to pass to the builder.
	Env map[string]string `json:"env,omitempty"`
	// Builder refers to the image containing the build tools inside which
	// the source code would be built.
	//
	// +optional
	Builder *string `json:"builder"`
	// BuilderCredentials references a Secret that contains credentials to access
	// the builder image repository.
	//
	// +optional
	BuilderCredentials *v1.LocalObjectReference `json:"builderCredentials,omitempty"`
	// The configuration for `Shipwright` build engine.
	Shipwright *ShipwrightEngine `json:"shipwright,omitempty"`
	// Git repository info of a function
	SrcRepo *GitRepo `json:"srcRepo"`
	// Function image name
	Image string `json:"image"`
	// ImageCredentials references a Secret that contains credentials to access
	// the image repository.
	//
	// +optional
	ImageCredentials *v1.LocalObjectReference `json:"imageCredentials,omitempty"`
	// The port on which the function will be invoked
	Port *int32 `json:"port,omitempty"`
	// Dockerfile is the path to the Dockerfile to be used for
	// build strategies that rely on the Dockerfile for building an image.
	//
	// +optional
	Dockerfile *string `json:"dockerfile,omitempty"`
	// Timeout defines the maximum amount of time the Build should take to execute.
	//
	// +optional
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// State is used for canceling a buildrun (and maybe more later on).
	// +optional
	State BuilderState `json:"state,omitempty"`
}

BuilderSpec defines the desired state of Builder

func (*BuilderSpec) DeepCopy

func (in *BuilderSpec) DeepCopy() *BuilderSpec

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

func (*BuilderSpec) DeepCopyInto

func (in *BuilderSpec) DeepCopyInto(out *BuilderSpec)

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

type BuilderState

type BuilderState string

BuilderState defines builder's states that a user can set to overwrite a builder's current state

type BuilderStatus

type BuilderStatus struct {
	Phase  string `json:"phase,omitempty"`
	State  string `json:"state,omitempty"`
	Reason string `json:"reason,omitempty"`
	// Associate resources.
	ResourceRef map[string]string `json:"resourceRef,omitempty"`
	// Output holds the results emitted from step definition of an output
	//
	// +optional
	Output *Output `json:"output,omitempty"`
	// Sources holds the results emitted from the step definition
	// of different sources
	//
	// +optional
	Sources []SourceResult `json:"sources,omitempty"`
}

BuilderStatus defines the observed state of Builder

func (*BuilderStatus) DeepCopy

func (in *BuilderStatus) DeepCopy() *BuilderStatus

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

func (*BuilderStatus) DeepCopyInto

func (in *BuilderStatus) DeepCopyInto(out *BuilderStatus)

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

func (*BuilderStatus) IsCompleted

func (s *BuilderStatus) IsCompleted() bool

func (*BuilderStatus) IsSucceeded

func (s *BuilderStatus) IsSucceeded() bool

type BundleContainer

type BundleContainer struct {
	// Image reference, i.e. quay.io/org/image:tag
	Image string `json:"image"`
}

BundleContainer describes the source code bundle container to pull

func (*BundleContainer) DeepCopy

func (in *BundleContainer) DeepCopy() *BundleContainer

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

func (*BundleContainer) DeepCopyInto

func (in *BundleContainer) DeepCopyInto(out *BundleContainer)

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

type BundleSourceResult

type BundleSourceResult struct {
	// Digest hold the image digest result
	Digest string `json:"digest,omitempty"`
}

BundleSourceResult holds the results emitted from the bundle source

func (*BundleSourceResult) DeepCopy

func (in *BundleSourceResult) DeepCopy() *BundleSourceResult

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

func (*BundleSourceResult) DeepCopyInto

func (in *BundleSourceResult) DeepCopyInto(out *BundleSourceResult)

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

type CommonRouteSpec

type CommonRouteSpec struct {
	// GatewayRef references the Gateway resources that a Route wants
	// to be attached to.
	//
	// +optional
	GatewayRef *GatewayRef `json:"gatewayRef,omitempty"`
}

CommonRouteSpec defines the common attributes that all Routes MUST include within their spec.

func (*CommonRouteSpec) DeepCopy

func (in *CommonRouteSpec) DeepCopy() *CommonRouteSpec

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

func (*CommonRouteSpec) DeepCopyInto

func (in *CommonRouteSpec) DeepCopyInto(out *CommonRouteSpec)

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

type Condition

type Condition struct {
	State                     string `json:"state,omitempty"`
	ResourceRef               string `json:"resourceRef,omitempty"`
	LastSuccessfulResourceRef string `json:"lastSuccessfulResourceRef,omitempty"`
	ResourceHash              string `json:"resourceHash,omitempty"`
	Service                   string `json:"service,omitempty"`
}

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type DaprIO

type DaprIO struct {
	// The name of DaprIO.
	Name string `json:"name"`
	// Component indicates the name of components in Dapr
	Component string `json:"component"`
	// Topic name of mq, required when type is pubsub
	// +optional
	Topic string `json:"topic,omitempty"`
	// Parameters for dapr input/output.
	// +optional
	Params map[string]string `json:"params,omitempty"`
	// Operation field tells the Dapr component which operation it should perform.
	// +optional
	Operation string `json:"operation,omitempty"`
}

func (*DaprIO) DeepCopy

func (in *DaprIO) DeepCopy() *DaprIO

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

func (*DaprIO) DeepCopyInto

func (in *DaprIO) DeepCopyInto(out *DaprIO)

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

type Function

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

	Spec   FunctionSpec   `json:"spec,omitempty"`
	Status FunctionStatus `json:"status,omitempty"`
}

Function is the Schema for the functions API

func (*Function) ConvertFrom

func (dst *Function) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom is expected to modify its receiver to contain the converted object. Most of the conversion is straightforward copying, except for converting our changed field.

ConvertFrom converts from the Hub version (v1beta2) to this version.

func (*Function) ConvertTo

func (src *Function) ConvertTo(dstRaw conversion.Hub) error

ConvertTo is expected to modify its argument to contain the converted object. Most of the conversion is straightforward copying, except for converting our changed field.

ConvertTo converts this Function to the Hub version (v1beta2).

func (*Function) DeepCopy

func (in *Function) DeepCopy() *Function

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

func (*Function) DeepCopyInto

func (in *Function) DeepCopyInto(out *Function)

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

func (*Function) DeepCopyObject

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

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

type FunctionAddress

type FunctionAddress struct {
	// Type of the address.
	//
	Type *AddressType `json:"type"`
	// Value of the address.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=253
	Value string `json:"value"`
}

func (*FunctionAddress) DeepCopy

func (in *FunctionAddress) DeepCopy() *FunctionAddress

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

func (*FunctionAddress) DeepCopyInto

func (in *FunctionAddress) DeepCopyInto(out *FunctionAddress)

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

type FunctionList

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

FunctionList contains a list of Function

func (*FunctionList) DeepCopy

func (in *FunctionList) DeepCopy() *FunctionList

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

func (*FunctionList) DeepCopyInto

func (in *FunctionList) DeepCopyInto(out *FunctionList)

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

func (*FunctionList) DeepCopyObject

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

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

type FunctionSpec

type FunctionSpec struct {
	// WorkloadRuntime for Function. Know values:
	// “`
	// OCIContainer: Nodes will run standard OCI container workloads.
	// WasmEdge: Nodes will run workloads using the crun (with WasmEdge support).
	// “`
	// +optional
	// +kubebuilder:default="OCIContainer"
	WorkloadRuntime string `json:"workloadRuntime,omitempty"`
	// Function version in format like v1.0.0
	Version *string `json:"version,omitempty"`
	// Function image name
	Image string `json:"image"`
	// ImageCredentials references a Secret that contains credentials to access
	// the image repository.
	//
	// +optional
	ImageCredentials *v1.LocalObjectReference `json:"imageCredentials,omitempty"`
	// The port on which the function will be invoked
	Port *int32 `json:"port,omitempty"`
	// Information needed to make HTTPRoute.
	// Will attempt to make HTTPRoute using the default Gateway resource if Route is nil.
	//
	// +optional
	Route *RouteImpl `json:"route,omitempty"`
	// Information needed to build a function. The build step will be skipped if Build is nil.
	Build *BuildImpl `json:"build,omitempty"`
	// Information needed to run a function. The serving step will be skipped if `Serving` is nil.
	Serving *ServingImpl `json:"serving,omitempty"`
}

FunctionSpec defines the desired state of Function

func (*FunctionSpec) DeepCopy

func (in *FunctionSpec) DeepCopy() *FunctionSpec

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

func (*FunctionSpec) DeepCopyInto

func (in *FunctionSpec) DeepCopyInto(out *FunctionSpec)

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

type FunctionStatus

type FunctionStatus struct {
	Route   *RouteStatus `json:"route,omitempty"`
	Build   *Condition   `json:"build,omitempty"`
	Serving *Condition   `json:"serving,omitempty"`
	// Addresses holds the addresses that used to access the Function.
	// +optional
	Addresses []FunctionAddress `json:"addresses,omitempty"`
	Revision  *Revision         `json:"revision,omitempty"`
	// Sources holds the results emitted from the step definition
	// of different sources
	//
	// +optional
	Sources []SourceResult `json:"sources,omitempty"`
}

FunctionStatus defines the observed state of Function

func (*FunctionStatus) DeepCopy

func (in *FunctionStatus) DeepCopy() *FunctionStatus

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

func (*FunctionStatus) DeepCopyInto

func (in *FunctionStatus) DeepCopyInto(out *FunctionStatus)

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

type GatewayRef

type GatewayRef struct {
	// Name is the name of the referent.
	// It refers to the name of a Gateway resource.
	Name k8sgatewayapiv1alpha2.ObjectName `json:"name"`
	// Namespace is the namespace of the referent. When unspecified,
	// this refers to the local namespace of the Route.
	Namespace *k8sgatewayapiv1alpha2.Namespace `json:"namespace"`
}

func (*GatewayRef) DeepCopy

func (in *GatewayRef) DeepCopy() *GatewayRef

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

func (*GatewayRef) DeepCopyInto

func (in *GatewayRef) DeepCopyInto(out *GatewayRef)

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

type GitRepo

type GitRepo struct {
	// Git url to clone
	Url string `json:"url,omitempty"`
	// BundleContainer
	//
	// +optional
	BundleContainer *BundleContainer `json:"bundleContainer,omitempty"`
	// Git revision to check out (branch, tag, sha, ref…) (default:"")
	Revision *string `json:"revision,omitempty"`
	// A subpath within the `source` input where the source to build is located.
	SourceSubPath *string `json:"sourceSubPath,omitempty"`
	// Credentials references a Secret that contains credentials to access
	// the repository.
	//
	// +optional
	Credentials *v1.LocalObjectReference `json:"credentials,omitempty"`
}

func (*GitRepo) DeepCopy

func (in *GitRepo) DeepCopy() *GitRepo

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

func (*GitRepo) DeepCopyInto

func (in *GitRepo) DeepCopyInto(out *GitRepo)

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

func (*GitRepo) Init

func (gr *GitRepo) Init()

type GitSourceResult

type GitSourceResult struct {
	// CommitSha holds the commit sha of git source
	CommitSha string `json:"commitSha,omitempty"`

	// CommitAuthor holds the commit author of a git source
	CommitAuthor string `json:"commitAuthor,omitempty"`

	// BranchName holds the default branch name of the git source
	// this will be set only when revision is not specified in Build object
	BranchName string `json:"branchName,omitempty"`
}

GitSourceResult holds the results emitted from the git source

func (*GitSourceResult) DeepCopy

func (in *GitSourceResult) DeepCopy() *GitSourceResult

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

func (*GitSourceResult) DeepCopyInto

func (in *GitSourceResult) DeepCopyInto(out *GitSourceResult)

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

type KedaScaleOptions

type KedaScaleOptions struct {
	// +optional
	ScaledObject *KedaScaledObject `json:"scaledObject,omitempty"`
	// +optional
	ScaledJob *KedaScaledJob `json:"scaledJob,omitempty"`
}

func (*KedaScaleOptions) DeepCopy

func (in *KedaScaleOptions) DeepCopy() *KedaScaleOptions

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

func (*KedaScaleOptions) DeepCopyInto

func (in *KedaScaleOptions) DeepCopyInto(out *KedaScaleOptions)

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

type KedaScaledJob

type KedaScaledJob struct {
	// Restart policy for all containers within the pod.
	// One of 'OnFailure', 'Never'.
	// Default to 'Never'.
	// +optional
	RestartPolicy *v1.RestartPolicy `json:"restartPolicy,omitempty"`
	// +optional
	PollingInterval *int32 `json:"pollingInterval,omitempty"`
	// +optional
	SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty"`
	// +optional
	FailedJobsHistoryLimit *int32 `json:"failedJobsHistoryLimit,omitempty"`
	// +optional
	MaxReplicaCount *int32 `json:"maxReplicaCount,omitempty"`
	// +optional
	ScalingStrategy kedav1alpha1.ScalingStrategy `json:"scalingStrategy,omitempty"`
}

func (*KedaScaledJob) DeepCopy

func (in *KedaScaledJob) DeepCopy() *KedaScaledJob

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

func (*KedaScaledJob) DeepCopyInto

func (in *KedaScaledJob) DeepCopyInto(out *KedaScaledJob)

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

type KedaScaledObject

type KedaScaledObject struct {
	// How to run the function, known values are Deployment or StatefulSet, default is Deployment.
	WorkloadType string `json:"workloadType,omitempty"`
	// +optional
	PollingInterval *int32 `json:"pollingInterval,omitempty"`
	// +optional
	CooldownPeriod *int32 `json:"cooldownPeriod,omitempty"`
	// +optional
	MinReplicaCount *int32 `json:"minReplicaCount,omitempty"`
	// +optional
	MaxReplicaCount *int32 `json:"maxReplicaCount,omitempty"`
	// +optional
	Advanced *kedav1alpha1.AdvancedConfig `json:"advanced,omitempty"`
}

func (*KedaScaledObject) DeepCopy

func (in *KedaScaledObject) DeepCopy() *KedaScaledObject

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

func (*KedaScaledObject) DeepCopyInto

func (in *KedaScaledObject) DeepCopyInto(out *KedaScaledObject)

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

type Language

type Language string

type Output

type Output struct {
	// Digest holds the digest of output image
	Digest string `json:"digest,omitempty"`

	// Size holds the compressed size of output image
	Size int64 `json:"size,omitempty"`
}

Output holds the results from the output step (build-and-push)

func (*Output) DeepCopy

func (in *Output) DeepCopy() *Output

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

func (*Output) DeepCopyInto

func (in *Output) DeepCopyInto(out *Output)

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

type Revision

type Revision struct {
	ImageDigest string `json:"imageDigest,omitempty"`
}

func (*Revision) DeepCopy

func (in *Revision) DeepCopy() *Revision

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

func (*Revision) DeepCopyInto

func (in *Revision) DeepCopyInto(out *Revision)

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

type RouteImpl

type RouteImpl struct {
	CommonRouteSpec `json:",inline"`
	// Hostnames defines a set of hostname that should match against the HTTP
	// Host header to select a HTTPRoute to process the request.
	//
	// +optional
	// +kubebuilder:validation:MaxItems=16
	Hostnames []k8sgatewayapiv1alpha2.Hostname `json:"hostnames,omitempty"`
	// Rules are a list of HTTP matchers, filters and actions.
	//
	// +optional
	// +kubebuilder:validation:MaxItems=16
	Rules []k8sgatewayapiv1alpha2.HTTPRouteRule `json:"rules,omitempty"`
}

func (*RouteImpl) DeepCopy

func (in *RouteImpl) DeepCopy() *RouteImpl

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

func (*RouteImpl) DeepCopyInto

func (in *RouteImpl) DeepCopyInto(out *RouteImpl)

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

type RouteStatus

type RouteStatus struct {
	// Hosts list all actual hostnames of HTTPRoute.
	//
	// +optional
	// +kubebuilder:validation:MaxItems=16
	Hosts []k8sgatewayapiv1alpha2.Hostname `json:"hosts,omitempty"`
	// Paths list all actual paths of HTTPRoute.
	//
	// +optional
	// +kubebuilder:validation:MaxItems=16
	Paths []k8sgatewayapiv1alpha2.HTTPPathMatch `json:"paths,omitempty"`
	// Conditions describes the status of the route with respect to the Gateway.
	// Note that the route's availability is also subject to the Gateway's own
	// status conditions and listener status.
	//
	// +listType=map
	// +listMapKey=type
	// +kubebuilder:validation:MinItems=1
	// +kubebuilder:validation:MaxItems=8
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

func (*RouteStatus) DeepCopy

func (in *RouteStatus) DeepCopy() *RouteStatus

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

func (*RouteStatus) DeepCopyInto

func (in *RouteStatus) DeepCopyInto(out *RouteStatus)

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

type Runtime

type Runtime string

Runtime describes the type of the backend runtime. +kubebuilder:validation:Enum=knative;async

type ScaleOptions

type ScaleOptions struct {
	MaxReplicas *int32 `json:"maxReplicas,omitempty"`
	MinReplicas *int32 `json:"minReplicas,omitempty"`
	// +optional
	Keda *KedaScaleOptions `json:"keda,omitempty"`
	// Refer to https://knative.dev/docs/serving/autoscaling/ to
	// learn more about the autoscaling options of Knative Serving.
	// +optional
	Knative *map[string]string `json:"knative,omitempty"`
}

func (*ScaleOptions) DeepCopy

func (in *ScaleOptions) DeepCopy() *ScaleOptions

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

func (*ScaleOptions) DeepCopyInto

func (in *ScaleOptions) DeepCopyInto(out *ScaleOptions)

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

type ScaleTargetKind

type ScaleTargetKind string

ScaleTargetKind represents the kind of trigger target. +kubebuilder:validation:Enum=object;job

type Serving

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

	Spec   ServingSpec   `json:"spec,omitempty"`
	Status ServingStatus `json:"status,omitempty"`
}

Serving is the Schema for the servings API

func (*Serving) ConvertFrom

func (dst *Serving) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom is expected to modify its receiver to contain the converted object. Most of the conversion is straightforward copying, except for converting our changed field.

ConvertFrom converts from the Hub version (v1beta2) to this version.

func (*Serving) ConvertTo

func (src *Serving) ConvertTo(dstRaw conversion.Hub) error

ConvertTo is expected to modify its argument to contain the converted object. Most of the conversion is straightforward copying, except for converting our changed field.

ConvertTo converts this Function to the Hub version (v1beta2).

func (*Serving) DeepCopy

func (in *Serving) DeepCopy() *Serving

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

func (*Serving) DeepCopyInto

func (in *Serving) DeepCopyInto(out *Serving)

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

func (*Serving) DeepCopyObject

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

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

type ServingImpl

type ServingImpl struct {
	// The configuration of the backend runtime for running function.
	Runtime Runtime `json:"runtime"`
	// The ScaleOptions will help us to set up guidelines for the autoscaling of function workloads.
	// +optional
	ScaleOptions *ScaleOptions `json:"scaleOptions,omitempty"`
	// Function inputs from Dapr components including binding, pubsub
	// Available for Async Runtime only.
	// +optional
	Inputs []*DaprIO `json:"inputs,omitempty"`
	// Function outputs from Dapr components including binding, pubsub
	// +optional
	Outputs []*DaprIO `json:"outputs,omitempty"`
	// Configurations of dapr bindings components.
	// +optional
	Bindings map[string]*componentsv1alpha1.ComponentSpec `json:"bindings,omitempty"`
	// Configurations of dapr pubsub components.
	// +optional
	Pubsub map[string]*componentsv1alpha1.ComponentSpec `json:"pubsub,omitempty"`
	// Configurations of dapr state components.
	// +optional
	States map[string]*componentsv1alpha1.ComponentSpec `json:"states,omitempty"`
	// Triggers are used to specify the trigger sources of the function.
	// The Keda (ScaledObject, ScaledJob) configuration in ScaleOptions cannot take effect without Triggers being set.
	// +optional
	Triggers []Triggers `json:"triggers,omitempty"`
	// Parameters to pass to the serving.
	// All parameters will be injected into the pod as environment variables.
	// Function code can use these parameters by getting environment variables
	Params map[string]string `json:"params,omitempty"`
	// Parameters of asyncFunc runtime, must not be nil when runtime is OpenFuncAsync.
	Labels map[string]string `json:"labels,omitempty"`
	// Annotations that will be added to the workload.
	// +optional
	Annotations map[string]string `json:"annotations,omitempty"`
	// Template describes the pods that will be created.
	// The container named `function` is the container which is used to run the image built by the builder.
	// If it is not set, the controller will automatically add one.
	// +optional
	Template *v1.PodSpec `json:"template,omitempty"`
	// Timeout defines the maximum amount of time the Serving should take to execute before the Serving is running.
	// +optional
	Timeout *metav1.Duration `json:"timeout,omitempty"`
}

func (*ServingImpl) DeepCopy

func (in *ServingImpl) DeepCopy() *ServingImpl

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

func (*ServingImpl) DeepCopyInto

func (in *ServingImpl) DeepCopyInto(out *ServingImpl)

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

type ServingList

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

ServingList contains a list of Serving

func (*ServingList) DeepCopy

func (in *ServingList) DeepCopy() *ServingList

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

func (*ServingList) DeepCopyInto

func (in *ServingList) DeepCopyInto(out *ServingList)

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

func (*ServingList) DeepCopyObject

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

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

type ServingSpec

type ServingSpec struct {
	// Function version in format like v1.0.0
	Version *string `json:"version,omitempty"`
	// Function image name
	Image string `json:"image"`
	// ImageCredentials references a Secret that contains credentials to access
	// the image repository.
	// +optional
	ImageCredentials *v1.LocalObjectReference `json:"imageCredentials,omitempty"`
	// The port on which the function will be invoked
	Port *int32 `json:"port,omitempty"`
	// The configuration of the backend runtime for running function.
	Runtime Runtime `json:"runtime"`
	// Function inputs from Dapr components including binding, pubsub
	// Available for Async Runtime only.
	// +optional
	Inputs []*DaprIO `json:"inputs,omitempty"`
	// Function outputs from Dapr components including binding, pubsub
	// +optional
	Outputs []*DaprIO `json:"outputs,omitempty"`
	// The ScaleOptions will help us to set up guidelines for the autoscaling of function workloads.
	// +optional
	ScaleOptions *ScaleOptions `json:"scaleOptions,omitempty"`
	// Configurations of dapr bindings components.
	// +optional
	Bindings map[string]*componentsv1alpha1.ComponentSpec `json:"bindings,omitempty"`
	// Configurations of dapr pubsub components.
	// +optional
	Pubsub map[string]*componentsv1alpha1.ComponentSpec `json:"pubsub,omitempty"`
	// Configurations of dapr state components.
	// +optional
	States map[string]*componentsv1alpha1.ComponentSpec `json:"states,omitempty"`
	// Triggers are used to specify the trigger sources of the function.
	// The Keda (ScaledObject, ScaledJob) configuration in ScaleOptions cannot take effect without Triggers being set.
	// +optional
	Triggers []Triggers `json:"triggers,omitempty"`
	// Parameters to pass to the serving.
	// All parameters will be injected into the pod as environment variables.
	// Function code can use these parameters by getting environment variables
	Params map[string]string `json:"params,omitempty"`
	// Parameters of OpenFuncAsync runtime.
	// +optional
	Labels map[string]string `json:"labels,omitempty"`
	// Annotations that will be add to the workload.
	// +optional
	Annotations map[string]string `json:"annotations,omitempty"`
	// Template describes the pods that will be created.
	// The container named `function` is the container which is used to run the image built by the builder.
	// If it is not set, the controller will automatically add one.
	// +optional
	Template *v1.PodSpec `json:"template,omitempty"`
	// Timeout defines the maximum amount of time the Serving should take to execute before the Serving is running.
	// +optional
	Timeout *metav1.Duration `json:"timeout,omitempty"`
}

ServingSpec defines the desired state of Serving

func (*ServingSpec) DeepCopy

func (in *ServingSpec) DeepCopy() *ServingSpec

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

func (*ServingSpec) DeepCopyInto

func (in *ServingSpec) DeepCopyInto(out *ServingSpec)

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

type ServingStatus

type ServingStatus struct {
	Phase string `json:"phase,omitempty"`
	State string `json:"state,omitempty"`
	// Associate resources.
	ResourceRef map[string]string `json:"resourceRef,omitempty"`
	// Service holds the service name used to access the serving.
	// +optional
	Service string `json:"url,omitempty"`
}

ServingStatus defines the observed state of Serving

func (*ServingStatus) DeepCopy

func (in *ServingStatus) DeepCopy() *ServingStatus

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

func (*ServingStatus) DeepCopyInto

func (in *ServingStatus) DeepCopyInto(out *ServingStatus)

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

func (*ServingStatus) IsStarting

func (s *ServingStatus) IsStarting() bool

type ShipwrightEngine

type ShipwrightEngine struct {
	// Strategy references the BuildStrategy to use to build the image.
	// +optional
	Strategy *Strategy `json:"strategy,omitempty"`
	// Timeout defines the maximum amount of time the Build should take to execute.
	//
	// +optional
	// +kubebuilder:validation:Format=duration
	Timeout *metav1.Duration `json:"timeout,omitempty"`
}

func (*ShipwrightEngine) DeepCopy

func (in *ShipwrightEngine) DeepCopy() *ShipwrightEngine

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

func (*ShipwrightEngine) DeepCopyInto

func (in *ShipwrightEngine) DeepCopyInto(out *ShipwrightEngine)

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

type SourceResult

type SourceResult struct {
	// Name is the name of source
	Name string `json:"name"`

	// Git holds the results emitted from from the
	// step definition of a git source
	//
	// +optional
	Git *GitSourceResult `json:"git,omitempty"`

	// Bundle holds the results emitted from from the
	// step definition of bundle source
	//
	// +optional
	Bundle *BundleSourceResult `json:"bundle,omitempty"`
}

SourceResult holds the results emitted from the different sources

func (*SourceResult) DeepCopy

func (in *SourceResult) DeepCopy() *SourceResult

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

func (*SourceResult) DeepCopyInto

func (in *SourceResult) DeepCopyInto(out *SourceResult)

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

type Strategy

type Strategy struct {
	// Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
	Name string `json:"name"`
	// BuildStrategyKind indicates the kind of the build strategy BuildStrategy or ClusterBuildStrategy, default to BuildStrategy.
	Kind *string `json:"kind,omitempty"`
}

func (*Strategy) DeepCopy

func (in *Strategy) DeepCopy() *Strategy

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

func (*Strategy) DeepCopyInto

func (in *Strategy) DeepCopyInto(out *Strategy)

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

type Triggers

type Triggers struct {
	kedav1alpha1.ScaleTriggers `json:",inline"`
	// +optional
	TargetKind *ScaleTargetKind `json:"targetKind,omitempty"`
}

func (*Triggers) DeepCopy

func (in *Triggers) DeepCopy() *Triggers

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

func (*Triggers) DeepCopyInto

func (in *Triggers) DeepCopyInto(out *Triggers)

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