diff --git a/charts/matrix-authentication-service/README.md b/charts/matrix-authentication-service/README.md index 4317ce8..9d6de31 100644 --- a/charts/matrix-authentication-service/README.md +++ b/charts/matrix-authentication-service/README.md @@ -28,6 +28,8 @@ A Helm chart for deploying the matrix authentication service on Kubernetes | configVolume.existingClaim | string | `""` | name of an existing persistent volume claim to use for matrix-authentication-service config. If provided, ignores mas parameter map | | configVolume.storage | string | `"500Mi"` | storage capacity for creating a persistent volume | | configVolume.storageClassName | string | `"default"` | name of storage class for the persistent volume | +| deploymentAnnotations | object | `{}` | | +| deploymentLabels | object | `{}` | | | existingMasConfigSecret | string | `""` | Existing Kubernetes Secret for entire matrix authentication service `config.yaml` file. If set, everything under the mas section of the values.yaml is ignored. | | externalDatabase.database | string | `"mas"` | name of the database to try and connect to | | externalDatabase.enabled | bool | `false` | enable using an external database *instead of* the Bitnami PostgreSQL sub-chart if externalDatabase.enabled is set to true, postgresql.enabled must be set to false | diff --git a/charts/matrix-authentication-service/templates/deployment.yaml b/charts/matrix-authentication-service/templates/deployment.yaml index 3e0a0c6..8b9001c 100644 --- a/charts/matrix-authentication-service/templates/deployment.yaml +++ b/charts/matrix-authentication-service/templates/deployment.yaml @@ -4,6 +4,13 @@ metadata: name: {{ include "matrix-authentication-service.fullname" . }} labels: {{- include "matrix-authentication-service.labels" . | nindent 4 }} + {{- with .Values.deploymentLabels }} + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with .Values.deploymentAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} diff --git a/charts/matrix-authentication-service/values.yaml b/charts/matrix-authentication-service/values.yaml index b2e6094..512b984 100644 --- a/charts/matrix-authentication-service/values.yaml +++ b/charts/matrix-authentication-service/values.yaml @@ -26,6 +26,8 @@ serviceAccount: # If not set and create is true, a name is generated using the fullname template name: "" +deploymentAnnotations: {} +deploymentLabels: {} podAnnotations: {} podLabels: {}