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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Filter.
func (*Filter) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Filters.
func (*Filters) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Filters) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.