diff --git a/build/packages/rpm/server/SPECS/pmm-managed.spec b/build/packages/rpm/server/SPECS/pmm-managed.spec index b1da81ea78..519a4ffc1c 100644 --- a/build/packages/rpm/server/SPECS/pmm-managed.spec +++ b/build/packages/rpm/server/SPECS/pmm-managed.spec @@ -51,6 +51,7 @@ install -d -p %{buildroot}%{_sbindir} install -d -p %{buildroot}%{_datadir}/%{name} install -d -p %{buildroot}%{_datadir}/pmm-ui install -p -m 0755 bin/pmm-managed %{buildroot}%{_sbindir}/pmm-managed +install -p -m 0755 bin/pmm-encryption-rotation %{buildroot}%{_sbindir}/pmm-encryption-rotation install -p -m 0755 bin/pmm-managed-init %{buildroot}%{_sbindir}/pmm-managed-init install -p -m 0755 bin/pmm-managed-starlark %{buildroot}%{_sbindir}/pmm-managed-starlark @@ -62,12 +63,16 @@ cp -pa ./ui/dist/. %{buildroot}%{_datadir}/pmm-ui %license src/%{provider}/LICENSE %doc src/%{provider}/README.md %{_sbindir}/pmm-managed +%{_sbindir}/pmm-encryption-rotation %{_sbindir}/pmm-managed-init %{_sbindir}/pmm-managed-starlark %{_datadir}/%{name} %{_datadir}/pmm-ui %changelog +* Mon Sep 23 2024 Jiri Ctvrtka - 3.0.0-1 +- PMM-13132 add PMM encryption rotation tool + * Fri Mar 22 2024 Matej Kubinec - 3.0.0-1 - PMM-11231 add pmm ui diff --git a/managed/Makefile b/managed/Makefile index 7c1dd10781..ce6c7ae65c 100644 --- a/managed/Makefile +++ b/managed/Makefile @@ -38,7 +38,7 @@ clean: ## Remove generated files release: ## Build pmm-managed release binaries env CGO_ENABLED=0 go build -v $(PMM_LD_FLAGS) -o $(PMM_RELEASE_PATH)/ ./cmd/... -release-encryption-rotation: ## Build PMM encryption rotation release binaries +release-encryption-rotation: ## Build PMM encryption rotation tool env CGO_ENABLED=0 go build -v $(PMM_LD_FLAGS) -o $(PMM_RELEASE_PATH)/ ./cmd/pmm-encryption-rotation/... release-starlark: diff --git a/managed/cmd/pmm-encryption-rotation/main.go b/managed/cmd/pmm-encryption-rotation/main.go index 3eef7e3199..2cd78bf0a4 100644 --- a/managed/cmd/pmm-encryption-rotation/main.go +++ b/managed/cmd/pmm-encryption-rotation/main.go @@ -16,6 +16,7 @@ package main import ( + "fmt" "os" "os/signal" "syscall" @@ -25,6 +26,7 @@ import ( "github.com/percona/pmm/managed/models" "github.com/percona/pmm/utils/logger" + "github.com/percona/pmm/version" ) const codeDBConnectionFailed = 1 @@ -34,6 +36,8 @@ func main() { logger.SetupGlobalLogger() + logrus.Infof("PMM Encryption Rotation Tools version: %s", version.Version) + sqlDB, err := models.OpenDB(setupParams()) if err != nil { logrus.Error(err) @@ -62,6 +66,7 @@ func setupParams() models.SetupDBParams { kong.Parse( &opts, kong.Name("encryption-rotation"), + kong.Description(fmt.Sprintf("Version %s", version.Version)), kong.UsageOnError(), kong.ConfigureHelp(kong.HelpOptions{ Compact: true,