From 729a412803584ded9807dd58f9bae56af4ed3e8c Mon Sep 17 00:00:00 2001 From: JPRbrs Date: Fri, 20 Nov 2020 16:08:26 +0800 Subject: [PATCH] Allow templated annotations for http-service (#62) Get http annotations from the right place Allow templated annotations for http-service When deploying this to cloud Kubernetes, annotations are useful to add features to the http-service Co-authored-by: javier Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/62 Reviewed-by: luhahn Reviewed-by: Lunny Xiao Co-Authored-By: JPRbrs Co-Committed-By: JPRbrs --- templates/gitea/http-svc.yaml | 2 ++ values.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/templates/gitea/http-svc.yaml b/templates/gitea/http-svc.yaml index ae9c065..54fd7a8 100644 --- a/templates/gitea/http-svc.yaml +++ b/templates/gitea/http-svc.yaml @@ -4,6 +4,8 @@ metadata: name: {{ include "gitea.fullname" . }}-http labels: {{- include "gitea.labels" . | nindent 4 }} + annotations: + {{- toYaml .Values.service.http.annotations | nindent 4 }} spec: type: {{ .Values.service.http.type }} {{- if and .Values.service.http.loadBalancerIP (eq .Values.service.http.type "LoadBalancer") }} diff --git a/values.yaml b/values.yaml index 22a41cf..2c47618 100644 --- a/values.yaml +++ b/values.yaml @@ -17,6 +17,7 @@ service: http: type: ClusterIP port: 3000 + annotations: ssh: type: ClusterIP port: 22