Skip to content

Conversation

@adutra
Copy link
Contributor

@adutra adutra commented Jan 2, 2025

Introduces a new module, polaris-quarkus-admin with maintenance commands such as bootstrap and purge.

For the bootstrap command, this PR creates a way for the command to pass an instance of PolarisBootstrapCredentials to the meta store, thus avoiding the need for environment variables completely.

@adutra adutra changed the title Quarkus server admin tool [WIP] Quarkus server admin tool Jan 2, 2025
@adutra adutra changed the title [WIP] Quarkus server admin tool [WIP] Polaris server admin tool Jan 2, 2025
@adutra adutra force-pushed the quarkus-commands branch 13 times, most recently from 6a50ff4 to 9426e7b Compare January 8, 2025 17:20
@adutra adutra force-pushed the quarkus-commands branch 10 times, most recently from 53da2ac to 21fc9dd Compare January 13, 2025 20:56
@adutra adutra changed the title [WIP] Polaris server admin tool Introduce Polaris Admin Tool (with bootstrap and purge commands) Jan 14, 2025
@adutra adutra marked this pull request as ready for review January 14, 2025 11:38
@adutra
Copy link
Contributor Author

adutra commented Jan 14, 2025

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;
Copy link
Member

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...").

Copy link
Contributor Author

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 =
Copy link
Member

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}
Copy link
Member

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

Copy link
Member

@snazy snazy left a 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).

@snazy
Copy link
Member

snazy commented Jan 14, 2025

Code looks quite familiar though ;)

Copy link
Member

@snazy snazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome :)

@adutra adutra merged commit 66ec47f into apache:main Jan 14, 2025
5 checks passed
@adutra adutra deleted the quarkus-commands branch January 14, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants