-
Notifications
You must be signed in to change notification settings - Fork 332
Introduce Polaris Admin Tool (with bootstrap and purge commands) #605
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
Conversation
6a50ff4 to
9426e7b
Compare
9426e7b to
43fb4ea
Compare
43fb4ea to
31aedd4
Compare
53da2ac to
21fc9dd
Compare
21fc9dd to
4020a32
Compare
4020a32 to
1255c84
Compare
|
Note: documentation for the tool will come in #700. |
|
|
||
| public abstract class BaseCommand implements Callable<Integer> { | ||
|
|
||
| public static final Integer EXIT_CODE_BOOTSTRAP_ERROR = 2; |
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.
Let's not use 2 (and 1) here - it has a special meaning for some shells ("Misuse of shell built-in...").
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.
Replaced with 3 and 4.
|
|
||
| @Override | ||
| public String[] getVersion() throws Exception { | ||
| URL resource = |
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.
You can use PolarisVersion and not do the resource-dance.
| # under the License. | ||
| # | ||
|
|
||
| polaris.version=${polarisVersion} |
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.
Don't need this - use PolarisVersion
snazy
left a comment
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.
Overall LGTM - just replace the version-dance with PolarisVersion.
As a follow up - maybe worth to add some commands to dump the NOTICE/LICENSE/LICENSE-BINARY-DIST files (accessible via PolarisVersion as well).
|
Code looks quite familiar though ;) |
snazy
left a comment
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.
Awesome :)
Introduces a new module,
polaris-quarkus-adminwith maintenance commands such asbootstrapandpurge.For the
bootstrapcommand, this PR creates a way for the command to pass an instance ofPolarisBootstrapCredentialsto the meta store, thus avoiding the need for environment variables completely.