diff --git a/ntfy/Chart.yaml b/ntfy/Chart.yaml index ea0e1d6..a220ee4 100644 --- a/ntfy/Chart.yaml +++ b/ntfy/Chart.yaml @@ -3,7 +3,7 @@ name: ntfy description: A Helm chart for Kubernetes icon: https://github.com/binwiederhier/ntfy/raw/main/web/public/static/images/pwa-512x512.png type: application -version: 0.1.13 +version: 0.2.0 # renovate: image=docker.io/binwiederhier/ntfy appVersion: "2.11.0" maintainers: diff --git a/ntfy/README.adoc b/ntfy/README.adoc index 3656189..af49c20 100644 --- a/ntfy/README.adoc +++ b/ntfy/README.adoc @@ -2,7 +2,7 @@ = ntfy -image::https://img.shields.io/badge/Version-0.1.13-informational?style=flat-square[Version: 0.1.13] +image::https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square[Version: 0.2.0] image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application] image::https://img.shields.io/badge/AppVersion-2.11.0-informational?style=flat-square[AppVersion: 2.11.0] == Maintainers @@ -72,6 +72,16 @@ helm uninstall ntfy-release | `80` | +| env +| list +| `[]` +| set env in container for usage Environment variables + +| envFrom +| list +| `[]` +| set envFrom in container for usage of ConfigMaps or Secrets as a bunch of Environment variables + | fullnameOverride | string | `""` @@ -435,7 +445,7 @@ helm uninstall ntfy-release | podSecurityContext | object | `{}` -| +| set securityContext on pod level | prometheus.rules.additionalRules | list @@ -475,7 +485,7 @@ helm uninstall ntfy-release | securityContext | object | `{}` -| +| set securityContext on container level | service.http.port | int diff --git a/ntfy/templates/deployment.yaml b/ntfy/templates/deployment.yaml index 16ede25..9ea830b 100644 --- a/ntfy/templates/deployment.yaml +++ b/ntfy/templates/deployment.yaml @@ -42,9 +42,16 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: [ "serve" ] + {{- with .Values.env }} + env: + {{- toYaml . | nindent 12 }} + {{- end }} envFrom: - configMapRef: name: {{ include "ntfy.fullname" . }}-env + {{- with .Values.envFrom }} + {{- toYaml . | nindent 12 }} + {{- end }} ports: - name: http containerPort: {{ .Values.service.http.port }} diff --git a/ntfy/values.yaml b/ntfy/values.yaml index 36c773b..1047f8f 100644 --- a/ntfy/values.yaml +++ b/ntfy/values.yaml @@ -144,9 +144,16 @@ serviceAccount: podLabels: {} podAnnotations: {} +# -- set env in container for usage Environment variables +env: [] +# -- set envFrom in container for usage of ConfigMaps or Secrets as a bunch of Environment variables +envFrom: [] + +# -- set securityContext on pod level podSecurityContext: {} # fsGroup: 2000 +# -- set securityContext on container level securityContext: {} # capabilities: # drop: