Documentation ¶
Index ¶
Constants ¶
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.
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 ¶
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.