Skip to content

Commit

Permalink
[stable/kuberos] add support for custom annotations in service (helm#…
Browse files Browse the repository at this point in the history
…7964)

Signed-off-by: Cezar Sa Espinola <[email protected]>
  • Loading branch information
cezarsa authored and k8s-ci-robot committed Oct 31, 2018
1 parent 893a622 commit 8446e41
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/kuberos/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "2018-07-03"
description: An OIDC authentication helper for Kubernetes
name: kuberos
version: 0.1.1
version: 0.2.0
home: https://github.com/negz/kuberos
sources:
- https://github.com/negz/kuberos
Expand Down
4 changes: 4 additions & 0 deletions stable/kuberos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ These ones will be site specific and may contain sensitive information
| `tls` | List of SSL certs to use | Empty list |
| `secretName` | Name of the secret to use | Not Set |
| `hosts` | List of FQDN's the above secret is associated with| Not Set |
| `service` | A standard service block | See below |
| `type` | Service type | `ClusterIP` |
| `port` | Service port | `80` |
| `annotations` | Service annotations | `{}` |


### Other Config params can be left alone
Expand Down
4 changes: 4 additions & 0 deletions stable/kuberos/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
chart: {{ template "kuberos.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
2 changes: 2 additions & 0 deletions stable/kuberos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ image:
service:
type: ClusterIP
port: 80
annotations: {}
# Add your service annotations here.

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down

0 comments on commit 8446e41

Please sign in to comment.