From 857b9a3f580b3745455ee9922cb5399a99cd475f Mon Sep 17 00:00:00 2001 From: Randall Mason Date: Sun, 27 Aug 2023 08:40:45 +0000 Subject: [PATCH] allow annotations on stack nginx service This allows choosing an IP, for example. Or getting an SSL cert --- tinkerbell/stack/templates/nginx.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tinkerbell/stack/templates/nginx.yaml b/tinkerbell/stack/templates/nginx.yaml index 15d3f100..f2335ae5 100644 --- a/tinkerbell/stack/templates/nginx.yaml +++ b/tinkerbell/stack/templates/nginx.yaml @@ -104,6 +104,10 @@ metadata: app: {{ .Values.stack.name }} name: {{ .Values.stack.name }} namespace: {{ .Release.Namespace | quote }} + annotations: + {{- with .Values.stack.service.annotations | default dict }} + {{ toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.stack.service.type }} {{- if eq .Values.stack.service.type "LoadBalancer" }}