[qb] add deployment annotations (#176)

This commit is contained in:
Devin Buhl 2020-03-12 09:57:34 -04:00 committed by GitHub
parent 1220c61773
commit a435029a52
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: 4.2.1 appVersion: 14.2.0.99201912180418-6819-118af03ubuntu18.04.1-ls62
description: qBittorrent is a cross-platform free and open-source BitTorrent client description: qBittorrent is a cross-platform free and open-source BitTorrent client
name: qbittorrent name: qbittorrent
version: 3.0.1 version: 3.1.0
keywords: keywords:
- qbittorrent - qbittorrent
- torrrent - torrrent

View File

@ -86,6 +86,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: {{ template "qbittorrent.fullname" . }} name: {{ template "qbittorrent.fullname" . }}
{{- if .Values.deploymentAnnotations }}
annotations:
{{- range $key, $value := .Values.deploymentAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels: labels:
app.kubernetes.io/name: {{ include "qbittorrent.name" . }} app.kubernetes.io/name: {{ include "qbittorrent.name" . }}
helm.sh/chart: {{ include "qbittorrent.chart" . }} helm.sh/chart: {{ include "qbittorrent.chart" . }}

View File

@ -26,7 +26,7 @@ umask: 022
image: image:
repository: linuxserver/qbittorrent repository: linuxserver/qbittorrent
tag: 14.2.0.99201912180418-6819-118af03ubuntu18.04.1-ls57 tag: 14.2.0.99201912180418-6819-118af03ubuntu18.04.1-ls62
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
# resources: # resources:
# requests: # requests:
@ -148,3 +148,5 @@ tolerations: []
affinity: {} affinity: {}
podAnnotations: {} podAnnotations: {}
deploymentAnnotations: {}