mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
k8s-ci-robot
parent
31055cdea8
commit
8939cfa9ec
@@ -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,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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user