Skip to content
This repository was archived by the owner on May 27, 2019. It is now read-only.

Commit 19466c5

Browse files
committed
feat(charts): Add support to add annotations during install
1 parent 563d731 commit 19466c5

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

charts/router/templates/router-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ metadata:
66
heritage: deis
77
annotations:
88
component.deis.io/version: {{ .Values.docker_tag }}
9+
{{- range $key, $value := .Values.deployment_annotations }}
10+
{{ $key }}: {{ $value }}
11+
{{- end }}
912
{{- if not (empty .Values.platform_domain) }}
1013
router.deis.io/nginx.platformDomain: {{ .Values.platform_domain }}
1114
{{- end }}

charts/router/templates/router-service.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: deis-router
5+
{{- if .Values.service_annotations }}
6+
annotations:
7+
{{- range $key, $value := .Values.service_annotations }}
8+
{{ $key }}: {{ $value }}
9+
{{- end }}
10+
{{- end }}
511
labels:
612
heritage: deis
713
spec:

charts/router/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,13 @@ platform_domain: ""
55
dhparam: ""
66
# limits_cpu: "100m"
77
# limits_memory: "50Mi"
8+
9+
# Any custom router annotations(https://github.com/deis/router#annotations)
10+
# which need to be applied can be specified as key-value pairs under "deployment_annotations"
11+
deployment_annotations:
12+
#<example-key>: <example-value>
13+
14+
# Any custom annotations for k8s services like http://kubernetes.io/docs/user-guide/services/#ssl-support-on-aws
15+
# which need to be applied can be specified as key-value pairs under "service_annotations"
16+
service_annotations:
17+
#<example-key>: <example-value>

0 commit comments

Comments
 (0)