Commit new App releases for TrueCharts

Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
This commit is contained in:
TrueCharts-Bot 2022-05-02 15:34:03 +00:00
parent 0fa8ebc4d7
commit 8414a95514
13 changed files with 59 additions and 8 deletions

View File

@ -1 +0,0 @@
{{ include "common.all" . }}

View File

@ -1,6 +1,15 @@
# Changelog<br>
<a name="netdata-0.0.5"></a>
### [netdata-0.0.5](https://github.com/truecharts/apps/compare/netdata-0.0.4...netdata-0.0.5) (2022-05-02)
#### Chore
* use configmap for readability and extendability ([#2601](https://github.com/truecharts/apps/issues/2601))
<a name="netdata-0.0.4"></a>
### [netdata-0.0.4](https://github.com/truecharts/apps/compare/netdata-0.0.3...netdata-0.0.4) (2022-05-02)

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://library-charts.truecharts.org
version: 9.3.2
digest: sha256:4514044d0d416a02c0029081a25943395114bcb29df51a2ede27d4257f71d412
generated: "2022-05-02T08:01:14.684535489Z"
generated: "2022-05-02T15:25:22.477003974Z"

View File

@ -18,7 +18,7 @@ maintainers:
name: netdata
sources:
- https://github.com/netdata
version: 0.0.4
version: 0.0.5
annotations:
truecharts.org/catagories: |
- utilities

View File

@ -99,6 +99,12 @@ persistence:
hostPath: "/proc"
mountPath: "/host/proc"
readOnly: true
dev:
enabled: true
type: hostPath
hostPath: "/dev"
mountPath: "/host/dev"
readOnly: true
sys:
enabled: true
type: hostPath
@ -119,16 +125,17 @@ initContainers:
volumeMounts:
- name: config
mountPath: "/etc/netdata"
- name: netdata-configs
mountPath: "/etc/netdata/truecharts-defaults/.netdata.conf"
subPath: netdata-conf
readOnly: true
command: ["/bin/sh", "-c"]
args:
- >
export configfile=/etc/netdata/netdata.conf;
if [ ! -f $configfile ]; then
echo "Creating config file...";
echo '[global]' > $configfile;
echo ' memory mode = dbengine' >> $configfile;
echo ' dbengine multihost disk space = 4096' >> $configfile;
echo ' page cache size = 64' >> $configfile;
cp /etc/netdata/truecharts-defaults/.netdata.conf $configfile
else
echo "Config file exists, skipping...";
fi;
cat $configfile

View File

@ -0,0 +1,20 @@
{{- include "common.setup" . }}
{{/* Append the hardcoded settings */}}
{{- define "netdata.harcodedValues" -}}
persistence:
netdata-configs:
enabled: "true"
mountPath: "/etc/netdata/truecharts-defaults/.netdata.conf"
subPath: "netdata-conf"
type: "custom"
volumeSpec:
configMap:
name: {{ printf "%v-configs" (include "common.names.fullname" .) }}
{{- end -}}
{{- $_ := mergeOverwrite .Values (include "netdata.harcodedValues" . | fromYaml) -}}
{{- include "netdata.configmap" . }}
{{/* Render the templates */}}
{{ include "common.postSetup" . }}

View File

@ -0,0 +1,16 @@
{{- define "netdata.configmap" -}}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "common.names.fullname" . }}-configs
labels:
{{- include "common.labels" . | nindent 4 }}
data:
netdata-conf: |-
[global]
memory mode = dbengine
dbengine multihost disk space = 4096
page cache size = 64
{{- end -}}