Documentation ¶
Overview ¶
Package v1beta2 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
- Variables
- type AddressType
- type BuildImpl
- type Builder
- type BuilderList
- type BuilderOutput
- type BuilderSpec
- type BuilderState
- type BuilderStatus
- type BundleContainer
- type BundleSourceResult
- type CommonRouteSpec
- type Condition
- type DaprComponentRef
- type DaprInput
- type DaprOutput
- type DaprTrigger
- type Exporter
- type Function
- func (in *Function) DeepCopy() *Function
- func (in *Function) DeepCopyInto(out *Function)
- func (in *Function) DeepCopyObject() runtime.Object
- func (r *Function) Default()
- func (r Function) HandleWorkloadRuntime()
- func (*Function) Hub()
- func (r *Function) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Function) Validate() error
- func (r *Function) ValidateBuild() error
- func (r *Function) ValidateCreate() error
- func (r *Function) ValidateDelete() error
- func (r *Function) ValidateKedaScaledJobScalingStrategy() error
- func (r *Function) ValidateKedaScaledObjectAdvanced() error
- func (r *Function) ValidateServing() error
- func (r *Function) ValidateUpdate(_ runtime.Object) error
- type FunctionAddress
- type FunctionList
- type FunctionSpec
- type FunctionStatus
- type GatewayRef
- type GitRepo
- type GitSourceResult
- type Hooks
- type HttpTrigger
- type Input
- type KedaScaleOptions
- type KedaScaledJob
- type KedaScaledObject
- type Language
- type Output
- type ParamValue
- type Revision
- type RouteImpl
- type RouteStatus
- type ScaleOptions
- type Serving
- type ServingImpl
- type ServingList
- type ServingSpec
- type ServingStatus
- type ShipwrightEngine
- type SingleValue
- type SourceResult
- type State
- type Strategy
- type TracingConfig
- type TracingProvider
- type Triggers
Constants ¶
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" )
const ( HookPolicyAppend = "Append" HookPolicyOverride = "Override" WorkloadTypeJob = "Job" WorkloadTypeStatefulSet = "StatefulSet" WorkloadTypeDeployment = "Deployment" )
const ( // BuilderStateCancelled indicates a user's intent to stop the build process if not // already canceled or terminated BuilderStateCancelled = "Cancelled" )
Variables ¶
var ( HPAScalingPolicyTypes = map[v2beta2.HPAScalingPolicyType]bool{ v2beta2.PodsScalingPolicy: true, v2beta2.PercentScalingPolicy: true, } HPAScalingPolicyTypesSlice = convertMapKeysToStringSlice(HPAScalingPolicyTypes) )
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "core.openfunction.io", Version: "v1beta2"} // 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"` // 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildImpl.
func (*BuildImpl) DeepCopyInto ¶
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) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Builder.
func (*Builder) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Builder) DeepCopyObject ¶
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 BuilderOutput ¶
type BuilderOutput 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"` }
BuilderOutput holds the results from the output step (build-and-push)
func (*BuilderOutput) DeepCopy ¶
func (in *BuilderOutput) DeepCopy() *BuilderOutput
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuilderOutput.
func (*BuilderOutput) DeepCopyInto ¶
func (in *BuilderOutput) DeepCopyInto(out *BuilderOutput)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BuilderSpec ¶
type BuilderSpec struct { // 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"` // State is used for canceling a buildrun (and maybe more later on). // +optional State BuilderState `json:"state,omitempty"` BuildImpl `json:",inline"` }
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"` Message string `json:"message,omitempty"` BuildDuration *metav1.Duration `json:"buildDuration,omitempty"` // Associate resources. ResourceRef map[string]string `json:"resourceRef,omitempty"` // Output holds the results emitted from step definition of an output // // +optional Output *BuilderOutput `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"` Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` ResourceRef string `json:"resourceRef,omitempty"` LastSuccessfulResourceRef string `json:"lastSuccessfulResourceRef,omitempty"` ResourceHash string `json:"resourceHash,omitempty"` Service string `json:"service,omitempty"` BuildDuration *metav1.Duration `json:"buildDuration,omitempty"` }
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DaprComponentRef ¶
type DaprComponentRef struct { // The name of the dapr component, the component can be defined in // the `bindings`, `pubsub`, or `states`, or an existing component. Name string `json:"name"` // Type is the type of the component, if it is not set, controller will get it automatically. Type string `json:"type,omitempty"` Topic string `json:"topic,omitempty"` }
func (*DaprComponentRef) DeepCopy ¶
func (in *DaprComponentRef) DeepCopy() *DaprComponentRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaprComponentRef.
func (*DaprComponentRef) DeepCopyInto ¶
func (in *DaprComponentRef) DeepCopyInto(out *DaprComponentRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DaprInput ¶
type DaprInput struct {
*DaprComponentRef `json:",inline"`
}
func (*DaprInput) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaprInput.
func (*DaprInput) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DaprOutput ¶
type DaprOutput struct { *DaprComponentRef `json:",inline"` // Metadata is the metadata for dapr Com. // +optional Metadata map[string]string `json:"metadata,omitempty"` // Operation field tells the Dapr component which operation it should perform. // +optional Operation string `json:"operation,omitempty"` // Deprecated: Only for compatibility with v1beta1 OutputName string `json:"outputName,omitempty"` }
func (*DaprOutput) DeepCopy ¶
func (in *DaprOutput) DeepCopy() *DaprOutput
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaprOutput.
func (*DaprOutput) DeepCopyInto ¶
func (in *DaprOutput) DeepCopyInto(out *DaprOutput)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DaprTrigger ¶
type DaprTrigger struct { *DaprComponentRef `json:",inline"` // Deprecated: Only for compatibility with v1beta1 InputName string `json:"inputName,omitempty"` }
func (*DaprTrigger) DeepCopy ¶
func (in *DaprTrigger) DeepCopy() *DaprTrigger
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaprTrigger.
func (*DaprTrigger) DeepCopyInto ¶
func (in *DaprTrigger) DeepCopyInto(out *DaprTrigger)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Exporter ¶
type Exporter struct { Name string `json:"name" yaml:"name"` Endpoint string `json:"endpoint" yaml:"endpoint"` Headers string `json:"headers,omitempty" yaml:"headers,omitempty"` Compression string `json:"compression,omitempty" yaml:"compression,omitempty"` Timeout string `json:"timeout,omitempty" yaml:"timeout,omitempty"` Protocol string `json:"protocol,omitempty" yaml:"protocol,omitempty"` }
func (*Exporter) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Exporter.
func (*Exporter) DeepCopyInto ¶
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) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Function.
func (*Function) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Function) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Function) Default ¶
func (r *Function) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (Function) HandleWorkloadRuntime ¶
func (r Function) HandleWorkloadRuntime()
func (*Function) SetupWebhookWithManager ¶
func (*Function) ValidateBuild ¶
func (*Function) ValidateCreate ¶
func (*Function) ValidateDelete ¶
func (*Function) ValidateKedaScaledJobScalingStrategy ¶
func (*Function) ValidateKedaScaledObjectAdvanced ¶
func (*Function) ValidateServing ¶
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"` // 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepo.
func (*GitRepo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 Hooks ¶
type Hooks struct { Pre []string `json:"pre,omitempty"` Post []string `json:"post,omitempty"` Policy string `json:"policy,omitempty"` }
func (*Hooks) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Hooks.
func (*Hooks) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HttpTrigger ¶
type HttpTrigger struct { // 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"` }
func (*HttpTrigger) DeepCopy ¶
func (in *HttpTrigger) DeepCopy() *HttpTrigger
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HttpTrigger.
func (*HttpTrigger) DeepCopyInto ¶
func (in *HttpTrigger) DeepCopyInto(out *HttpTrigger)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Input ¶
type Input struct {
Dapr *DaprInput `json:"dap,omitemptyr"`
}
func (*Input) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Input.
func (*Input) DeepCopyInto ¶
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"` // 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 []kedav1alpha1.ScaleTriggers `json:"triggers,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 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 { // +optional PollingInterval *int32 `json:"pollingInterval,omitempty"` // +optional CooldownPeriod *int32 `json:"cooldownPeriod,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 Output ¶
type Output struct {
Dapr *DaprOutput `json:"dapr,omitempty"`
}
func (*Output) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Output.
func (*Output) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParamValue ¶
type ParamValue struct { // Inline the properties of a value // +optional *SingleValue `json:",inline"` // Name of the parameter // +required Name string `json:"name"` // Values of an array parameter // +optional Values []SingleValue `json:"values,omitempty"` }
ParamValue is a key/value that populates a strategy parameter used in the execution of the strategy steps
func (*ParamValue) DeepCopy ¶
func (in *ParamValue) DeepCopy() *ParamValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamValue.
func (*ParamValue) DeepCopyInto ¶
func (in *ParamValue) DeepCopyInto(out *ParamValue)
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Revision.
func (*Revision) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteImpl.
func (*RouteImpl) DeepCopyInto ¶
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 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 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) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Serving.
func (*Serving) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Serving) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServingImpl ¶
type ServingImpl struct { // Triggers used to trigger the Function. // +optional Triggers *Triggers `json:"triggers,omitempty"` // The ScaleOptions will help us to set up guidelines for the autoscaling of function workloads. // +optional ScaleOptions *ScaleOptions `json:"scaleOptions,omitempty"` // Function outputs from Dapr components including binding, pubsub // +optional Outputs []*Output `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. // It can refer to an existing state when the `state.spec` is nil. // +optional States map[string]*State `json:"states,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"` // Hooks define the hooks that will execute before or after function execution. // +optional Hooks *Hooks `json:"hooks,omitempty"` // Tracing is the config of tracing. // +optional Tracing *TracingConfig `json:"tracing,omitempty"` // How to run the function, known values are Deployment or StatefulSet, default is Deployment. WorkloadType string `json:"workloadType,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"` ServingImpl `json:",inline"` }
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"` Reason string `json:"reason,omitempty"` Message string `json:"message,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"` // 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 []*ParamValue `json:"params,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 SingleValue ¶
type SingleValue struct { // The value of the parameter // +optional Value *string `json:"value"` // The ConfigMap value of the parameter // +optional ConfigMapValue *shipwrightv1alpha1.ObjectKeyRef `json:"configMapValue,omitempty"` // The secret value of the parameter // +optional SecretValue *shipwrightv1alpha1.ObjectKeyRef `json:"secretValue,omitempty"` }
SingleValue is the value type contains the properties for a value, this allows for an easy extension in the future to support more kinds
func (*SingleValue) DeepCopy ¶
func (in *SingleValue) DeepCopy() *SingleValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SingleValue.
func (*SingleValue) DeepCopyInto ¶
func (in *SingleValue) DeepCopyInto(out *SingleValue)
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 State ¶
type State struct {
Spec *componentsv1alpha1.ComponentSpec `json:"spec,omitempty"`
}
func (*State) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new State.
func (*State) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Strategy.
func (*Strategy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TracingConfig ¶
type TracingConfig struct { Enabled bool `json:"enabled" yaml:"enabled"` Provider *TracingProvider `json:"provider" yaml:"provider"` Tags map[string]string `json:"tags,omitempty" yaml:"tags,omitempty"` Baggage map[string]string `json:"baggage" yaml:"baggage"` }
func (*TracingConfig) DeepCopy ¶
func (in *TracingConfig) DeepCopy() *TracingConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TracingConfig.
func (*TracingConfig) DeepCopyInto ¶
func (in *TracingConfig) DeepCopyInto(out *TracingConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TracingProvider ¶
type TracingProvider struct { Name string `json:"name" yaml:"name"` OapServer string `json:"oapServer,omitempty" yaml:"oapServer,omitempty"` Exporter *Exporter `json:"exporter,omitempty" yaml:"exporter,omitempty"` }
func (*TracingProvider) DeepCopy ¶
func (in *TracingProvider) DeepCopy() *TracingProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TracingProvider.
func (*TracingProvider) DeepCopyInto ¶
func (in *TracingProvider) DeepCopyInto(out *TracingProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Triggers ¶
type Triggers struct { Http *HttpTrigger `json:"http,omitempty"` Dapr []*DaprTrigger `json:"dapr,omitempty"` Inputs []*Input `json:"inputs,omitempty"` }
func (*Triggers) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Triggers.
func (*Triggers) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.