v0.8.4
This release contains a few features and fixes and a breaking change:
- The subcommands will no longer panic, instead they'll print an error message and return.
- Health check endpoints are added to the gRPC API and the HTTP gateway, which be used for readiness/liveness in containerized environments and k8s. All the probes return whether all the servers are running or not. The health check works both on the gRPC server and the HTTP server and can be tested using the following commands:
$ curl http://localhost:18080/healthz {"status":"SERVING"} $ grpc-client-cli health localhost:19090 { "status": "SERVING" } - The
plugin installhas undergone some changes:- An option is added to enable interactive prompt when updating the plugin or backing up the plugins config file before the update. To activate the interactive prompt, you can use the
--no-prompt=falseflag. - When using the
plugin installcommand, users can now choose whether they want to create a backup of the current plugins config file (if it exists) before proceeding with the installation. This can be achieved by using the--backup=trueflag. - The updated
plugin installcommand will replace the plugin configuration of the newly installed plugin with any existing configuration for a plugin in the plugins list that shares the same name. You can enable this behavior using the--update=trueflag.
- An option is added to enable interactive prompt when updating the plugin or backing up the plugins config file before the update. To activate the interactive prompt, you can use the
Warning
Important Change inplugin installCommand
Starting with this release, there is a breaking change in theplugin installcommand. By default, the interactive prompt is now disabled (--no-prompt=true) when installing a new plugin. If an existing plugin with the same name is detected during installation, the process will be aborted, and any downloaded files will be automatically deleted, unless you pass the--cleanup=falseflag.To override this default behavior and have more control:
- Enable the interactive prompt to be notified of the changes and have the option to approve or deny them.
- Pass the appropriate flags to enable the update and backup features.
These changes are aimed at enhancing your control over the installation process and minimizing any unexpected actions when dealing with plugins. Please adjust your installation process accordingly to accommodate these modifications.
What's Changed
- Update plugin in the list and backup plugins config when using
plugin installby @mostafa in #349 - Print and return instead of
log.Panicby @mostafa in #351 - Add healthz endpoints by @mostafa in #353
Full Changelog: v0.8.3...v0.8.4