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

Add validation that kubeconfig is specified #1063

Merged
merged 2 commits into from
May 12, 2023

Conversation

mszostok
Copy link
Contributor

@mszostok mszostok commented May 12, 2023

Description

Changes proposed in this pull request:

  • Add validation that kubeconfig is specified

Testing

  • remove the context property for helm,kc and k8s plugins
  • for sources: nothing to do
  • for executors: run @Botkube helm or @Botkube kc
  • next, check the Botkube logs

In the future, we should remove the internal logging and introduce an error feedback channel. Additionally, we can also consider posting errors on Slack/etc. Here we need to think whether post them directly or maybe introduce sth like @Botkube check health or sth similar.

Some time ago it was also mentioned here: #878

Related issue(s)

Fix #1048

@mszostok mszostok added the enhancement New feature or request label May 12, 2023
@mszostok mszostok force-pushed the validate-kc branch 2 times, most recently from a91fc3b to ac04af7 Compare May 12, 2023 10:03
@mszostok mszostok marked this pull request as ready for review May 12, 2023 10:03
@mszostok mszostok requested review from a team and PrasadG193 as code owners May 12, 2023 10:03
@pkosiec pkosiec requested review from pkosiec and removed request for huseyinbabal May 12, 2023 10:10
@pkosiec pkosiec self-assigned this May 12, 2023
Copy link
Member

@pkosiec pkosiec left a comment

Choose a reason for hiding this comment

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

LGTM

pkg/pluginx/kubeconfig.go Outdated Show resolved Hide resolved
@mszostok mszostok merged commit bf1d111 into kubeshop:main May 12, 2023
pkosiec pushed a commit to pkosiec/botkube that referenced this pull request May 12, 2023
pkosiec pushed a commit that referenced this pull request May 12, 2023
@mszostok mszostok deleted the validate-kc branch May 12, 2023 14:16
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.

Return more useful error when required RBAC is missing
2 participants