annotation

package
v3.29.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: AGPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const CesExposedPortAnnotation = "k8s-dogu-operator.cloudogu.com/ces-exposed-ports"
View Source
const (
	// CesServicesAnnotation contains the identifier of the annotation containing ces service information
	CesServicesAnnotation = "k8s-dogu-operator.cloudogu.com/ces-services"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CesExposedPortAnnotator added in v3.1.0

type CesExposedPortAnnotator struct{}

CesExposedPortAnnotator adds information about the exposedPorts of a dogu to dogu services

func (*CesExposedPortAnnotator) AnnotateService added in v3.1.0

func (c *CesExposedPortAnnotator) AnnotateService(service *corev1.Service, dogu *core.Dogu) error

AnnotateService annotates a given service with exposed ports. Can bes used to identify services with exposed ports and get information about these ports Services are annotated like this: k8s-dogu-operator.cloudogu.com/ces-exposed-ports = [{"protocol":"tcp","port":2222,"targetPort":2222},{"protocol":"udp","port":80,"targetPort":8080}]

type CesServiceAnnotator

type CesServiceAnnotator struct{}

CesServiceAnnotator collects ces service information and annotates them to a given K8s service.

func (*CesServiceAnnotator) AnnotateService

func (c *CesServiceAnnotator) AnnotateService(service *corev1.Service, config *imagev1.Config) error

AnnotateService annotates a given service with ces service information based on the given service and the provided image configuration which includes defined environment variables and labels used to customize the service for the ecosystem.

Jump to

Keyboard shortcuts

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