annotation

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 8 Imported by: 1

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 added in v0.29.0

type IngressAnnotator struct{}

IngressAnnotator adds json-marshalled ingress annotations to a service.

func (IngressAnnotator) AppendIngressAnnotationsToService added in v0.29.0

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