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 <[email protected]>
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/62
Reviewed-by: luhahn <[email protected]>
Reviewed-by: Lunny Xiao <[email protected]>
Co-Authored-By: JPRbrs <[email protected]>
Co-Committed-By: JPRbrs <[email protected]>
This commit is contained in:
JPRbrs
2020-11-20 16:08:26 +08:00
committed by luhahn
co-authored by javier
parent 79690ee488
commit 729a412803
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -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") }}