Skip to content

Commit ea74528

Browse files
committed
Add annotations to HTTPRoute
1 parent 92d624d commit ea74528

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

jupyterhub/templates/httproute.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
name: {{ include "jupyterhub.httpRoute.fullname" . }}
66
labels:
77
{{- include "jupyterhub.labels" . | nindent 4 }}
8+
{{- with .Values.httpRoute.annotations }}
9+
annotations:
10+
{{- . | toYaml | nindent 4 }}
11+
{{- end }}
812
spec:
913
parentRefs:
1014
- kind: Gateway

jupyterhub/values.schema.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2803,6 +2803,16 @@ properties:
28032803
Requires support for the [Gateway API](https://gateway-api.sigs.k8s.io/).
28042804
28052805
A Gateway must already exist.
2806+
annotations:
2807+
type: object
2808+
additionalProperties: false
2809+
patternProperties: *labels-and-annotations-patternProperties
2810+
description: |
2811+
Annotations to apply to the HTTPRoute resource.
2812+
2813+
See [the Kubernetes
2814+
documentation](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/)
2815+
for more details about annotations.
28062816
hostnames:
28072817
type: array
28082818
description: |

jupyterhub/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,7 @@ ingress:
716716

717717
httpRoute:
718718
enabled: false
719+
annotations: {}
719720
hostnames: []
720721
gateway:
721722
name: your-gateway

0 commit comments

Comments
 (0)