Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

helm install kubewatch with values.yaml , configmap still use slack webhook(did not use it) #255

Open
54853315 opened this issue Jan 11, 2021 · 2 comments

Comments

@54853315
Copy link

54853315 commented Jan 11, 2021

Hi everyone, I encountered a very strange problem.

I use helm chart (0.1.0) to update and deploy :

helm upgrade --install --create-namespace -n kube-watch -f values.yaml kubewatch bitnami/kubewatch

This is my configuration part:

slack:
  enabled: false
  # Slack channel to notify
  channel: "XXXX"
  # Slack bots token. Create using: https://my.slack.com/services/new/bot
  # and invite the bot to your channel using: /join @botname
  token: "XXXX"

hipchat:
  enabled: false
  # room: ""
  # token: ""
  # url: ""
mattermost:
  enabled: false
  # channel: ""
  # url: ""
  # username: ""
flock:
  enabled: false
  # url: ""
msteams:
  enabled: false
  # webhookurl: ""
webhook:
  enabled: true
  url: "http://wechat-webhook:8080"
smtp:
  enabled: false

And logs keep reporting (invalid_auth):

time="2021-01-11T09:43:08Z" level=info msg="Processing update to pod: *****-com-staging/backend-67fbf8d7dd-ntbm9" pkg=kubewatch-pod
2021/01/11 09:43:09 invalid_auth

Check the configmap, I get is:

Data
====
.kubewatch.yaml:
----
handler:
  slack:
    channel: XXXX
    enabled: true
    token: XXXX
resource:
  daemonset: false
  deployment: true
  job: false
  persistentvolume: false
  pod: true
  replicaset: false
  replicationcontroller: false
  services: false
namespace: ""

Events:  <none>
@maddymanu
Copy link

was anybody able to figure this out?

@54853315
Copy link
Author

54853315 commented Apr 9, 2021

was anybody able to figure this out?

In my case , I started setting webhook in values.yaml before helm upgrade --install step.

After deploymented,I'll never change it again .

It work fine ,But it's not customizable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants