Documentation ¶
Overview ¶
Package v1beta1 contains API types that extend the Crossplane API. +kubebuilder:object:generate=true +groupName=apiextensions.crossplane.io +versionName=v1beta1
Index ¶
- Constants
- Variables
- func TerminatingClaim() runtimev1alpha1.Condition
- func TerminatingComposite() runtimev1alpha1.Condition
- func WatchingClaim() runtimev1alpha1.Condition
- func WatchingComposite() runtimev1alpha1.Condition
- 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 CompositeResourceDefinitionControllerStatus
- type CompositeResourceDefinitionList
- type CompositeResourceDefinitionSpec
- type CompositeResourceDefinitionStatus
- type CompositeResourceDefinitionVersion
- type CompositeResourceValidation
- type Composition
- type CompositionList
- type CompositionSpec
- type CompositionStatus
- type ConnectionDetail
- 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 = "v1beta1" )
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 ¶
func TerminatingClaim() runtimev1alpha1.Condition
TerminatingClaim indicates that Crossplane is terminating the controller and removing the definition of a composite resource claim.
func TerminatingComposite ¶
func TerminatingComposite() runtimev1alpha1.Condition
TerminatingComposite indicates that Crossplane is terminating the controller for and removing the definition of a composite resource.
func WatchingClaim ¶
func WatchingClaim() runtimev1alpha1.Condition
WatchingClaim indicates that Crossplane has defined and is watching for a new kind of composite resource claim.
func WatchingComposite ¶
func WatchingComposite() runtimev1alpha1.Condition
WatchingComposite indicates that Crossplane has defined and is watching for a new kind of composite resource.
Types ¶
type ComposedTemplate ¶
type ComposedTemplate struct { // Base is the target resource that the patches will be applied on. // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:EmbeddedResource 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 ¶
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="ESTABLISHED",type="string",JSONPath=".status.conditions[?(@.type=='Established')].status" +kubebuilder:printcolumn:name="OFFERED",type="string",JSONPath=".status.conditions[?(@.type=='Offered')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories=crossplane,shortName=xrd
func (*CompositeResourceDefinition) DeepCopy ¶
func (in *CompositeResourceDefinition) DeepCopy() *CompositeResourceDefinition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositeResourceDefinition.
func (*CompositeResourceDefinition) DeepCopyInto ¶
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 ¶
func (in *CompositeResourceDefinition) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (CompositeResourceDefinition) GetClaimGroupVersionKind ¶
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 ¶
func (in CompositeResourceDefinition) GetCompositeGroupVersionKind() schema.GroupVersionKind
GetCompositeGroupVersionKind returns the schema.GroupVersionKind of the CRD for the composite resource this CompositeResourceDefinition defines.
func (*CompositeResourceDefinition) GetConnectionSecretKeys ¶
func (in *CompositeResourceDefinition) GetConnectionSecretKeys() []string
GetConnectionSecretKeys returns the set of allowed keys to filter the connection secret.
func (CompositeResourceDefinition) OffersClaim ¶
func (in CompositeResourceDefinition) OffersClaim() bool
OffersClaim is true when a CompositeResourceDefinition offers a claim for the composite resource it defines.
type CompositeResourceDefinitionControllerStatus ¶
type CompositeResourceDefinitionControllerStatus struct { // The CompositeResourceTypeRef is the type of composite resource that // Crossplane is currently reconciling for this definition. Its version will // eventually become consistent with the definition's referenceable version. // Note that clients may interact with any served type; this is simply the // type that Crossplane interacts with. CompositeResourceTypeRef TypeReference `json:"compositeResourceType,omitempty"` // The CompositeResourceClaimTypeRef is the type of composite resource claim // that Crossplane is currently reconciling for this definition. Its version // will eventually become consistent with the definition's referenceable // version. Note that clients may interact with any served type; this is // simply the type that Crossplane interacts with. CompositeResourceClaimTypeRef TypeReference `json:"compositeResourceClaimType,omitempty"` }
CompositeResourceDefinitionControllerStatus shows the observed state of the controllers that power the definition.
func (*CompositeResourceDefinitionControllerStatus) DeepCopy ¶
func (in *CompositeResourceDefinitionControllerStatus) DeepCopy() *CompositeResourceDefinitionControllerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositeResourceDefinitionControllerStatus.
func (*CompositeResourceDefinitionControllerStatus) DeepCopyInto ¶
func (in *CompositeResourceDefinitionControllerStatus) DeepCopyInto(out *CompositeResourceDefinitionControllerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CompositeResourceDefinitionList ¶
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 ¶
func (in *CompositeResourceDefinitionList) DeepCopy() *CompositeResourceDefinitionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositeResourceDefinitionList.
func (*CompositeResourceDefinitionList) DeepCopyInto ¶
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 ¶
func (in *CompositeResourceDefinitionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CompositeResourceDefinitionSpec ¶
type CompositeResourceDefinitionSpec struct { // Group specifies the API group of the defined composite resource. // Composite resources are served under `/apis/<group>/...`. Must match the // name of the XRD (in the form `<names.plural>.<group>`). Group string `json:"group"` // Names specifies the resource and kind names of the defined composite // resource. Names extv1.CustomResourceDefinitionNames `json:"names"` // 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 or removed once they have been set. // +optional ClaimNames *extv1.CustomResourceDefinitionNames `json:"claimNames,omitempty"` // ConnectionSecretKeys is the list of keys that will be exposed to the end // user of the defined kind. // +optional 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"` // Versions is the list of all API versions of the defined composite // resource. Version names are used to compute the order in which served // versions are listed in API discovery. If the version string is // "kube-like", it will sort above non "kube-like" version strings, which // are ordered lexicographically. "Kube-like" versions start with a "v", // then are followed by a number (the major version), then optionally the // string "alpha" or "beta" and another number (the minor version). These // are sorted first by GA > beta > alpha (where GA is a version with no // suffix such as beta or alpha), and then by comparing major version, then // minor version. An example sorted list of versions: v10, v2, v1, v11beta2, // v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. Note that all // versions must have identical schemas; Crossplane does not currently // support conversion between different version schemas. Versions []CompositeResourceDefinitionVersion `json:"versions"` }
CompositeResourceDefinitionSpec specifies the desired state of the definition.
func (*CompositeResourceDefinitionSpec) DeepCopy ¶
func (in *CompositeResourceDefinitionSpec) DeepCopy() *CompositeResourceDefinitionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositeResourceDefinitionSpec.
func (*CompositeResourceDefinitionSpec) DeepCopyInto ¶
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 ¶
type CompositeResourceDefinitionStatus struct { v1alpha1.ConditionedStatus `json:",inline"` // Controllers represents the status of the controllers that power this // composite resource definition. Controllers CompositeResourceDefinitionControllerStatus `json:"controllers,omitempty"` }
CompositeResourceDefinitionStatus shows the observed state of the definition.
func (*CompositeResourceDefinitionStatus) DeepCopy ¶
func (in *CompositeResourceDefinitionStatus) DeepCopy() *CompositeResourceDefinitionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositeResourceDefinitionStatus.
func (*CompositeResourceDefinitionStatus) DeepCopyInto ¶
func (in *CompositeResourceDefinitionStatus) DeepCopyInto(out *CompositeResourceDefinitionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CompositeResourceDefinitionVersion ¶
type CompositeResourceDefinitionVersion struct { // Name of this version, e.g. “v1”, “v2beta1”, etc. Composite resources are // served under this version at `/apis/<group>/<version>/...` if `served` is // true. Name string `json:"name"` // Referenceable specifies that this version may be referenced by a // Composition in order to configure which resources an XR may be composed // of. Exactly one version must be marked as referenceable; all Compositions // must target only the referenceable version. The referenceable version // must be served. Referenceable bool `json:"referenceable"` // Served specifies that this version should be served via REST APIs. Served bool `json:"served"` // Schema describes the schema used for validation, pruning, and defaulting // of this version of the defined composite resource. Fields required by all // composite resources will be injected into this schema automatically, and // will override equivalently named fields in this schema. Omitting this // schema results in a schema that contains only the fields required by all // composite resources. // +optional Schema *CompositeResourceValidation `json:"schema,omitempty"` // AdditionalPrinterColumns specifies additional columns returned in Table // output. If no columns are specified, a single column displaying the age // of the custom resource is used. See the following link for details: // https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables // +optional AdditionalPrinterColumns []extv1.CustomResourceColumnDefinition `json:"additionalPrinterColumns,omitempty"` }
CompositeResourceDefinitionVersion describes a version of an XR.
func (*CompositeResourceDefinitionVersion) DeepCopy ¶
func (in *CompositeResourceDefinitionVersion) DeepCopy() *CompositeResourceDefinitionVersion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositeResourceDefinitionVersion.
func (*CompositeResourceDefinitionVersion) DeepCopyInto ¶
func (in *CompositeResourceDefinitionVersion) DeepCopyInto(out *CompositeResourceDefinitionVersion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CompositeResourceValidation ¶
type CompositeResourceValidation struct { // OpenAPIV3Schema is the OpenAPI v3 schema to use for validation and // pruning. // +kubebuilder:pruning:PreserveUnknownFields OpenAPIV3Schema runtime.RawExtension `json:"openAPIV3Schema,omitempty"` }
CompositeResourceValidation is a list of validation methods for a composite resource.
func (*CompositeResourceValidation) DeepCopy ¶
func (in *CompositeResourceValidation) DeepCopy() *CompositeResourceValidation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositeResourceValidation.
func (*CompositeResourceValidation) DeepCopyInto ¶
func (in *CompositeResourceValidation) DeepCopyInto(out *CompositeResourceValidation)
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 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 ¶
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 ¶
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 ¶
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 ¶
func (in *ReadinessCheck) DeepCopy() *ReadinessCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReadinessCheck.
func (*ReadinessCheck) DeepCopyInto ¶
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 ¶
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 TypeReferenceTo ¶
func TypeReferenceTo(gvk schema.GroupVersionKind) TypeReference
TypeReferenceTo returns a reference to the supplied GroupVersionKind
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.