annotation

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AdditionalIngressAnnotationsAnnotation = "k8s-dogu-operator.cloudogu.com/additional-ingress-annotations"

AdditionalIngressAnnotationsAnnotation contains additional ingress annotations to be appended to the ingress object for this service.

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

func SplitImagePortConfig

func SplitImagePortConfig(exposedPort string) (int32, corev1.Protocol, error)

Types

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.

type IngressAnnotator

type IngressAnnotator struct{}

IngressAnnotator adds json-marshalled ingress annotations to a service.

func (IngressAnnotator) AppendIngressAnnotationsToService

func (i IngressAnnotator) AppendIngressAnnotationsToService(service *corev1.Service, additionalIngressAnnotations doguv1.IngressAnnotations) error

AppendIngressAnnotationsToService marshals the additional ingress annotations to json and adds them to the service as an annotation with the key of AdditionalIngressAnnotationsAnnotation. These annotations are then to be read by the service discovery and appended to the ingress object for the dogu.

Jump to

Keyboard shortcuts

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