From abd14e456b22c681cdf41decd07780708fc71cb5 Mon Sep 17 00:00:00 2001
From: nwsparks
Date: Fri, 12 Jul 2024 11:13:39 -0400
Subject: [PATCH 1/2] add config to helm chart to redeploy pods on config map
changes
---
deploy/chart/Chart.yaml | 4 ++--
deploy/chart/README.md | 1 +
deploy/chart/templates/deployment.yaml | 7 ++++---
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/deploy/chart/Chart.yaml b/deploy/chart/Chart.yaml
index ada634f9..5ed388bc 100644
--- a/deploy/chart/Chart.yaml
+++ b/deploy/chart/Chart.yaml
@@ -1,7 +1,7 @@
apiVersion: v2
name: kwatch
-version: "0.9.5"
-appVersion: "v0.9.5"
+version: "0.9.6"
+appVersion: "v0.9.6"
description: monitor all changes in your Kubernetes(K8s) cluster, detects crashes
in your running apps in realtime, and publishes notifications to your channels (Slack,
Discord, etc.) instantly
diff --git a/deploy/chart/README.md b/deploy/chart/README.md
index 43a77e6c..e2c45dad 100644
--- a/deploy/chart/README.md
+++ b/deploy/chart/README.md
@@ -27,6 +27,7 @@ helm delete --purge [RELEASE_NAME]
| Parameter | Description | Default |
|-----------|-------------|---------|
| `podAnnotations` | Pod annotations | {} |
+| `podLabels` | Pod labels | {} |
| `securityContext.runAsNonRoot` | Container runs as a non-root user | true |
| `securityContext.runAsUser` | Container processes' UID to run the entrypoint | 101 |
| `securityContext.runAsGroup` | Container processes' GID to run the entrypoint | 101 |
diff --git a/deploy/chart/templates/deployment.yaml b/deploy/chart/templates/deployment.yaml
index e0d0f76e..687918aa 100644
--- a/deploy/chart/templates/deployment.yaml
+++ b/deploy/chart/templates/deployment.yaml
@@ -12,10 +12,11 @@ spec:
{{- include "kwatch.selectorLabels" . | nindent 6 }}
template:
metadata:
- {{- with .Values.podAnnotations }}
annotations:
- {{- toYaml . | nindent 8 }}
- {{- end }}
+ checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
+ {{- with .Values.podAnnotations }}
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
labels:
{{- include "kwatch.selectorLabels" . | nindent 8 }}
{{- with .Values.podLabels }}
From 9b152e548e3b8a1e4a0da458a947cc723cc007e4 Mon Sep 17 00:00:00 2001
From: nwsparks
Date: Fri, 12 Jul 2024 11:14:28 -0400
Subject: [PATCH 2/2] revert version change
---
deploy/chart/Chart.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/deploy/chart/Chart.yaml b/deploy/chart/Chart.yaml
index 5ed388bc..ada634f9 100644
--- a/deploy/chart/Chart.yaml
+++ b/deploy/chart/Chart.yaml
@@ -1,7 +1,7 @@
apiVersion: v2
name: kwatch
-version: "0.9.6"
-appVersion: "v0.9.6"
+version: "0.9.5"
+appVersion: "v0.9.5"
description: monitor all changes in your Kubernetes(K8s) cluster, detects crashes
in your running apps in realtime, and publishes notifications to your channels (Slack,
Discord, etc.) instantly