Comments (4)
Hi @pkosiec, your solutions works fine!
{{- if .Values.existingCommunicationsSecretName }}
{{- $secret := lookup "v1" "Secret" .Release.Namespace .Values.existingCommunicationsSecretName | default dict }}
- {{- $data := b64dec (index $secret.data "comm_config.yaml") -}}
+ {{- $secretData := $secret.data | default dict -}}
+ {{- $data := b64dec (index $secretData "comm_config.yaml" | default "") -}}
{{- $dataYaml := $data | fromYaml -}}
{{- $communications = $dataYaml.communications }}
{{- end }}
I open the PR #1378
Thanks
from botkube.
Hey @voriol,
There might be a bug in the Helm chart when using existing secret. Unfortunately we're focused on different priorities and I think we won't be able to fix this issue in next few weeks. Here are the possible solutions/workarounds I can see:
- You might try migrating your instance to Botkube Cloud, which doesn't have this issue as it doesn't use the complex ConfigMap merging logic. It's free for a single cluster!
- Alternatively, you could switch to use built-in secret with platform details
- Or, if you have a bit of time and energy, you could contribute and investigate/fix the bug. That would be much appreciated 🙏 Here are a few tips:
You can clone the repo and try to modify the Helm chart in this place:
https://github.com/kubeshop/botkube/blob/main/helm/botkube/templates/persistent-config.yaml#L6
I didn't try it yet, but this could work:
{{- if .Values.existingCommunicationsSecretName }}
{{- $secret := lookup "v1" "Secret" .Release.Namespace .Values.existingCommunicationsSecretName | default dict }}
- {{- $data := b64dec (index $secret.data "comm_config.yaml") -}}
+ {{- $secretData := $secret.data | default dict -}}
+ {{- $data := b64dec (index $secretData "comm_config.yaml" | default "") -}}
{{- $dataYaml := $data | fromYaml -}}
{{- $communications = $dataYaml.communications }}
{{- end }}
Hope that helps. Cheers!
from botkube.
I'll try to take a look at it next week.
thanks @pkosiec
from botkube.
Perfect, thank you!
from botkube.
Related Issues (20)
- Disable interactive commands HOT 2
- Adding user mentions in the command header for interactive responses
- Update keptn plugin deps HOT 1
- Release Botkube 1.8 HOT 1
- Write new dev blog post HOT 4
- OpenAI model in Doctor plugin was shut down HOT 1
- Botkube/doctor request to OpenAI 404:invalid_request_error HOT 3
- Botkube doesn't respond when a message comes from an other bot
- Socket Slack Docs HOT 1
- Notification not working HOT 2
- Handle non-native k8s verbs in `kubectl` auth service
- Offer to use ollama instead of chatgpt HOT 1
- Release Botkube v1.9.0
- Helm plugin missing from plugins-index.yaml for 1.9.0 HOT 2
- Increased resources consumption configuring some sources HOT 3
- K8s source doesn't send alerts when the extra buttons cannot be rendered
- AI eng blog post HOT 1
- weekly/daily report blog post
- Improve documentation structure
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botkube.