diff --git a/stable/uptime-kuma/5.0.11/app-changelog.md b/stable/uptime-kuma/5.0.11/app-changelog.md deleted file mode 100644 index 491bb8dc417..00000000000 --- a/stable/uptime-kuma/5.0.11/app-changelog.md +++ /dev/null @@ -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 - - \ No newline at end of file diff --git a/stable/uptime-kuma/5.0.11/templates/common.yaml b/stable/uptime-kuma/5.0.11/templates/common.yaml deleted file mode 100644 index c1a366e1cf0..00000000000 --- a/stable/uptime-kuma/5.0.11/templates/common.yaml +++ /dev/null @@ -1 +0,0 @@ -{{ include "tc.common.loader.all" . }} diff --git a/stable/uptime-kuma/5.0.11/CHANGELOG.md b/stable/uptime-kuma/5.0.12/CHANGELOG.md similarity index 94% rename from stable/uptime-kuma/5.0.11/CHANGELOG.md rename to stable/uptime-kuma/5.0.12/CHANGELOG.md index d3cbf25f288..225c4f64c30 100644 --- a/stable/uptime-kuma/5.0.11/CHANGELOG.md +++ b/stable/uptime-kuma/5.0.12/CHANGELOG.md @@ -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) diff --git a/stable/uptime-kuma/5.0.11/Chart.yaml b/stable/uptime-kuma/5.0.12/Chart.yaml similarity index 98% rename from stable/uptime-kuma/5.0.11/Chart.yaml rename to stable/uptime-kuma/5.0.12/Chart.yaml index e5c6807d2fd..70ac5d14459 100644 --- a/stable/uptime-kuma/5.0.11/Chart.yaml +++ b/stable/uptime-kuma/5.0.12/Chart.yaml @@ -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 diff --git a/stable/uptime-kuma/5.0.11/README.md b/stable/uptime-kuma/5.0.12/README.md similarity index 100% rename from stable/uptime-kuma/5.0.11/README.md rename to stable/uptime-kuma/5.0.12/README.md diff --git a/stable/uptime-kuma/5.0.12/app-changelog.md b/stable/uptime-kuma/5.0.12/app-changelog.md new file mode 100644 index 00000000000..fb692ba0ff3 --- /dev/null +++ b/stable/uptime-kuma/5.0.12/app-changelog.md @@ -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) + diff --git a/stable/uptime-kuma/5.0.11/app-readme.md b/stable/uptime-kuma/5.0.12/app-readme.md similarity index 69% rename from stable/uptime-kuma/5.0.11/app-readme.md rename to stable/uptime-kuma/5.0.12/app-readme.md index ba63fa7ab7f..787125d5282 100644 --- a/stable/uptime-kuma/5.0.11/app-readme.md +++ b/stable/uptime-kuma/5.0.12/app-readme.md @@ -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! diff --git a/stable/uptime-kuma/5.0.11/charts/common-11.1.2.tgz b/stable/uptime-kuma/5.0.12/charts/common-11.1.2.tgz similarity index 100% rename from stable/uptime-kuma/5.0.11/charts/common-11.1.2.tgz rename to stable/uptime-kuma/5.0.12/charts/common-11.1.2.tgz diff --git a/stable/uptime-kuma/5.0.11/ix_values.yaml b/stable/uptime-kuma/5.0.12/ix_values.yaml similarity index 78% rename from stable/uptime-kuma/5.0.11/ix_values.yaml rename to stable/uptime-kuma/5.0.12/ix_values.yaml index c213c8585e2..ab8cb561d44 100644 --- a/stable/uptime-kuma/5.0.11/ix_values.yaml +++ b/stable/uptime-kuma/5.0.12/ix_values.yaml @@ -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 diff --git a/stable/uptime-kuma/5.0.11/questions.yaml b/stable/uptime-kuma/5.0.12/questions.yaml similarity index 100% rename from stable/uptime-kuma/5.0.11/questions.yaml rename to stable/uptime-kuma/5.0.12/questions.yaml diff --git a/stable/uptime-kuma/5.0.12/templates/_prometheusrules.tpl b/stable/uptime-kuma/5.0.12/templates/_prometheusrules.tpl new file mode 100644 index 00000000000..a9092303d92 --- /dev/null +++ b/stable/uptime-kuma/5.0.12/templates/_prometheusrules.tpl @@ -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 -}} diff --git a/stable/uptime-kuma/5.0.11/templates/servicemonitor.yaml b/stable/uptime-kuma/5.0.12/templates/_servicemonitor.tpl similarity index 93% rename from stable/uptime-kuma/5.0.11/templates/servicemonitor.yaml rename to stable/uptime-kuma/5.0.12/templates/_servicemonitor.tpl index 99036fc3da9..6e788d4c9c6 100644 --- a/stable/uptime-kuma/5.0.11/templates/servicemonitor.yaml +++ b/stable/uptime-kuma/5.0.12/templates/_servicemonitor.tpl @@ -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 -}} diff --git a/stable/uptime-kuma/5.0.12/templates/common.yaml b/stable/uptime-kuma/5.0.12/templates/common.yaml new file mode 100644 index 00000000000..9699ed7d301 --- /dev/null +++ b/stable/uptime-kuma/5.0.12/templates/common.yaml @@ -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" . }} diff --git a/stable/uptime-kuma/5.0.11/values.yaml b/stable/uptime-kuma/5.0.12/values.yaml similarity index 100% rename from stable/uptime-kuma/5.0.11/values.yaml rename to stable/uptime-kuma/5.0.12/values.yaml