From 09d1f53f770f8c7535c811d1dee0ef77dc04bbf2 Mon Sep 17 00:00:00 2001 From: Guido Iaquinti Date: Mon, 15 Aug 2022 19:41:23 +0100 Subject: [PATCH] Revert "Helm: add Grafana annotations (#519)" This reverts commit 466849f9a105da55aecc01f13a080d69ba909ab5. --- .../grafana-annotation-post.job.yaml | 30 ------------------- .../templates/grafana-annotation-pre.job.yaml | 30 ------------------- 2 files changed, 60 deletions(-) delete mode 100644 charts/posthog/templates/grafana-annotation-post.job.yaml delete mode 100644 charts/posthog/templates/grafana-annotation-pre.job.yaml diff --git a/charts/posthog/templates/grafana-annotation-post.job.yaml b/charts/posthog/templates/grafana-annotation-post.job.yaml deleted file mode 100644 index 31329f698..000000000 --- a/charts/posthog/templates/grafana-annotation-post.job.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# -# This job gets installed only if Grafana, Loki and Promtail are enabled. -# -# It's an ephemeral container running at the start and end of each Helm -# deploy and it's used to log at stdout the Helm revision we are -# installing / we finished installing. -# -# This datapoint is useful and can be very helpful as annotation -# in Grafana dashboard. -# -{{- if and .Values.grafana.enabled (and .Values.loki.enabled .Values.promtail.enabled) -}} -apiVersion: batch/v1 -kind: Job -metadata: - name: {{ printf "%s-grafana-annotation-job-post" .Release.Name }} - annotations: - "helm.sh/hook": "post-install,post-upgrade,post-rollback" -spec: - template: - spec: - containers: - - name: grafana-annotation-job-post - image: {{ .Values.busybox.image }} - imagePullPolicy: {{ .Values.busybox.pullPolicy }} - command: - - /bin/sh - - -c - - | - echo '{"operation_stage": "end", "helm_revision": "{{ .Release.Revision }}"}' -{{- end }} diff --git a/charts/posthog/templates/grafana-annotation-pre.job.yaml b/charts/posthog/templates/grafana-annotation-pre.job.yaml deleted file mode 100644 index 68159b21e..000000000 --- a/charts/posthog/templates/grafana-annotation-pre.job.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# -# This job gets installed only if Grafana, Loki and Promtail are enabled. -# -# It's an ephemeral container running at the start and end of each Helm -# deploy and it's used to log at stdout the Helm revision we are -# installing / we finished installing. -# -# This datapoint is useful and can be very helpful as annotation -# in Grafana dashboard. -# -{{- if and .Values.grafana.enabled (and .Values.loki.enabled .Values.promtail.enabled) -}} -apiVersion: batch/v1 -kind: Job -metadata: - name: {{ printf "%s-grafana-annotation-job-pre" .Release.Name }} - annotations: - "helm.sh/hook": "pre-install,pre-upgrade,pre-rollback" -spec: - template: - spec: - containers: - - name: grafana-annotation-job-pre - image: {{ .Values.busybox.image }} - imagePullPolicy: {{ .Values.busybox.pullPolicy }} - command: - - /bin/sh - - -c - - | - echo '{"operation_stage": "start", "helm_revision": "{{ .Release.Revision }}"}' -{{- end }}