v1alpha1

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

View Source
const FieldRefDefault = ""

FieldRefDefault optional value result returned for an Optional FieldRef. Defaults to an empty string

View Source
const FieldRefPolicyOptional = "Optional"

FieldRefPolicyOptional if the field is not available use the value of FieldRefDefault

View Source
const FieldRefPolicyRequired = "Required"

FieldRefPolicyRequired will error if the field is not available

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldRef added in v0.5.0

type FieldRef struct {
	// Path is the field path of the field being referenced, i.e. spec.myfield, status.output
	Path string `json:"path"`
	// Policy when the field is not available. If set to "Required" will return
	// an error if a field is missing. If set to "Optional" will return DefaultValue.
	// +optional
	// +kubebuilder:default:=Required
	// +kubebuilder:validation:Enum=Optional;Required
	Policy FieldRefPolicy `json:"policy,omitempty"`
	// DefaultValue when Policy is Optional and field is not available defaults to ""
	// +optional
	// +kbuebuilder:default:=""
	DefaultValue string `json:"defaultValue,omitempty"`
}

func (*FieldRef) DeepCopy added in v0.5.0

func (in *FieldRef) DeepCopy() *FieldRef

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

func (*FieldRef) DeepCopyInto added in v0.5.0

func (in *FieldRef) DeepCopyInto(out *FieldRef)

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

type FieldRefPolicy added in v0.5.0

type FieldRefPolicy string

FieldRefPolicy is a field path Policy

type Parameters

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

	// shellEnvVarsRef
	// +optional
	ShellEnvVarsRef ShellEnvVarsRef `json:"shellEnvVarsRef,omitempty"`

	// shellEnvVars
	// +optional
	ShellEnvVars []ShellEnvVar `json:"shellEnvVars,omitempty"`

	// shellCmd
	// +optional
	ShellCommand string `json:"shellCommand,omitempty"`

	// shellCmdField
	// +optional
	ShellCommandField string `json:"shellCommandField,omitempty"`

	// stdoutField
	// +optional
	StdoutField string `json:"stdoutField,omitempty"`

	// stderrField
	// +optional
	StderrField string `json:"stderrField,omitempty"`

	// TTL for response cache. Function Response caching is an
	// alpha feature in Crossplane can be deprecated or changed
	// in the future.
	// +optional
	// +kubebuilder:default:="1m"
	CacheTTL string `json:"cacheTTL,omitempty"`
}

Input can be used to provide input to this Function. +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:resource:categories=crossplane

func (*Parameters) DeepCopy

func (in *Parameters) DeepCopy() *Parameters

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

func (*Parameters) DeepCopyInto

func (in *Parameters) DeepCopyInto(out *Parameters)

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

func (*Parameters) DeepCopyObject

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

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

type ShellEnvVar

type ShellEnvVar struct {
	Key      string `json:"key,omitempty"`
	Value    string `json:"value,omitempty"`
	ValueRef string `json:"valueRef,omitempty"`
	// FieldRef is a reference to a field in the Composition
	FieldRef *FieldRef       `json:"fieldRef,omitempty"`
	Type     ShellEnvVarType `json:"type,omitempty"`
}

func (*ShellEnvVar) DeepCopy

func (in *ShellEnvVar) DeepCopy() *ShellEnvVar

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

func (*ShellEnvVar) DeepCopyInto

func (in *ShellEnvVar) DeepCopyInto(out *ShellEnvVar)

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

func (*ShellEnvVar) GetType added in v0.5.0

func (sev *ShellEnvVar) GetType() ShellEnvVarType

GetType determines the ShellEnvVar type

type ShellEnvVarType added in v0.5.0

type ShellEnvVarType string

ShellEnvVarType is a type of ShellEnvVar

const (
	ShellEnvVarTypeFieldRef ShellEnvVarType = "FieldRef"
	ShellEnvVarTypeValue    ShellEnvVarType = "Value"
	ShellEnvVarTypeValueRef ShellEnvVarType = "ValueRef"
)

type ShellEnvVarsRef

type ShellEnvVarsRef struct {
	// The Key whose value is the secret
	Keys []string `json:"keys,omitempty"`
	// Name of the environment variable
	Name string `json:"name,omitempty"`
}

func (*ShellEnvVarsRef) DeepCopy

func (in *ShellEnvVarsRef) DeepCopy() *ShellEnvVarsRef

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

func (*ShellEnvVarsRef) DeepCopyInto

func (in *ShellEnvVarsRef) DeepCopyInto(out *ShellEnvVarsRef)

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