feat(ntfy): add support to set env and envFrom

This commit is contained in:
pat-s 2024-07-15 18:36:24 +02:00 committed by WrenIX
parent 00f54c07ed
commit 1f45a8d4d7
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
4 changed files with 28 additions and 4 deletions

View file

@ -3,7 +3,7 @@ name: ntfy
description: A Helm chart for Kubernetes description: A Helm chart for Kubernetes
icon: https://github.com/binwiederhier/ntfy/raw/main/web/public/static/images/pwa-512x512.png icon: https://github.com/binwiederhier/ntfy/raw/main/web/public/static/images/pwa-512x512.png
type: application type: application
version: 0.1.13 version: 0.2.0
# renovate: image=docker.io/binwiederhier/ntfy # renovate: image=docker.io/binwiederhier/ntfy
appVersion: "2.11.0" appVersion: "2.11.0"
maintainers: maintainers:

View file

@ -2,7 +2,7 @@
= ntfy = 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/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] image::https://img.shields.io/badge/AppVersion-2.11.0-informational?style=flat-square[AppVersion: 2.11.0]
== Maintainers == Maintainers
@ -72,6 +72,16 @@ helm uninstall ntfy-release
| `80` | `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 | fullnameOverride
| string | string
| `""` | `""`
@ -435,7 +445,7 @@ helm uninstall ntfy-release
| podSecurityContext | podSecurityContext
| object | object
| `{}` | `{}`
| | set securityContext on pod level
| prometheus.rules.additionalRules | prometheus.rules.additionalRules
| list | list
@ -475,7 +485,7 @@ helm uninstall ntfy-release
| securityContext | securityContext
| object | object
| `{}` | `{}`
| | set securityContext on container level
| service.http.port | service.http.port
| int | int

View file

@ -42,9 +42,16 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
args: [ "serve" ] args: [ "serve" ]
{{- with .Values.env }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
envFrom: envFrom:
- configMapRef: - configMapRef:
name: {{ include "ntfy.fullname" . }}-env name: {{ include "ntfy.fullname" . }}-env
{{- with .Values.envFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
ports: ports:
- name: http - name: http
containerPort: {{ .Values.service.http.port }} containerPort: {{ .Values.service.http.port }}

View file

@ -144,9 +144,16 @@ serviceAccount:
podLabels: {} podLabels: {}
podAnnotations: {} 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: {} podSecurityContext: {}
# fsGroup: 2000 # fsGroup: 2000
# -- set securityContext on container level
securityContext: {} securityContext: {}
# capabilities: # capabilities:
# drop: # drop: