Documentation
¶
Overview ¶
Package v1alpha1 contains the input type for this Function +kubebuilder:object:generate=true +groupName=template.fn.crossplane.io +versionName=v1alpha1
Index ¶
Constants ¶
const FieldRefDefault = ""
FieldRefDefault optional value result returned for an Optional FieldRef. Defaults to an empty string
const FieldRefPolicyOptional = "Optional"
FieldRefPolicyOptional if the field is not available use the value of FieldRefDefault
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
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FieldRef.
func (*FieldRef) DeepCopyInto ¶ added in v0.5.0
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.