v1alpha1

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group. +kubebuilder:object:generate=true +groupName=functions.dev

Index

Constants

View Source
const (
	// TypeReady indicates overall readiness (summary condition)
	TypeReady = "Ready"

	// TypeSourceReady indicates git source was cloned successfully
	TypeSourceReady = "SourceReady"

	// TypeDeployed indicates function is deployed
	TypeDeployed = "Deployed"

	// TypeMiddlewareUpToDate indicates middleware is current
	TypeMiddlewareUpToDate = "MiddlewareUpToDate"
)

Condition types

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "functions.dev", Version: "v1alpha1"}

	// 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 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) CalculateReadyCondition

func (f *Function) CalculateReadyCondition()

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.

func (*Function) InitializeConditions

func (f *Function) InitializeConditions()

InitializeConditions resets all conditions to ensure a fresh start for each reconcile. This prevents stale conditions from previous reconciles from persisting.

func (*Function) MarkDeployNotReady

func (f *Function) MarkDeployNotReady(reason, messageFormat string, messageA ...interface{}) bool

func (*Function) MarkDeployReady

func (f *Function) MarkDeployReady() bool

func (*Function) MarkFinalizeFailed

func (f *Function) MarkFinalizeFailed(err error) bool

func (*Function) MarkMiddlewareNotUpToDate

func (f *Function) MarkMiddlewareNotUpToDate(reason, messageFormat string, messageA ...interface{}) bool

func (*Function) MarkMiddlewareUpToDate

func (f *Function) MarkMiddlewareUpToDate() bool

func (*Function) MarkNotReady

func (f *Function) MarkNotReady(reason, messageFormat string, messageA ...interface{}) bool

func (*Function) MarkReady

func (f *Function) MarkReady() bool

func (*Function) MarkSourceNotReady

func (f *Function) MarkSourceNotReady(reason, messageFormat string, messageA ...interface{}) bool

func (*Function) MarkSourceReady

func (f *Function) MarkSourceReady() bool

func (*Function) MarkTerminating

func (f *Function) MarkTerminating() bool

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 {
	Source   FunctionSpecSource   `json:"source,omitempty"`
	Registry FunctionSpecRegistry `json:"registry,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 FunctionSpecRegistry

type FunctionSpecRegistry struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	Path string `json:"path"`

	Insecure bool `json:"insecure,omitempty"`

	AuthSecretRef *v1.LocalObjectReference `json:"authSecretRef,omitempty"`
}

func (*FunctionSpecRegistry) DeepCopy

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

func (*FunctionSpecRegistry) DeepCopyInto

func (in *FunctionSpecRegistry) DeepCopyInto(out *FunctionSpecRegistry)

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

type FunctionSpecSource

type FunctionSpecSource struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	RepositoryURL string `json:"repositoryUrl"`

	// +kubebuilder:validation:Optional
	Reference string `json:"reference"`

	AuthSecretRef *v1.LocalObjectReference `json:"authSecretRef,omitempty"`
}

func (*FunctionSpecSource) DeepCopy

func (in *FunctionSpecSource) DeepCopy() *FunctionSpecSource

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

func (*FunctionSpecSource) DeepCopyInto

func (in *FunctionSpecSource) DeepCopyInto(out *FunctionSpecSource)

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

type FunctionStatus

type FunctionStatus struct {
	Name    string `json:"name"`
	Runtime string `json:"runtime"`

	Conditions []metav1.Condition `json:"conditions,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.

Jump to

Keyboard shortcuts

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