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
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:

View file

@ -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

View file

@ -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 }}

View file

@ -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: