Documentation ¶
Index ¶
- func AddMarin3rSidecar(dep *appsv1.Deployment, spec saasv1alpha1.Marin3rSidecarSpec) *appsv1.Deployment
- func ELBServiceAnnotations(cfg saasv1alpha1.ElasticLoadBalancerSpec, hostnames []string) map[string]string
- func NLBServiceAnnotations(cfg saasv1alpha1.NetworkLoadBalancerSpec, hostnames []string) map[string]string
- func Ports(ports ...corev1.ServicePort) []corev1.ServicePort
- func TCPPort(name string, port int32, targetPort intstr.IntOrString) corev1.ServicePort
- type ServiceDescriptor
- type ServiceOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMarin3rSidecar ¶ added in v0.25.0
func AddMarin3rSidecar(dep *appsv1.Deployment, spec saasv1alpha1.Marin3rSidecarSpec) *appsv1.Deployment
AddMarin3rSidecar adds the appropriate labels and annotations for marin3r sidecar injection to work for this Deployment
func ELBServiceAnnotations ¶
func ELBServiceAnnotations(cfg saasv1alpha1.ElasticLoadBalancerSpec, hostnames []string) map[string]string
ELBServiceAnnotations returns annotations for services exposed through AWS Classic LoadBalancers
func NLBServiceAnnotations ¶
func NLBServiceAnnotations(cfg saasv1alpha1.NetworkLoadBalancerSpec, hostnames []string) map[string]string
NLBServiceAnnotations returns annotations for services exposed through AWS Network LoadBalancers
func Ports ¶
func Ports(ports ...corev1.ServicePort) []corev1.ServicePort
Ports returns a list of corev1.ServicePort
func TCPPort ¶
func TCPPort(name string, port int32, targetPort intstr.IntOrString) corev1.ServicePort
TCPPort returns a TCP corev1.ServicePort
Types ¶
type ServiceDescriptor ¶ added in v0.25.0
type ServiceDescriptor struct { PortDefinitions []corev1.ServicePort saasv1alpha1.PublishingStrategy }
func MergeWithDefaultPublishingStrategy ¶ added in v0.25.0
func MergeWithDefaultPublishingStrategy(defaults []ServiceDescriptor, in *saasv1alpha1.PublishingStrategies) ([]ServiceDescriptor, error)
type ServiceOptions ¶ added in v0.25.0
type ServiceOptions struct { Name string Namespace string Annotations map[string]string Type corev1.ServiceType Ports []corev1.ServicePort }
func (ServiceOptions) Service ¶ added in v0.25.0
func (opts ServiceOptions) Service() *corev1.Service
Click to show internal directories.
Click to hide internal directories.