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
Feature: Allow to disable a plugin #74840
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 think this looks good
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! 🚀
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 think we could probably just do this within pluginsintegration
, no? We can introduce the step there in here https://github.com/grafana/grafana/blob/main/pkg/services/pluginsintegration/pipeline/steps.go and then we also don't have to introduce a new config to the plugins config struct.
WDYT?
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.
docs look good! Thanks for the contribution!
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 with a nit
conf/defaults.ini
Outdated
@@ -1478,6 +1478,8 @@ public_key_retrieval_disabled = false | |||
# Force download of the public key for verifying plugin signature on startup. If disabled, the public key will be retrieved every 10 days. | |||
# Requires public_key_retrieval_disabled to be false to have any effect. | |||
public_key_retrieval_on_startup = false | |||
# Enter a comma-separated list of plugin identifiers to skip loading (including core plugins). These plugins will be hidden in the catalog. | |||
skip_plugins = |
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.
Nit. Would perhaps suggest renaming it to disabled_plugins
. Something with "skip" that does feel weird to read for me without being able to pinpoint exactly why 😄
Right, I always forget 👍
Sounds good to me 👍 |
@wbrowne as far as I can tell, the config change is still necessary because it's what's received in the pipeline but let me know if I am missing something. |
Ah yeah I was thinking just also inject Grafana's |
What is this feature?
Add the possibility to skip loading a plugin, including core plugins (but not limited to those).
Why do we need this feature?
An operator may want to disable a plugin.
Who is this feature for?
Grafana operators.
Which issue(s) does this PR fix?:
Fixes https://github.com/grafana/grafana-operator-experience-squad/issues/614
Special notes for your reviewer:
Note that I have skipped adding a feature flag for this featue since it won't be used unless it's configured. Let me know if you still think a feature flag is necessary.
Please check that: