Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the ktunnels v1 API group. +kubebuilder:object:generate=true +groupName=ktunnels.int128.github.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "ktunnels.int128.github.io", Version: "v1"} // 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 Proxy ¶
type Proxy struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ProxySpec `json:"spec,omitempty"`
Status ProxyStatus `json:"status,omitempty"`
}
Proxy is the Schema for the proxies API
func (*Proxy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Proxy.
func (*Proxy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Proxy) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProxyEnvoy ¶ added in v0.3.0
type ProxyEnvoy struct {
// Envoy image tag.
// Default to the image shipped with the controller.
// +optional
Image *string `json:"image,omitempty"`
// Resource requirements.
// Default to the suitable value.
// +optional
Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
}
ProxyEnvoy defines the desired state of an Envoy container
func (*ProxyEnvoy) DeepCopy ¶ added in v0.3.0
func (in *ProxyEnvoy) DeepCopy() *ProxyEnvoy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxyEnvoy.
func (*ProxyEnvoy) DeepCopyInto ¶ added in v0.3.0
func (in *ProxyEnvoy) DeepCopyInto(out *ProxyEnvoy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxyList ¶
type ProxyList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Proxy `json:"items"`
}
ProxyList contains a list of Proxy
func (*ProxyList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxyList.
func (*ProxyList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProxyList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProxyPod ¶ added in v0.3.0
type ProxyPod struct {
// +optional
Spec ProxyPodSpec `json:"spec,omitempty"`
}
ProxyPod defines the desired state of a Pod
func (*ProxyPod) DeepCopy ¶ added in v0.3.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxyPod.
func (*ProxyPod) DeepCopyInto ¶ added in v0.3.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxyPodSpec ¶ added in v0.2.0
type ProxyPodSpec struct {
// +optional
ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
// +optional
Envoy ProxyEnvoy `json:"envoy,omitempty"`
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
}
ProxyPodSpec defines the desired state of a Pod
func (*ProxyPodSpec) DeepCopy ¶ added in v0.2.0
func (in *ProxyPodSpec) DeepCopy() *ProxyPodSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxyPodSpec.
func (*ProxyPodSpec) DeepCopyInto ¶ added in v0.2.0
func (in *ProxyPodSpec) DeepCopyInto(out *ProxyPodSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxySpec ¶
type ProxySpec struct {
// +optional
Replicas *int32 `json:"replicas,omitempty"`
// +optional
Template ProxyPod `json:"template,omitempty"`
}
ProxySpec defines the desired state of Proxy
func (*ProxySpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxySpec.
func (*ProxySpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxyStatus ¶
type ProxyStatus struct {
// Ready becomes true when the owned Deployment is ready
Ready bool `json:"ready,omitempty"`
}
ProxyStatus defines the observed state of Proxy
func (*ProxyStatus) DeepCopy ¶
func (in *ProxyStatus) DeepCopy() *ProxyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxyStatus.
func (*ProxyStatus) DeepCopyInto ¶
func (in *ProxyStatus) DeepCopyInto(out *ProxyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Tunnel ¶
type Tunnel struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TunnelSpec `json:"spec,omitempty"`
Status TunnelStatus `json:"status,omitempty"`
}
Tunnel is the Schema for the tunnels API
func (*Tunnel) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tunnel.
func (*Tunnel) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Tunnel) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TunnelList ¶
type TunnelList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Tunnel `json:"items"`
}
TunnelList contains a list of Tunnel
func (*TunnelList) DeepCopy ¶
func (in *TunnelList) DeepCopy() *TunnelList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TunnelList.
func (*TunnelList) DeepCopyInto ¶
func (in *TunnelList) DeepCopyInto(out *TunnelList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TunnelList) DeepCopyObject ¶
func (in *TunnelList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TunnelSpec ¶
type TunnelSpec struct {
// Destination hostname of this tunnel.
Host string `json:"host,omitempty"`
// Destination port of this tunnel.
Port int32 `json:"port,omitempty"`
// Proxy resource to register.
Proxy corev1.LocalObjectReference `json:"proxy,omitempty"`
}
TunnelSpec defines the desired state of Tunnel
func (*TunnelSpec) DeepCopy ¶
func (in *TunnelSpec) DeepCopy() *TunnelSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TunnelSpec.
func (*TunnelSpec) DeepCopyInto ¶
func (in *TunnelSpec) DeepCopyInto(out *TunnelSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TunnelStatus ¶
type TunnelStatus struct {
// Transit port of the proxy.
// This value is automatically set by proxy controller. Do not set this manually.
// +optional
TransitPort *int32 `json:"transitPort,omitempty"`
// True if the service is created.
// +optional
Ready bool `json:"ready,omitempty"`
}
TunnelStatus defines the observed state of Tunnel
func (*TunnelStatus) DeepCopy ¶
func (in *TunnelStatus) DeepCopy() *TunnelStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TunnelStatus.
func (*TunnelStatus) DeepCopyInto ¶
func (in *TunnelStatus) DeepCopyInto(out *TunnelStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.