vmware-tanzu / tanzu-cli

The Tanzu Core CLI project provides the core functionality of the Tanzu CLI. The CLI is based on a plugin architecture where CLI command functionality can be delivered through independently developed plugin binaries
Apache License 2.0
35 stars 22 forks source link

Support Activating plugins on Plugin Group Publish/Activation #794

Closed anujc25 closed 3 months ago

anujc25 commented 3 months ago

What this PR does / why we need it

There might be a use case where teams want to publish their plugins to the production in a deactivated state and only enable the plugins as part of the PluginGroup publishing process when thePluginGroup is Activated.

This PR supports this use case by exposing the TANZU_CLI_ACTIVATE_PLUGINS_ON_PLUGIN_GROUP_PUBLISH environment variable. If this environment variable is set to true as part of plugin group publishing or plugin group activation it will also activate the plugins within the plugin group.

Which issue(s) this PR fixes

Fixes #

Describe testing done for PR

Release note

Support Activating plugins on Plugin Group Publish/Activation

Additional information

Special notes for your reviewer