Git Product home page Git Product logo

keel-telegram-bot's Introduction

GitHub Streak

GitHub stats

Top Langs

keel-telegram-bot's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar markusressel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

keel-telegram-bot's Issues

can't report if deploy success or not

Describe the bug
Hi

I integrate keel and keel-telegram-bot, it's can send approval or reject message.
when the pod is deployed successfully, telegram can't receive result success or failed.

Here is keel log

time="2022-03-15T06:19:51Z" level=info msg="approvals.manager: approved" identifier="deployment/default/helloworld:latest"
time="2022-03-15T06:19:51Z" level=error msg="could not send notification via notifier" error="Post \"http://keel-telegram-bot.keel.svc.cluster.local:5000/\": dial tcp: lookup keel-telegram-bot.keel.svc.cluster.local: device or resource busy" notification name="update resource" sender name=webhook
time="2022-03-15T06:19:51Z" level=info msg="waiting before retrying to send notification" attempts=2 duration=1s max attempts=10 notification name="update resource" sender name=webhook

I think keel-telegram-bot can't proccess keel result message?

Simplify output of new approvals

Is your feature request related to a problem? Please describe.
The output of new approval entries is a bit hard to read and contains unnecessary info.

Describe the solution you'd like
Cleanup output:

New image is available for resource homeassistant/home-assistant (2020.12.1 -> 2020.12.1).
Expires: mm/dd hh:mm:ss (Xh Ym Zs)

Note: use local timezone, so no +00:00 etc.
Note2: the full suite of properties should still be shown, but only when directly interacting with the bot

Main variable node contains hypen, it should be underscore

Describe the bug
The hyphen in a variable name is not a POSIX standard

To Reproduce
export KEEL-TELEGRAM-BOT_KEEL_PASSWORD="mypassword"

Expected behavior
The variable should be created

Desktop (please complete the following information):

  • OS: Linux

How to mount config file into docker container

Hello, I want to try the prebuilt container image from docker hub in my kubernetes cluster but it fails to start with this error:

python: can't open file './keel_telegram_bot/main.py': [Errno 2] No such file or directory

I already tried the all the tags (v1.0.0, 1.2.0, latest), all of them failed with this error.

Provide deployment examples

Is your feature request related to a problem? Please describe.
I'm not able to receive notifications from keel.
I've set up keel through helm and the bot with a separate deployment.
The bot uses a service and an ingress to be available on a subdomain of my domain.
In keel's config I've set

webhook:
  enabled: true
  endpoint: https://keel-telegram.<DOMAIN>

In keel's dashboard I can see some approvals but I do not receive them in telegram.

In keel's logs I saw

time="2023-03-23T07:35:21Z" level=error msg="could not send notification via notifier" error="got status 403, expected 200/201" notification name="preparing to update resource" sender name=webhook
time="2023-03-23T07:35:21Z" level=info msg="waiting before retrying to send notification" attempts=8 duration=1m4s max attempts=10 notification name="preparing to update resource" sender name=webhook

But I don't know what's the exact problem.

Describe the solution you'd like
Provide an example deployment and the right settings in keel's config

Describe alternatives you've considered

Additional context

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.