Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mutate ¶
type Mutate interface {
GetServicePorts() []corev1.ServicePort
// GetServiceProtocol() corev1.Protocol
GetServiceType() corev1.ServiceType
}
type Port ¶
type Port struct {
Name string `json:"name,omitempty"`
Port int32 `json:"port,omitempty"`
Protocol corev1.Protocol `json:"protocol,omitempty"`
}
+kubebuilder:object:generate=true
func (*Port) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Port.
func (*Port) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Port) GetServicePort ¶
func (p *Port) GetServicePort() corev1.ServicePort
type Service ¶
type Service struct {
*meta.ObjectMeta `json:"meta,omitempty"`
*ServiceSpec `json:",inline"`
}
+kubebuilder:object:generate=true
func (*Service) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Service) GetObject ¶
func (o *Service) GetObject() interfaces.Object
func (*Service) GetObjectGroup ¶
func (*Service) GetObjectKind ¶
type ServiceSpec ¶
type ServiceSpec struct {
Port Port `json:"port,omitempty"`
// The list of ports that are exposed by this service.
ExtraPorts []Port `json:"extraPorts,omitempty"`
// type determines how the Service is exposed. Defaults to ClusterIP. Valid
// options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
// "ExternalName" maps to the specified externalName.
// "ClusterIP" allocates a cluster-internal IP address for load-balancing to
// endpoints. Endpoints are determined by the selector or if that is not
// specified, by manual construction of an Endpoints object. If clusterIP is
// "None", no virtual IP is allocated and the endpoints are published as a
// set of endpoints rather than a stable IP.
// "NodePort" builds on ClusterIP and allocates a port on every node which
// routes to the clusterIP.
// "LoadBalancer" builds on NodePort and creates an
// external load-balancer (if supported in the current cloud) which routes
// to the clusterIP.
// More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
// +optional
Type corev1.ServiceType `json:"type,omitempty"`
}
+kubebuilder:object:generate=true
func (*ServiceSpec) DeepCopy ¶
func (in *ServiceSpec) DeepCopy() *ServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSpec.
func (*ServiceSpec) DeepCopyInto ¶
func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceSpec) GetServicePorts ¶
func (r *ServiceSpec) GetServicePorts() []corev1.ServicePort
func (*ServiceSpec) GetServiceType ¶
func (r *ServiceSpec) GetServiceType() corev1.ServiceType