Documentation
¶
Index ¶
Constants ¶
const CesExposedPortAnnotation = "k8s-dogu-operator.cloudogu.com/ces-exposed-ports"
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
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.