-
Notifications
You must be signed in to change notification settings - Fork 595
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
rpk: add rpk generate license
#24760
base: dev
Are you sure you want to change the base?
Conversation
It uses the public API to request a free trial license for 30 days.
Retry command for Build#60551please wait until all jobs are finished before running the slash command
|
CI test resultstest results on build#60551
|
If you require a permanent license, contact us: https://www.redpanda.com/contact | ||
|
||
The license will be saved in your working directory or the specified path, based | ||
on the --path value. |
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.
on the --path value. | |
on the --path flag. |
err = rpkos.ReplaceFile(fs, savePath, []byte(signup.Msg.GetLicense().LicenseKey), 0o644) | ||
if err != nil { | ||
fmt.Printf(` | ||
Successfully generated a license but we were unable to save it to a file: %v |
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.
Does the user have access to this value somewhere?
If not, we should inform them somehow. Github for example has this message when you're creating a token "Make sure to copy your personal access token now. You won’t be able to see it again!"
we could add something to that extend, if that's true.
Short: "Generate a trial license", | ||
Long: `Generate a trial license | ||
|
||
This command allows you to sign up for a 30 day trial of Redpanda Enterprise. |
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 command allows you to sign up for a 30 day trial of Redpanda Enterprise. | |
This command allows you to sign up for a 30-day trial of Redpanda Enterprise. |
}, | ||
} | ||
cmd.Flags().StringVar(&path, "path", "", "File path for generating the license") | ||
cmd.Flags().BoolVar(&noConfirm, "no-confirm", false, "Avoid confirmation prompt for overwriting the generated license file") |
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.
cmd.Flags().BoolVar(&noConfirm, "no-confirm", false, "Avoid confirmation prompt for overwriting the generated license file") | |
cmd.Flags().BoolVar(&noConfirm, "no-confirm", false, "Do not show confirmation prompt for overwriting the generated license file") |
For clarity - please check that the rephrase is correct.
cmd.Flags().StringVar(&path, "path", "", "File path for generating the license") | ||
cmd.Flags().BoolVar(&noConfirm, "no-confirm", false, "Avoid confirmation prompt for overwriting the generated license file") | ||
// License request info. | ||
cmd.Flags().StringVar(&lr.name, "name", "", "First name to register the trial license") |
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.
cmd.Flags().StringVar(&lr.name, "name", "", "First name to register the trial license") | |
cmd.Flags().StringVar(&lr.name, "name", "", "First name for trial license registration") |
For clarity
cmd.Flags().BoolVar(&noConfirm, "no-confirm", false, "Avoid confirmation prompt for overwriting the generated license file") | ||
// License request info. | ||
cmd.Flags().StringVar(&lr.name, "name", "", "First name to register the trial license") | ||
cmd.Flags().StringVar(&lr.lastname, "last-name", "", "Last name to register the trial license") |
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.
cmd.Flags().StringVar(&lr.lastname, "last-name", "", "Last name to register the trial license") | |
cmd.Flags().StringVar(&lr.lastname, "last-name", "", "Last name for register trial license registration") |
// License request info. | ||
cmd.Flags().StringVar(&lr.name, "name", "", "First name to register the trial license") | ||
cmd.Flags().StringVar(&lr.lastname, "last-name", "", "Last name to register the trial license") | ||
cmd.Flags().StringVar(&lr.company, "company", "", "Company name to register the trial license") |
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.
cmd.Flags().StringVar(&lr.company, "company", "", "Company name to register the trial license") | |
cmd.Flags().StringVar(&lr.company, "company", "", "Company name for trial license registration") |
cmd.Flags().StringVar(&lr.name, "name", "", "First name to register the trial license") | ||
cmd.Flags().StringVar(&lr.lastname, "last-name", "", "Last name to register the trial license") | ||
cmd.Flags().StringVar(&lr.company, "company", "", "Company name to register the trial license") | ||
cmd.Flags().StringVar(&lr.email, "email", "", "Company email to register the trial license") |
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.
cmd.Flags().StringVar(&lr.email, "email", "", "Company email to register the trial license") | |
cmd.Flags().StringVar(&lr.email, "email", "", "Company email for trial license registration") |
This new command allows users to request a free trial license for 30 days using rpk
Backports Required
Release Notes