vmware-archive / kubewatch

Watch k8s events and trigger Handlers
Apache License 2.0
2.44k stars 442 forks source link

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

Open 54853315 opened 3 years ago

54853315 commented 3 years ago

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 commented 3 years ago

was anybody able to figure this out?

54853315 commented 3 years ago

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.