-
Notifications
You must be signed in to change notification settings - Fork 88
CLOUDP-339293: Add plugin version check #4160
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
CLOUDP-339293: Add plugin version check #4160
Conversation
internal/plugin/plugin_test.go
Outdated
assert.Equal(t, plugin.Commands[0].Aliases, manifest.Commands["testCommand"].Aliases) | ||
} | ||
|
||
func TestPluginVerion(t *testing.T) { |
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.
func TestPluginVerion(t *testing.T) { | |
func TestPluginVersion(t *testing.T) { |
return | ||
} | ||
} | ||
// Disabling this plugin test until atlas-cli-plugin-kubernetes v1.1.7 is released. Will be re-enabled by CLOUDP-340658 |
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.
[q] should we keep the plugin test running and comment the validation instead until we release?
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.
Makes sense, modified this ticket which is to be done after changes to k8s plugin to reflect the new approach: CLOUDP-340658
internal/plugin/plugin.go
Outdated
} | ||
|
||
func (p *Plugin) Run(cmd *cobra.Command, args []string) error { | ||
// TODO: uncomment after plugin release |
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.
to be done by CLOUDP-340658
Proposed changes
PR (2/2) of #4158
For the two plugins effected by the refactor work of the Service Accounts Epic, we need to check if the plugins are a version which supports the new config version.
To address this, I have added a check when running a plugin command which:
Plugin min versions
These versions are the expected versions we will implement support for the refactor work.
plugin refactor work tickets:
Example error: