Skip to content

Commit

Permalink
Tools 2831 Deprecate generate conf cmd (#262)
Browse files Browse the repository at this point in the history
* chore: TOOLS-2831 Add deprecation warning to `generate` cmd.
  • Loading branch information
Jesse S authored Jan 29, 2024
1 parent 97b4bee commit d0d893f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/live_cluster/generate_config_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@


@CommandHelp(
"BETA: Currently only supports generating a static configuration file from a live node via the 'config' subcommand.",
"DEPRECATED: Use asconfig's `generate` command instead.",
hide=True,
)
class GenerateController(LiveClusterCommandController):
def __init__(self):
Expand All @@ -25,7 +26,7 @@ def __init__(self):


@CommandHelp(
"BETA: Generates a static configuration file from a live node,",
"DEPRECATED: Generates a static configuration file from a live node. Use asconfig's `generate` command instead.",
usage=f"[-o <output_file>] {ModifierUsage.WITH}",
modifiers=(
ModifierHelp(
Expand All @@ -37,6 +38,7 @@ def __init__(self):
"Generate an aerospike.conf file from the specified node. If multiple are selected a random node is used. Acceptable values are ip:port, node-id, or FQDN",
),
),
hide=True,
)
class GenerateConfigController(LiveClusterCommandController):
def __init__(self):
Expand Down Expand Up @@ -94,8 +96,5 @@ async def _do_default(self, line):
self.view.print_result(str_config + "\n")

logger.warning(
"Community Edition is not supported. Generated static configuration does not save logging.syslog, mod-lua, service.user and service.group."
)
logger.warning(
"This feature is currently in beta. Use at your own risk and please report any issue to support."
"This feature is now deprecated in favor of asconfig's `generate` command. It will be removed in a future release."
)

0 comments on commit d0d893f

Please sign in to comment.