-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Use label to select Velero deployment in plugin cmd #3447
Use label to select Velero deployment in plugin cmd #3447
Conversation
Signed-off-by: F. Gold <fgold@vmware.com>
Signed-off-by: F. Gold <fgold@vmware.com>
Signed-off-by: F. Gold <fgold@vmware.com>
692845a
to
0a4cc32
Compare
Signed-off-by: F. Gold <fgold@vmware.com>
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 is good, but one suggestion for re-using code.
Signed-off-by: F. Gold <fgold@vmware.com>
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.
Thanks for this! This was definitely a bug as people using non-standard Deployment names couldn't actually install plugins.
* Use label to select Velero deployment in plugin cmd Signed-off-by: F. Gold <fgold@vmware.com> * Move veleroLabel constant closer to usage Signed-off-by: F. Gold <fgold@vmware.com> * Add changelog Signed-off-by: F. Gold <fgold@vmware.com> * Remove year from copyright in new file Signed-off-by: F. Gold <fgold@vmware.com> * Export and use install.Labels() function Signed-off-by: F. Gold <fgold@vmware.com>
* Use label to select Velero deployment in plugin cmd Signed-off-by: F. Gold <fgold@vmware.com> * Move veleroLabel constant closer to usage Signed-off-by: F. Gold <fgold@vmware.com> * Add changelog Signed-off-by: F. Gold <fgold@vmware.com> * Remove year from copyright in new file Signed-off-by: F. Gold <fgold@vmware.com> * Export and use install.Labels() function Signed-off-by: F. Gold <fgold@vmware.com>
* Use label to select Velero deployment in plugin cmd Signed-off-by: F. Gold <fgold@vmware.com> * Move veleroLabel constant closer to usage Signed-off-by: F. Gold <fgold@vmware.com> * Add changelog Signed-off-by: F. Gold <fgold@vmware.com> * Remove year from copyright in new file Signed-off-by: F. Gold <fgold@vmware.com> * Export and use install.Labels() function Signed-off-by: F. Gold <fgold@vmware.com>
Closes #3088.
Modfied pkg/cmd/cli/plugin package files add.go and get.go. Instead of finding a Velero deployment using the name, "velero", used a label, "component=velero".
The Velero Helm chart will be modified to include the "component=velero" label. See vmware-tanzu/helm-chart PR215.
Signed-off-by: F. Gold fgold@vmware.com