From 67ed18c9c8e4d717ca2f566ab18c2ff7d16b3bc5 Mon Sep 17 00:00:00 2001 From: Huseyin BABAL Date: Fri, 16 Jun 2023 12:48:37 +0300 Subject: [PATCH 1/2] in cluster config fixed for cfg watcher --- helm/botkube/templates/deployment.yaml | 5 +++++ helm/botkube/values.yaml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/helm/botkube/templates/deployment.yaml b/helm/botkube/templates/deployment.yaml index 7d061aa58..5efe48982 100644 --- a/helm/botkube/templates/deployment.yaml +++ b/helm/botkube/templates/deployment.yaml @@ -165,9 +165,14 @@ spec: value: "POST" - name: IGNORE_ALREADY_PROCESSED value: "true" + - name: BOTKUBE_SETTINGS_SA__CREDENTIALS__PATH__PREFIX + value: /var/run/{{ $uuid }}/secrets/kubernetes.io/serviceaccount/{{ $uuid }} volumeMounts: - name: cfg-watcher-tmp mountPath: {{ .Values.configWatcher.tmpDir }} + - name: {{ $uuid }} + mountPath: /var/run/{{ $uuid }}/secrets/kubernetes.io/serviceaccount + readOnly: true {{- end }} volumes: - name: cache-volume diff --git a/helm/botkube/values.yaml b/helm/botkube/values.yaml index 863199cfc..9eb3df3bf 100644 --- a/helm/botkube/values.yaml +++ b/helm/botkube/values.yaml @@ -964,7 +964,7 @@ configWatcher: # -- Config watcher image repository. repository: kubeshop/k8s-sidecar # kiwigrid/k8s-sidecar:1.19.5 - see https://github.com/kubeshop/k8s-sidecar/pull/1 # -- Config watcher image tag. - tag: ignore-initial-events + tag: in-cluster-config # -- Config watcher image pull policy. pullPolicy: IfNotPresent From 48153771bc81e818b7e45acf77768a0194836c8f Mon Sep 17 00:00:00 2001 From: Huseyin BABAL Date: Fri, 16 Jun 2023 12:54:06 +0300 Subject: [PATCH 2/2] process chart --- helm/botkube/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/botkube/README.md b/helm/botkube/README.md index b01cc9bf7..f265bc9cd 100644 --- a/helm/botkube/README.md +++ b/helm/botkube/README.md @@ -228,7 +228,7 @@ Controller for the Botkube Slack app which helps you monitor your Kubernetes clu | [configWatcher.initialSyncTimeout](./values.yaml#L960) | int | `0` | Timeout for the initial Config Watcher sync. If set to 0, waiting for Config Watcher sync will be skipped. In a result, configuration changes may not reload Botkube app during the first few seconds after Botkube startup. | | [configWatcher.image.registry](./values.yaml#L963) | string | `"ghcr.io"` | Config watcher image registry. | | [configWatcher.image.repository](./values.yaml#L965) | string | `"kubeshop/k8s-sidecar"` | Config watcher image repository. | -| [configWatcher.image.tag](./values.yaml#L967) | string | `"ignore-initial-events"` | Config watcher image tag. | +| [configWatcher.image.tag](./values.yaml#L967) | string | `"in-cluster-config"` | Config watcher image tag. | | [configWatcher.image.pullPolicy](./values.yaml#L969) | string | `"IfNotPresent"` | Config watcher image pull policy. | | [plugins](./values.yaml#L972) | object | `{"cacheDir":"/tmp","repositories":{"botkube":{"url":"https://storage.googleapis.com/botkube-plugins-latest/plugins-index.yaml"}}}` | Configuration for Botkube executors and sources plugins. | | [plugins.cacheDir](./values.yaml#L974) | string | `"/tmp"` | Directory, where downloaded plugins are cached. |