[ombi] add deployment annotations (#173)

* [ombi] add deployment annotations

* Fix lint issue
This commit is contained in:
Devin Buhl 2020-03-12 09:51:43 -04:00 committed by GitHub
parent 352f2d37ec
commit cedcd11bfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 3 deletions

View File

@ -1,8 +1,8 @@
apiVersion: v1 apiVersion: v1
appVersion: 3.0.4958-ls73 appVersion: 3.0.5020-ls5
description: Want a Movie or TV Show on Plex or Emby? Use Ombi! description: Want a Movie or TV Show on Plex or Emby? Use Ombi!
name: ombi name: ombi
version: 2.0.3 version: 2.1.0
keywords: keywords:
- ombi - ombi
- plex - plex

View File

@ -69,6 +69,7 @@ The following tables lists the configurable parameters of the Sentry chart and t
| `tolerations` | Toleration labels for pod assignment | `[]` | | `tolerations` | Toleration labels for pod assignment | `[]` |
| `affinity` | Affinity settings for pod assignment | `{}` | | `affinity` | Affinity settings for pod assignment | `{}` |
| `podAnnotations` | Key-value pairs to add as pod annotations | `{}` | | `podAnnotations` | Key-value pairs to add as pod annotations | `{}` |
| `deploymentAnnotations` | Key-value pairs to add as deployment annotations | `{}` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,

View File

@ -2,6 +2,12 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ include "ombi.fullname" . }} name: {{ include "ombi.fullname" . }}
{{- if .Values.deploymentAnnotations }}
annotations:
{{- range $key, $value := .Values.deploymentAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels: labels:
app.kubernetes.io/name: {{ include "ombi.name" . }} app.kubernetes.io/name: {{ include "ombi.name" . }}
helm.sh/chart: {{ include "ombi.chart" . }} helm.sh/chart: {{ include "ombi.chart" . }}

View File

@ -4,7 +4,7 @@
image: image:
repository: linuxserver/ombi repository: linuxserver/ombi
tag: 3.0.4958-ls73 tag: 3.0.5020-ls5
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
# upgrade strategy type (e.g. Recreate or RollingUpdate) # upgrade strategy type (e.g. Recreate or RollingUpdate)
@ -104,3 +104,5 @@ tolerations: []
affinity: {} affinity: {}
podAnnotations: {} podAnnotations: {}
deploymentAnnotations: {}