Documentation ¶
Overview ¶
Package v1beta1 contains the input type for this Function +kubebuilder:object:generate=true +groupName=template.fn.crossplane.io +versionName=v1beta1
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KCLInput ¶
type KCLInput struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RunSpec `json:"spec,omitempty" yaml:"spec,omitempty"` }
KCLInput can be used to provide input to this Function. +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:resource:categories=crossplane
func (*KCLInput) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KCLInput.
func (*KCLInput) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KCLInput) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Resource ¶
type Resource struct { // Name is a unique identifier for this entry in a ResourceList Name string `json:"name"` // Base of the composed resource that patches will be applied to. // According to the patches and transforms functions, this may be ommited on // occassion by a previous pipeline // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:EmbeddedResource // +optional Base *runtime.RawExtension `json:"base,omitempty"` }
func (*Resource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource.
func (*Resource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceList ¶
type ResourceList []Resource
func (ResourceList) DeepCopy ¶
func (in ResourceList) DeepCopy() ResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceList.
func (ResourceList) DeepCopyInto ¶
func (in ResourceList) DeepCopyInto(out *ResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RunSpec ¶
type RunSpec struct { // Source is a required field for providing a KCL script inline. Source string `json:"source" yaml:"source"` // Params are the parameters in key-value pairs format. Params map[string]runtime.RawExtension `json:"params,omitempty" yaml:"params,omitempty"` // Resources is a list of resources to patch and create // This is utilized when a Target is set to PatchResources Resources ResourceList `json:"resources,omitempty"` // Target determines what object the export output should be applied to // +kubebuilder:default:=Resources // +kubebuilder:validation:Enum:=PatchDesired;PatchResources;Resources;XR Target resource.Target `json:"target"` }
RunSpec defines the desired state of Crossplane KCL function.
func (*RunSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunSpec.
func (*RunSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.