service

package
v0.25.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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)

func (*ServiceDescriptor) Service added in v0.25.0

func (sd *ServiceDescriptor) Service(prefix, suffix string) *corev1.Service

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL