Commit new Chart releases for TrueCharts

Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
This commit is contained in:
TrueCharts-Bot 2023-01-18 07:45:59 +00:00
parent 2f05bae1d4
commit 7070cd3792
14 changed files with 63 additions and 17 deletions

View File

@ -1,9 +0,0 @@
## [uptime-kuma-5.0.11](https://github.com/truecharts/charts/compare/uptime-kuma-5.0.10...uptime-kuma-5.0.11) (2023-01-10)
### Chore
- update container image tccr.io/truecharts/uptime-kuma to v1.19.4

View File

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

View File

@ -4,6 +4,11 @@
## [uptime-kuma-5.0.12](https://github.com/truecharts/charts/compare/uptime-kuma-5.0.11...uptime-kuma-5.0.12) (2023-01-18)
## [uptime-kuma-5.0.11](https://github.com/truecharts/charts/compare/uptime-kuma-5.0.10...uptime-kuma-5.0.11) (2023-01-10)
### Chore
@ -90,10 +95,5 @@
## [uptime-kuma-5.0.2](https://github.com/truecharts/charts/compare/uptime-kuma-5.0.1...uptime-kuma-5.0.2) (2022-11-30)
## [uptime-kuma-5.0.2](https://github.com/truecharts/charts/compare/uptime-kuma-5.0.1...uptime-kuma-5.0.2) (2022-11-30)

View File

@ -21,7 +21,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/uptime-kuma
- https://github.com/louislam/uptime-kuma
type: application
version: 5.0.11
version: 5.0.12
annotations:
truecharts.org/catagories: |
- monitoring

View File

@ -0,0 +1,4 @@
## [uptime-kuma-5.0.12](https://github.com/truecharts/charts/compare/uptime-kuma-5.0.11...uptime-kuma-5.0.12) (2023-01-18)

View File

@ -5,4 +5,4 @@ This App is supplied by TrueCharts, for more information visit the manual: [http
---
TrueCharts can only exist due to the incredible effort of our staff.
Please consider making a [donation](https://truecharts.org/about/sponsor) or contributing back to the project any way you can!
Please consider making a [donation](https://truecharts.org/sponsor) or contributing back to the project any way you can!

View File

@ -20,6 +20,17 @@ service:
port: 3001
targetPort: 3001
# Metrics Services
metrics:
enabled: true
type: ClusterIP
ports:
metrics:
enabled: true
protocol: HTTP
port: 3002
targetPort: 3002
persistence:
config:
enabled: true

View File

@ -0,0 +1,23 @@
{{- define "uptime.prometheusrule" -}}
{{- if hasKey .Values "metrics" }}
{{- if and .Values.metrics.enabled .Values.metrics.prometheusRule.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: {{ include "tc.common.names.fullname" . }}
labels:
{{- include "tc.common.labels" . | nindent 4 }}
{{- with .Values.metrics.prometheusRule.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
groups:
- name: {{ include "tc.common.names.fullname" . }}
rules:
{{- with .Values.metrics.prometheusRule.rules }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}
{{- end -}}

View File

@ -1,5 +1,7 @@
{{- define "uptime.servicemonitor" -}}
{{- if hasKey .Values "metrics" }}
{{- if .Values.metrics.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
@ -24,3 +26,4 @@ spec:
path: /metrics
{{- end }}
{{- end }}
{{- end -}}

View File

@ -0,0 +1,15 @@
{{- include "tc.common.loader.init" . }}
{{- if hasKey .Values "metrics" -}}
{{- if .Values.metrics.enabled -}}
{{- $_ := set .Values.podAnnotations "prometheus.io/scrape" "true" -}}
{{- $_ := set .Values.podAnnotations "prometheus.io/path" "/metrics" -}}
{{- $_ := set .Values.podAnnotations "prometheus.io/port" (.Values.service.metrics.ports.metrics.targetPort | quote) -}}
{{- end -}}
{{- end -}}
{{- include "uptime.servicemonitor" . -}}
{{- include "uptime.prometheusrule" . -}}
{{/* Render the templates */}}
{{ include "tc.common.loader.apply" . }}