-
Notifications
You must be signed in to change notification settings - Fork 295
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
Trigger automated actions based on config and fix event issues #848
Conversation
433a0f6
to
f993f15
Compare
f993f15
to
1d15d38
Compare
6e9e763
to
5c7dad2
Compare
@@ -46,4 +46,4 @@ linters-settings: | |||
local-prefixes: github.com/kubeshop/botkube | |||
gocyclo: | |||
# https://github.com/kubeshop/botkube/issues/745 | |||
min-complexity: 35 | |||
min-complexity: 40 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now our integration tests have complexity of 37 🙈
03f2f78
to
5cec51b
Compare
5cec51b
to
0f39922
Compare
@@ -13,6 +13,9 @@ data: | |||
executors: | |||
{{- .Values.executors | toYaml | nindent 6 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
is this somehow not needed here? In your PR description, there is un expected dashes in Describe resource action which causes a wrong behavior. I removed dashes from curl brackets and it worked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It renders correctly in this place:
global_config.yaml: |
executors:
kubectl-allow-all:
# (...)
actions:
get-created-resource:
# (...)
You're right though - in PR desc I had unnecessary dashes. I've actually fixed them before in the Helm chart values.yaml
, but forgot to update (synchronize) them in PR desc. Sorry for that! Fixed now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Changes proposed in this pull request:
While testing I also found, debugged and fixed the following issues:
Testing
Check out this PR:
gh pr checkout 848
Ensure that you run Botkube with the following
actions
andsources
local config:Run Botkube:
Trigger any event from command line, such as:
You can also apply the following resources:
Or check global ones:
See the output:
Related issue(s)
Resolves #831