-
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
Set custom path for mounted ServiceAccount token #1077
Conversation
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.
I like the path randomizaton approach 👍 However, it won't work correctly for now as we still have the automounted token from SA. Please apply the changes and let me know about it 🙂
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.
LGTM 🚀
pkg/config/config.go
Outdated
Log Logger `yaml:"log"` | ||
InformersResyncPeriod time.Duration `yaml:"informersResyncPeriod"` | ||
Kubeconfig string `yaml:"kubeconfig"` | ||
SaCredentialsPathPrefix string `yaml:"saCredentialsPathPrefix"` |
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.
Consider different casing:
SaCredentialsPathPrefix string `yaml:"saCredentialsPathPrefix"` | |
SACredentialsPathPrefix string `yaml:"saCredentialsPathPrefix"` |
(you can ignore this comment if you don't like it)
internal/kubex/rest.go
Outdated
"k8s.io/klog/v2" | ||
) | ||
|
||
// BuildConfigFromFlags Kubeconfig config initialization |
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.
This is also copied, right? Could you also add a link to the source?
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.
LGTM 🚀
Description
Changes proposed in this pull request:
Testing
gh pr checkout 1077 --repo=https://github.com/kubeshop/botkube
Related issue(s)
Relates #1021