[incubator/gogs] Customize service annotations (#3091)

Purpose is for users to attach annotation metadata to gogs service for
custom kubernetes components to act on. By allowing free configuration
of annotations in values.yaml we allow maximum flexibility in
configuration.
This commit is contained in:
Stanislav B
2018-01-13 07:05:22 -08:00
committed by k8s-ci-robot
parent 31055cdea8
commit 8939cfa9ec
3 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: 'Gogs: Go Git Service'
name: gogs
version: 0.5.0
version: 0.5.1
appVersion: 0.11.29
home: https://gogs.io/
icon: https://gogs.io/img/favicon.ico
+4
View File
@@ -4,6 +4,10 @@ metadata:
name: {{ template "gogs.fullname" . }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
spec:
type: {{ .Values.serviceType }}
ports:
+6
View File
@@ -222,6 +222,12 @@ service:
# hosts:
# - gogs.domain.com
## Service annotations.
## Allows attaching metadata to services for kubernetes components to act on.
##
# annotations:
# service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
## Persistent Volume Storage configuration.
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes