Help us shape the future of Go! Take the 2026 Go Developer Survey

v1beta1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package v1beta1 contains the input type for this Function +kubebuilder:object:generate=true +groupName=cel.fn.crossplane.io +versionName=v1beta1

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	// Name of the desired composed resource(s) this filter should match.
	//
	// Use regular expressions to match multiple resources. Expressions are
	// automatically prefixed with ^ and suffixed with $. For example 'buck.*'
	// becomes '^buck.*$'. See https://github.com/google/re2/wiki/Syntax.
	Name string `json:"name"`

	// Expression is a CEL expression. See https://github.com/google/cel-spec.
	// The following top-level variables are available to the expression:
	//
	// * observed
	// * desired
	// * context
	//
	// Example expressions:
	//
	// * observed.composite.resource.spec.widgets == 42
	// * observed.resources['composed'].connection_details['user'] == b'admin'
	// * desired.resources['composed'].resource.spec.widgets == 42
	//
	// See the RunFunctionRequest protobuf message for schema details.
	// https://buf.build/crossplane/crossplane/docs/main:apiextensions.fn.proto.v1beta1
	Expression string `json:"expression"`
}

A Filter can be used to filter a desired composed resource produced by a previous function in the pipeline.

func (*Filter) DeepCopy

func (in *Filter) DeepCopy() *Filter

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

func (*Filter) DeepCopyInto

func (in *Filter) DeepCopyInto(out *Filter)

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

type Filters

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

	// Filters to apply to the desired composed resources produced by previous
	// functions in the pipeline. Each filter matches a desired composed
	// resource by name. If the expression evaluates to true, the composed
	// resource will be included. Desired composed resources that don't match
	// any filter are always included.
	Filters []Filter `json:"filters"`
}

Filters can be used to filter desired composed resources. +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:resource:categories=crossplane

func (*Filters) DeepCopy

func (in *Filters) DeepCopy() *Filters

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

func (*Filters) DeepCopyInto

func (in *Filters) DeepCopyInto(out *Filters)

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

func (*Filters) DeepCopyObject

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

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

Jump to

Keyboard shortcuts

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