Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update instruction for creating a new filter #81

Merged
merged 2 commits into from Jun 6, 2022

Conversation

pkosiec
Copy link
Member

@pkosiec pkosiec commented Jun 3, 2022

SUMMARY

This PR updates docs for PR kubeshop/botkube#603.

See kubeshop/botkube#603 and kubeshop/botkube#220 for more info.

⚠️ This PR describes unreleased changes. However, the instruction didn't mention to check out BotKube from release tag, so I think it is safe to merge, but please also double check.

Resolves kubeshop/botkube#220

@netlify
Copy link

netlify bot commented Jun 3, 2022

Deploy Preview for objective-jones-39e308 ready!

Name Link
🔨 Latest commit 009ea34
🔍 Latest deploy log https://app.netlify.com/sites/objective-jones-39e308/deploys/629de7de1ad07d00082b74fa
😎 Deploy Preview https://deploy-preview-81--objective-jones-39e308.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

content/filters/_index.md Outdated Show resolved Hide resolved
content/filters/_index.md Show resolved Hide resolved
content/filters/_index.md Outdated Show resolved Hide resolved
Copy link
Contributor

@mszostok mszostok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go code is still wrongly formatted 😄

mergify bot pushed a commit to kubeshop/botkube that referenced this pull request Jun 6, 2022
…ve error handling #603

##### ISSUE TYPE
 - Feature Pull Request

##### SUMMARY
- Use envconfig
- Remove global variables related to Kubernetes, logger, and filters
- Pass context across all components - support graceful shutdown of all BotKube components
- Improve error handling (return errors in almost all places instead of ignoring/logging them)

This is just a start, as later (during new features development) we should refactor each component/package in isolation. But after this huge PR it should be possible to do it.

Fixes #220 

##### TODO

After first review of this PR if the new filter engine approach is accepted: 
- [x] Update documentation (https://www.botkube.io/filters/) PR: kubeshop/botkube-docs#81

##### TESTING

Tested manually with Mattermost, Discord and Slack.
You can use the following image:`pkosiec/botkube:remove-global-vars-v2`
Copy link
Contributor

@mszostok mszostok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now LGTM 😄

@pkosiec pkosiec merged commit 50bd87a into kubeshop:master Jun 6, 2022
@pkosiec pkosiec deleted the update-filter-guide branch June 6, 2022 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Propogate context and remove global variables usage
2 participants