Commit ea8d0f48 authored by Arie Peterson's avatar Arie Peterson
Browse files

Allow setting more kubernetes labels and annotations

parent 6dcb1b11
## [0.5.2] - 2021-11-03
* Allow setting custom Kubernetes labels and annotations on onlyoffice deployment
and pod.
## [0.5.1] - 2021-11-03
* Fix mistakes in sociallogin config
......
......@@ -3,7 +3,7 @@ apiVersion: v2
description: |
A helm chart for installing NextCloud and setting up ONLYOFFICE integration
name: nextcloud-onlyoffice
version: 0.5.1
version: 0.5.2
appVersion: NC-20.0.11-OO-6.2.2.21
dependencies:
# https://artifacthub.io/packages/helm/nextcloud/nextcloud
......
......@@ -7,6 +7,9 @@ metadata:
helm.sh/chart: {{ include "onlyoffice-documentserver.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.onlyoffice.deploymentLabels }}
{{- toYaml .Values.onlyoffice.deploymentLabels | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.onlyoffice.replicaCount }}
strategy:
......@@ -20,6 +23,10 @@ spec:
labels:
app.kubernetes.io/name: {{ include "onlyoffice-documentserver.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.onlyoffice.podLabels }}
{{- toYaml .Values.onlyoffice.podLabels | nindent 8 }}
{{- end }}
annotations: {{ toYaml .Values.onlyoffice.podAnnotations | nindent 8 }}
spec:
containers:
- name: {{ .Chart.Name }}
......
......@@ -124,6 +124,13 @@ onlyoffice:
# cpu: 100m
# memory: 128Mi
# Custom labels to add to the onlyoffice documentserver deployment.
deploymentLabels: {}
# Custom labels to add to the onlyoffice documentserver pod.
podLabels: {}
# Custom annotations to add to the onlyoffice documentserver pod.
podAnnotations: {}
nodeSelector: {}
tolerations: []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment