Documentation ¶
Overview ¶
Package v1alpha1 contains API types that extend the Crossplane API. +kubebuilder:object:generate=true +groupName=apiextensions.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- func TerminatingClaim() runtimev1alpha1.Condition
- func TerminatingComposite() runtimev1alpha1.Condition
- func WatchingClaim() runtimev1alpha1.Condition
- func WatchingComposite() runtimev1alpha1.Condition
- type CRDSpecTemplate
- type ComposedTemplate
- type CompositeResourceDefinition
- func (in *CompositeResourceDefinition) DeepCopy() *CompositeResourceDefinition
- func (in *CompositeResourceDefinition) DeepCopyInto(out *CompositeResourceDefinition)
- func (in *CompositeResourceDefinition) DeepCopyObject() runtime.Object
- func (in CompositeResourceDefinition) GetClaimGroupVersionKind() schema.GroupVersionKind
- func (in CompositeResourceDefinition) GetCompositeGroupVersionKind() schema.GroupVersionKind
- func (in *CompositeResourceDefinition) GetConnectionSecretKeys() []string
- func (in CompositeResourceDefinition) OffersClaim() bool
- type CompositeResourceDefinitionList
- type CompositeResourceDefinitionSpec
- type CompositeResourceDefinitionStatus
- type Composition
- type CompositionList
- type CompositionSpec
- type CompositionStatus
- type ConnectionDetail
- type CustomResourceDefinitionVersion
- type CustomResourceValidation
- type MapTransform
- type MathTransform
- type Patch
- type ReadinessCheck
- type StringTransform
- type Transform
- type TransformType
- type TypeReadinessCheck
- type TypeReference
Constants ¶
const ( // A TypeEstablished XRD has created the CRD for its composite resource and // started a controller to reconcile instances of said resource. TypeEstablished runtimev1alpha1.ConditionType = "Established" // A TypeOffered XRD has created the CRD for its composite resource claim // and started a controller to reconcile instances of said claim. TypeOffered runtimev1alpha1.ConditionType = "Offered" )
Condition types.
const ( ReasonWatchingComposite runtimev1alpha1.ConditionReason = "WatchingCompositeResource" ReasonWatchingClaim runtimev1alpha1.ConditionReason = "WatchingCompositeResourceClaim" ReasonTerminatingComposite runtimev1alpha1.ConditionReason = "TerminatingCompositeResource" ReasonTerminatingClaim runtimev1alpha1.ConditionReason = "TerminatingCompositeResourceClaim" )
Reasons a resource is or is not established or offered.
const ( Group = "apiextensions.crossplane.io" Version = "v1alpha1" )
Package type metadata.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme adds all registered types to scheme AddToScheme = SchemeBuilder.AddToScheme )
var ( CompositeResourceDefinitionKind = reflect.TypeOf(CompositeResourceDefinition{}).Name() CompositeResourceDefinitionGroupKind = schema.GroupKind{Group: Group, Kind: CompositeResourceDefinitionKind}.String() CompositeResourceDefinitionKindAPIVersion = CompositeResourceDefinitionKind + "." + SchemeGroupVersion.String() CompositeResourceDefinitionGroupVersionKind = SchemeGroupVersion.WithKind(CompositeResourceDefinitionKind) )
InCompositeResourceDefinition type metadata.
var ( CompositionKind = reflect.TypeOf(Composition{}).Name() CompositionGroupKind = schema.GroupKind{Group: Group, Kind: CompositionKind}.String() CompositionKindAPIVersion = CompositionKind + "." + SchemeGroupVersion.String() CompositionGroupVersionKind = SchemeGroupVersion.WithKind(CompositionKind) )
Composition type metadata.
Functions ¶
func TerminatingClaim ¶ added in v0.13.0
func TerminatingClaim() runtimev1alpha1.Condition
TerminatingClaim indicates that Crossplane is terminating the controller and removing the definition of a composite resource claim.
func TerminatingComposite ¶ added in v0.13.0
func TerminatingComposite() runtimev1alpha1.Condition
TerminatingComposite indicates that Crossplane is terminating the controller for and removing the definition of a composite resource.
func WatchingClaim ¶ added in v0.13.0
func WatchingClaim() runtimev1alpha1.Condition
WatchingClaim indicates that Crossplane has defined and is watching for a new kind of composite resource claim.
func WatchingComposite ¶ added in v0.13.0
func WatchingComposite() runtimev1alpha1.Condition
WatchingComposite indicates that Crossplane has defined and is watching for a new kind of composite resource.
Types ¶
type CRDSpecTemplate ¶
type CRDSpecTemplate struct { // group is the API group of the defined custom resource. // The custom resources are served under `/apis/<group>/...`. // Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Group string `json:"group"` // version is the API version of the defined custom resource. // The custom resources are served under `/apis/<group>/<version>/...`. // Must match the name of the first item in the `versions` list if `version` and `versions` are both specified. // Optional if `versions` is specified. // Deprecated: use `versions` instead. // +optional Version string `json:"version,omitempty"` // names specify the resource and kind names for the custom resource. Names v1beta1.CustomResourceDefinitionNames `json:"names"` // validation describes the schema used for validation and pruning of the custom resource. // If present, this validation schema is used to validate all versions. // Top-level and per-version schemas are mutually exclusive. // +optional Validation *CustomResourceValidation `json:"validation,omitempty"` // additionalPrinterColumns specifies additional columns returned in Table output. // See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. // If present, this field configures columns for all versions. // Top-level and per-version columns are mutually exclusive. // If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. // +optional AdditionalPrinterColumns []v1beta1.CustomResourceColumnDefinition `json:"additionalPrinterColumns,omitempty"` }
A CRDSpecTemplate is a template for a v1beta1.CustomResourceDefinitionSpec.
func (*CRDSpecTemplate) DeepCopy ¶
func (in *CRDSpecTemplate) DeepCopy() *CRDSpecTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CRDSpecTemplate.
func (*CRDSpecTemplate) DeepCopyInto ¶
func (in *CRDSpecTemplate) DeepCopyInto(out *CRDSpecTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ComposedTemplate ¶
type ComposedTemplate struct { // Base is the target resource that the patches will be applied on. Base runtime.RawExtension `json:"base"` // Patches will be applied as overlay to the base resource. // +optional Patches []Patch `json:"patches,omitempty"` // ConnectionDetails lists the propagation secret keys from this target // resource to the composition instance connection secret. // +optional ConnectionDetails []ConnectionDetail `json:"connectionDetails,omitempty"` // ReadinessChecks allows users to define custom readiness checks. All checks // have to return true in order for resource to be considered ready. The // default readiness check is to have the "Ready" condition to be "True". // +optional ReadinessChecks []ReadinessCheck `json:"readinessChecks,omitempty"` }
ComposedTemplate is used to provide information about how the composed resource should be processed.
func (*ComposedTemplate) DeepCopy ¶
func (in *ComposedTemplate) DeepCopy() *ComposedTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComposedTemplate.
func (*ComposedTemplate) DeepCopyInto ¶
func (in *ComposedTemplate) DeepCopyInto(out *ComposedTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CompositeResourceDefinition ¶ added in v0.13.0
type CompositeResourceDefinition struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CompositeResourceDefinitionSpec `json:"spec,omitempty"` Status CompositeResourceDefinitionStatus `json:"status,omitempty"` }
An CompositeResourceDefinition defines a new kind of composite infrastructure resource. The new resource is composed of other composite or managed infrastructure resources. +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories=crossplane,shortName=xrd
func (*CompositeResourceDefinition) DeepCopy ¶ added in v0.13.0
func (in *CompositeResourceDefinition) DeepCopy() *CompositeResourceDefinition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositeResourceDefinition.
func (*CompositeResourceDefinition) DeepCopyInto ¶ added in v0.13.0
func (in *CompositeResourceDefinition) DeepCopyInto(out *CompositeResourceDefinition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CompositeResourceDefinition) DeepCopyObject ¶ added in v0.13.0
func (in *CompositeResourceDefinition) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (CompositeResourceDefinition) GetClaimGroupVersionKind ¶ added in v0.13.0
func (in CompositeResourceDefinition) GetClaimGroupVersionKind() schema.GroupVersionKind
GetClaimGroupVersionKind returns the schema.GroupVersionKind of the CRD for the composite resource claim this CompositeResourceDefinition defines. An empty GroupVersionKind is returned if the CompositeResourceDefinition does not offer a claim.
func (CompositeResourceDefinition) GetCompositeGroupVersionKind ¶ added in v0.13.0
func (in CompositeResourceDefinition) GetCompositeGroupVersionKind() schema.GroupVersionKind
GetCompositeGroupVersionKind returns the schema.GroupVersionKind of the CRD for the composite resource this CompositeResourceDefinition defines.
func (*CompositeResourceDefinition) GetConnectionSecretKeys ¶ added in v0.13.0
func (in *CompositeResourceDefinition) GetConnectionSecretKeys() []string
GetConnectionSecretKeys returns the set of allowed keys to filter the connection secret.
func (CompositeResourceDefinition) OffersClaim ¶ added in v0.13.0
func (in CompositeResourceDefinition) OffersClaim() bool
OffersClaim is true when a CompositeResourceDefinition offers a claim for the composite resource it defines.
type CompositeResourceDefinitionList ¶ added in v0.13.0
type CompositeResourceDefinitionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CompositeResourceDefinition `json:"items"` }
CompositeResourceDefinitionList contains a list of CompositeResourceDefinitions.
func (*CompositeResourceDefinitionList) DeepCopy ¶ added in v0.13.0
func (in *CompositeResourceDefinitionList) DeepCopy() *CompositeResourceDefinitionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositeResourceDefinitionList.
func (*CompositeResourceDefinitionList) DeepCopyInto ¶ added in v0.13.0
func (in *CompositeResourceDefinitionList) DeepCopyInto(out *CompositeResourceDefinitionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CompositeResourceDefinitionList) DeepCopyObject ¶ added in v0.13.0
func (in *CompositeResourceDefinitionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CompositeResourceDefinitionSpec ¶ added in v0.13.0
type CompositeResourceDefinitionSpec struct { // ConnectionSecretKeys is the list of keys that will be exposed to the end // user of the defined kind. ConnectionSecretKeys []string `json:"connectionSecretKeys,omitempty"` // DefaultCompositionRef refers to the Composition resource that will be used // in case no composition selector is given. // +optional DefaultCompositionRef *v1alpha1.Reference `json:"defaultCompositionRef,omitempty"` // EnforcedCompositionRef refers to the Composition resource that will be used // by all composite instances whose schema is defined by this definition. // +optional // +immutable EnforcedCompositionRef *v1alpha1.Reference `json:"enforcedCompositionRef,omitempty"` // ClaimNames specifies the names of an optional composite resource claim. // When claim names are specified Crossplane will create a namespaced // 'composite resource claim' CRD that corresponds to the defined composite // resource. This composite resource claim acts as a namespaced proxy for // the composite resource; creating, updating, or deleting the claim will // create, update, or delete a corresponding composite resource. You may add // claim names to an existing CompositeResourceDefinition, but they cannot // be changed once they have been set. ClaimNames *v1beta1.CustomResourceDefinitionNames `json:"claimNames,omitempty"` // CRDSpecTemplate is the base CRD template. The final CRD will have additional // fields to the base template to accommodate Crossplane machinery. CRDSpecTemplate CRDSpecTemplate `json:"crdSpecTemplate,omitempty"` }
CompositeResourceDefinitionSpec specifies the desired state of the definition.
func (*CompositeResourceDefinitionSpec) DeepCopy ¶ added in v0.13.0
func (in *CompositeResourceDefinitionSpec) DeepCopy() *CompositeResourceDefinitionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositeResourceDefinitionSpec.
func (*CompositeResourceDefinitionSpec) DeepCopyInto ¶ added in v0.13.0
func (in *CompositeResourceDefinitionSpec) DeepCopyInto(out *CompositeResourceDefinitionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CompositeResourceDefinitionStatus ¶ added in v0.13.0
type CompositeResourceDefinitionStatus struct {
v1alpha1.ConditionedStatus `json:",inline"`
}
CompositeResourceDefinitionStatus shows the observed state of the definition.
func (*CompositeResourceDefinitionStatus) DeepCopy ¶ added in v0.13.0
func (in *CompositeResourceDefinitionStatus) DeepCopy() *CompositeResourceDefinitionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositeResourceDefinitionStatus.
func (*CompositeResourceDefinitionStatus) DeepCopyInto ¶ added in v0.13.0
func (in *CompositeResourceDefinitionStatus) DeepCopyInto(out *CompositeResourceDefinitionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Composition ¶
type Composition struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CompositionSpec `json:"spec,omitempty"` Status CompositionStatus `json:"status,omitempty"` }
Composition defines the group of resources to be created when a compatible type is created with reference to the composition. +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories=crossplane
func (*Composition) DeepCopy ¶
func (in *Composition) DeepCopy() *Composition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Composition.
func (*Composition) DeepCopyInto ¶
func (in *Composition) DeepCopyInto(out *Composition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Composition) DeepCopyObject ¶
func (in *Composition) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CompositionList ¶
type CompositionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Composition `json:"items"` }
CompositionList contains a list of Compositions.
func (*CompositionList) DeepCopy ¶
func (in *CompositionList) DeepCopy() *CompositionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositionList.
func (*CompositionList) DeepCopyInto ¶
func (in *CompositionList) DeepCopyInto(out *CompositionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CompositionList) DeepCopyObject ¶
func (in *CompositionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CompositionSpec ¶
type CompositionSpec struct { // CompositeTypeRef specifies the type of composite resource that this // composition is compatible with. // +immutable CompositeTypeRef TypeReference `json:"compositeTypeRef"` // Resources is the list of resource templates that will be used when a // composite resource referring to this composition is created. Resources []ComposedTemplate `json:"resources"` // WriteConnectionSecretsToNamespace specifies the namespace in which the // connection secrets of composite resource dynamically provisioned using // this composition will be created. // +optional WriteConnectionSecretsToNamespace *string `json:"writeConnectionSecretsToNamespace,omitempty"` }
CompositionSpec specifies the desired state of the definition.
func (*CompositionSpec) DeepCopy ¶
func (in *CompositionSpec) DeepCopy() *CompositionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositionSpec.
func (*CompositionSpec) DeepCopyInto ¶
func (in *CompositionSpec) DeepCopyInto(out *CompositionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CompositionStatus ¶
type CompositionStatus struct {
v1alpha1.ConditionedStatus `json:",inline"`
}
CompositionStatus shows the observed state of the composition.
func (*CompositionStatus) DeepCopy ¶
func (in *CompositionStatus) DeepCopy() *CompositionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositionStatus.
func (*CompositionStatus) DeepCopyInto ¶
func (in *CompositionStatus) DeepCopyInto(out *CompositionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConnectionDetail ¶
type ConnectionDetail struct { // Name of the connection secret key that will be propagated to the // connection secret of the composition instance. Leave empty if you'd like // to use the same key name. // +optional Name *string `json:"name,omitempty"` // FromConnectionSecretKey is the key that will be used to fetch the value // from the given target resource. // +optional FromConnectionSecretKey *string `json:"fromConnectionSecretKey,omitempty"` // Value that will be propagated to the connection secret of the composition // instance. Typically you should use FromConnectionSecretKey instead, but // an explicit value may be set to inject a fixed, non-sensitive connection // secret values, for example a well-known port. Supercedes // FromConnectionSecretKey when set. // +optional Value *string `json:"value,omitempty"` }
ConnectionDetail includes the information about the propagation of the connection information from one secret to another.
func (*ConnectionDetail) DeepCopy ¶
func (in *ConnectionDetail) DeepCopy() *ConnectionDetail
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionDetail.
func (*ConnectionDetail) DeepCopyInto ¶
func (in *ConnectionDetail) DeepCopyInto(out *ConnectionDetail)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomResourceDefinitionVersion ¶
type CustomResourceDefinitionVersion struct { // name is the version name, e.g. “v1”, “v2beta1”, etc. // The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true. Name string `json:"name"` // served is a flag enabling/disabling this version from being served via REST APIs Served bool `json:"served"` // storage indicates this version should be used when persisting custom resources to storage. // There must be exactly one version with storage=true. Storage bool `json:"storage"` // schema describes the schema used for validation and pruning of this version of the custom resource. // Top-level and per-version schemas are mutually exclusive. // Per-version schemas must not all be set to identical values (top-level validation schema should be used instead). // +optional Schema *CustomResourceValidation `json:"schema,omitempty"` // additionalPrinterColumns specifies additional columns returned in Table output. // See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. // Top-level and per-version columns are mutually exclusive. // Per-version columns must not all be set to identical values (top-level columns should be used instead). // If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. // +optional AdditionalPrinterColumns []v1beta1.CustomResourceColumnDefinition `json:"additionalPrinterColumns,omitempty"` }
CustomResourceDefinitionVersion describes a version for CRD.
func (*CustomResourceDefinitionVersion) DeepCopy ¶
func (in *CustomResourceDefinitionVersion) DeepCopy() *CustomResourceDefinitionVersion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceDefinitionVersion.
func (*CustomResourceDefinitionVersion) DeepCopyInto ¶
func (in *CustomResourceDefinitionVersion) DeepCopyInto(out *CustomResourceDefinitionVersion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomResourceValidation ¶
type CustomResourceValidation struct { // openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. // +optional OpenAPIV3Schema runtime.RawExtension `json:"openAPIV3Schema,omitempty"` }
CustomResourceValidation is a list of validation methods for CustomResources.
func (*CustomResourceValidation) DeepCopy ¶
func (in *CustomResourceValidation) DeepCopy() *CustomResourceValidation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceValidation.
func (*CustomResourceValidation) DeepCopyInto ¶
func (in *CustomResourceValidation) DeepCopyInto(out *CustomResourceValidation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MapTransform ¶
type MapTransform struct { // Pairs is the map that will be used for transform. // +optional Pairs map[string]string `json:",inline"` }
MapTransform returns a value for the input from the given map.
func (*MapTransform) DeepCopy ¶
func (in *MapTransform) DeepCopy() *MapTransform
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MapTransform.
func (*MapTransform) DeepCopyInto ¶
func (in *MapTransform) DeepCopyInto(out *MapTransform)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (MapTransform) MarshalJSON ¶ added in v0.11.0
func (m MapTransform) MarshalJSON() ([]byte, error)
MarshalJSON from this MapTransform.
func (*MapTransform) Resolve ¶
func (m *MapTransform) Resolve(input interface{}) (interface{}, error)
Resolve runs the Map transform.
func (*MapTransform) UnmarshalJSON ¶ added in v0.11.0
func (m *MapTransform) UnmarshalJSON(b []byte) error
UnmarshalJSON into this MapTransform.
type MathTransform ¶
type MathTransform struct { // Multiply the value. // +optional Multiply *int64 `json:"multiply,omitempty"` }
MathTransform conducts mathematical operations on the input with the given configuration in its properties.
func (*MathTransform) DeepCopy ¶
func (in *MathTransform) DeepCopy() *MathTransform
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MathTransform.
func (*MathTransform) DeepCopyInto ¶
func (in *MathTransform) DeepCopyInto(out *MathTransform)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MathTransform) Resolve ¶
func (m *MathTransform) Resolve(input interface{}) (interface{}, error)
Resolve runs the Math transform.
type Patch ¶
type Patch struct { // FromFieldPath is the path of the field on the upstream resource whose value // to be used as input. FromFieldPath string `json:"fromFieldPath"` // ToFieldPath is the path of the field on the base resource whose value will // be changed with the result of transforms. Leave empty if you'd like to // propagate to the same path on the target resource. // +optional ToFieldPath string `json:"toFieldPath,omitempty"` // Transforms are the list of functions that are used as a FIFO pipe for the // input to be transformed. // +optional Transforms []Transform `json:"transforms,omitempty"` }
Patch is used to patch the field on the base resource at ToFieldPath after piping the value that is at FromFieldPath of the target resource through transformers.
func (*Patch) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Patch.
func (*Patch) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReadinessCheck ¶ added in v0.13.0
type ReadinessCheck struct { // Type indicates the type of probe you'd like to use. // +kubebuilder:validation:Enum="MatchString";"MatchInteger";"NonEmpty";"None" Type TypeReadinessCheck `json:"type"` // FieldPath shows the path of the field whose value will be used. // +optional FieldPath string `json:"fieldPath,omitempty"` // MatchString is the value you'd like to match if you're using "MatchString" type. // +optional MatchString string `json:"matchString,omitempty"` // MatchInt is the value you'd like to match if you're using "MatchInt" type. // +optional MatchInteger int64 `json:"matchInteger,omitempty"` }
ReadinessCheck is used to indicate how to tell whether a resource is ready for consumption
func (*ReadinessCheck) DeepCopy ¶ added in v0.13.0
func (in *ReadinessCheck) DeepCopy() *ReadinessCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReadinessCheck.
func (*ReadinessCheck) DeepCopyInto ¶ added in v0.13.0
func (in *ReadinessCheck) DeepCopyInto(out *ReadinessCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StringTransform ¶
type StringTransform struct { // Format the input using a Go format string. See // https://golang.org/pkg/fmt/ for details. Format string `json:"fmt"` }
A StringTransform returns a string given the supplied input.
func (*StringTransform) DeepCopy ¶
func (in *StringTransform) DeepCopy() *StringTransform
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StringTransform.
func (*StringTransform) DeepCopyInto ¶
func (in *StringTransform) DeepCopyInto(out *StringTransform)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StringTransform) Resolve ¶
func (s *StringTransform) Resolve(input interface{}) (interface{}, error)
Resolve runs the String transform.
type Transform ¶
type Transform struct { // Type of the transform to be run. Type TransformType `json:"type"` // Math is used to transform the input via mathematical operations such as // multiplication. // +optional Math *MathTransform `json:"math,omitempty"` // Map uses the input as a key in the given map and returns the value. // +optional Map *MapTransform `json:"map,omitempty"` // String is used to transform the input into a string or a different kind // of string. Note that the input does not necessarily need to be a string. // +optional String *StringTransform `json:"string,omitempty"` }
Transform is a unit of process whose input is transformed into an output with the supplied configuration.
func (*Transform) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Transform.
func (*Transform) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TransformType ¶
type TransformType string
TransformType is type of the transform function to be chosen.
const ( TransformTypeMap TransformType = "map" TransformTypeMath TransformType = "math" TransformTypeString TransformType = "string" )
Accepted TransformTypes.
type TypeReadinessCheck ¶ added in v0.13.0
type TypeReadinessCheck string
TypeReadinessCheck is used for readiness check types
const ( ReadinessCheckNonEmpty TypeReadinessCheck = "NonEmpty" ReadinessCheckMatchString TypeReadinessCheck = "MatchString" ReadinessCheckMatchInteger TypeReadinessCheck = "MatchInteger" ReadinessCheckNone TypeReadinessCheck = "None" )
The possible values for readiness check type.
type TypeReference ¶
type TypeReference struct { // APIVersion of the type. APIVersion string `json:"apiVersion"` // Kind of the type. Kind string `json:"kind"` }
TypeReference is used to refer to a type for declaring compatibility.
func (*TypeReference) DeepCopy ¶
func (in *TypeReference) DeepCopy() *TypeReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypeReference.
func (*TypeReference) DeepCopyInto ¶
func (in *TypeReference) DeepCopyInto(out *TypeReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.