Documentation
¶
Overview ¶
Package v1beta1 contains API Schema definitions for the webhook.infra.doodle.com v1beta1 API group +kubebuilder:object:generate=true +groupName=webhook.infra.doodle.com
Index ¶
Constants ¶
const ( ConditionReady = "Ready" ServiceBackendReadyReason = "ServiceBackendReady" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "webhook.infra.doodle.com", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Receiver ¶ added in v1.0.0
type Receiver struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ReceiverSpec `json:"spec,omitempty"`
Status ReceiverStatus `json:"status,omitempty"`
}
Receiver is the Schema for the Receivers API
func ReceiverNotReady ¶ added in v1.0.0
ReceiverNotReady
func ReceiverReady ¶ added in v1.0.0
ReceiverReady
func (*Receiver) DeepCopy ¶ added in v1.0.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Receiver.
func (*Receiver) DeepCopyInto ¶ added in v1.0.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Receiver) DeepCopyObject ¶ added in v1.0.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Receiver) GetStatusConditions ¶ added in v1.0.0
GetStatusConditions returns a pointer to the Status.Conditions slice
type ReceiverList ¶ added in v1.0.0
type ReceiverList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Receiver `json:"items"`
}
ReceiverList contains a list of Receiver
func (*ReceiverList) DeepCopy ¶ added in v1.0.0
func (in *ReceiverList) DeepCopy() *ReceiverList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReceiverList.
func (*ReceiverList) DeepCopyInto ¶ added in v1.0.0
func (in *ReceiverList) DeepCopyInto(out *ReceiverList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReceiverList) DeepCopyObject ¶ added in v1.0.0
func (in *ReceiverList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReceiverSpec ¶ added in v1.0.0
type ReceiverSpec struct {
// Suspend reconciliation
// +optional
Suspend bool `json:"suspend,omitempty"`
// Response type
// +kubebuilder:default=Async
ResponseType ResponseType `json:"responseType,omitempty"`
// Body size limit
BodySizeLimit int64 `json:"bodySizeLimit,omitempty"`
// Timeout for the target requests
// +kubebuilder:default="10s"
Timeout metav1.Duration `json:"timeout,omitempty"`
// Targets to forward (clone) requests to
Targets []Target `json:"targets"`
}
ReceiverSpec defines the desired state of Receiver
func (*ReceiverSpec) DeepCopy ¶ added in v1.0.0
func (in *ReceiverSpec) DeepCopy() *ReceiverSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReceiverSpec.
func (*ReceiverSpec) DeepCopyInto ¶ added in v1.0.0
func (in *ReceiverSpec) DeepCopyInto(out *ReceiverSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReceiverStatus ¶ added in v1.0.0
type ReceiverStatus struct {
// Conditions holds the conditions for the VaultBinding.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
// ObservedGeneration is the last generation reconciled by the controller
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// The generated webhook path
WebhookPath string `json:"webhookPath,omitempty"`
// SubResourceCatalog holds discovered targets
SubResourceCatalog []ResourceReference `json:"subResourceCatalog,omitempty"`
}
ReceiverStatus defines the observed state of Receiver
func (*ReceiverStatus) DeepCopy ¶ added in v1.0.0
func (in *ReceiverStatus) DeepCopy() *ReceiverStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReceiverStatus.
func (*ReceiverStatus) DeepCopyInto ¶ added in v1.0.0
func (in *ReceiverStatus) DeepCopyInto(out *ReceiverStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceReference ¶ added in v1.0.0
type ResourceReference struct {
Kind string `json:"kind,omitempty"`
Name string `json:"name,omitempty"`
Namespace string `json:"namespace,omitempty"`
APIVersion string `json:"apiVersion,omitempty"`
}
ResourceReference metadata to lookup another resource
func (*ResourceReference) DeepCopy ¶ added in v1.0.0
func (in *ResourceReference) DeepCopy() *ResourceReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceReference.
func (*ResourceReference) DeepCopyInto ¶ added in v1.0.0
func (in *ResourceReference) DeepCopyInto(out *ResourceReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResponseType ¶ added in v1.0.0
type ResponseType string
const ( Async ResponseType = "Async" AwaitAllPreferSuccessful ResponseType = "AwaitAllPreferSuccessful" AwaitAllPreferFailed ResponseType = "AwaitAllPreferFailed" AwaitAllReport ResponseType = "AwaitAllReport" )
type ServicePort ¶ added in v1.0.0
type ServicePort struct {
// Name of the port, mutually exclusive with Number
Name *string `json:"name,omitempty"`
// Number of the port, mutually exclusive with Name
Number *int32 `json:"number,omitempty"`
}
func (*ServicePort) DeepCopy ¶ added in v1.0.0
func (in *ServicePort) DeepCopy() *ServicePort
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePort.
func (*ServicePort) DeepCopyInto ¶ added in v1.0.0
func (in *ServicePort) DeepCopyInto(out *ServicePort)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceSelector ¶
type ServiceSelector struct {
// Name of the service
Name string `json:"name"`
// Port of the service
Port ServicePort `json:"port,omitempty"`
}
func (*ServiceSelector) DeepCopy ¶
func (in *ServiceSelector) DeepCopy() *ServiceSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSelector.
func (*ServiceSelector) DeepCopyInto ¶
func (in *ServiceSelector) DeepCopyInto(out *ServiceSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Target ¶ added in v1.0.0
type Target struct {
// HTTP Path
// +kubebuilder:default="/"
Path string `json:"path,omitempty"`
// Service name and port
Service ServiceSelector `json:"service"`
// NamespaceSelector defines a selector to select namespaces where services are looked up
NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"`
}
func (*Target) DeepCopy ¶ added in v1.0.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.
func (*Target) DeepCopyInto ¶ added in v1.0.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.