From 0ff274267e9233bbcd7b21c63dc73b6b8483ad2f Mon Sep 17 00:00:00 2001 From: Andrew Obuchowicz Date: Tue, 30 Jul 2024 13:48:35 -0400 Subject: [PATCH] feat: Add endpoints annotations to DWR CRD fix #1292 Signed-off-by: Andrew Obuchowicz --- apis/controller/v1alpha1/devworkspacerouting_types.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apis/controller/v1alpha1/devworkspacerouting_types.go b/apis/controller/v1alpha1/devworkspacerouting_types.go index a737393ac..4b364d203 100644 --- a/apis/controller/v1alpha1/devworkspacerouting_types.go +++ b/apis/controller/v1alpha1/devworkspacerouting_types.go @@ -175,6 +175,11 @@ type Endpoint struct { // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:Schemaless Attributes Attributes `json:"attributes,omitempty"` + // Map of annotations to be added to the Kubernetes Ingress or OpenShift Route associated with the endpoint. + // +optional + // +patchMergeKey=name + // +patchStrategy=merge + Annotations map[string]string `json:"annotations,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object