- Update to version 1.15.1:
- Packaging improvements:
* Rebase kured-imagePullPolicy.patch
* Rebase systemctl-path.patch
* _service change disabled to manual per osc deprecation warning:
WARNING: Command 'disabledrun/dr' is obsolete, please convert
your _service to use 'manual' and then 'manualrun/mr' instead.
* Update to BuildRequires: golang(API) >= 1.20 matching go.mod
* Re-enable binary stripping and debuginfo boo#1210938
* Drop BuildRequires: go-md2man and use plain markdown as %doc
* Drop BuildRequires: fdupes and usage during install step. Go
application packages have a small number of installed files and
this hasn't been an issue following the transition from GOPATH
* Drop ExcludeArch: s390
* Remove ldflags -X entries for upstream import path and version.
This information is embedded in binaries with go1.18+ and
available via go version -m or runtime/debug.ReadBuildInfo().
* Remove define git commit ref no longer needed
* Build PIE with pattern that may become recommended procedure:
%%ifnarch ppc64 GOFLAGS="-buildmode=pie" %%endif go build
A go toolchain buildmode default config would be preferable
but none exist at this time.
* Drop mod=vendor, go1.14+ will detect vendor dir and auto-enable
* Add basic %check to execute binary --help
OBS-URL: https://build.opensuse.org/request/show/1161214
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/kured?expand=0&rev=50
24 lines
1.2 KiB
Diff
24 lines
1.2 KiB
Diff
From af6c6e783403978273208a45c137c273935604fb Mon Sep 17 00:00:00 2001
|
|
From: Johannes Kastl <kastl@b1-systems.de>
|
|
Date: Fri, 7 Jan 2022 11:57:28 +0100
|
|
Subject: [PATCH] cmd/kured/main.go: Fix path to systemctl
|
|
|
|
Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
|
|
---
|
|
cmd/kured/main.go | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/cmd/kured/main.go b/cmd/kured/main.go
|
|
index 3ad1cbe..ee54013 100644
|
|
--- a/cmd/kured/main.go
|
|
+++ b/cmd/kured/main.go
|
|
@@ -185,7 +185,7 @@ func NewRootCommand() *cobra.Command {
|
|
"Taint name applied during pending node reboot (to prevent receiving additional pods from other rebooting nodes). Disabled by default. Set e.g. to \"weave.works/kured-node-reboot\" to enable tainting.")
|
|
rootCmd.PersistentFlags().StringVar(&rebootSentinelCommand, "reboot-sentinel-command", "",
|
|
"command for which a zero return code will trigger a reboot command")
|
|
- rootCmd.PersistentFlags().StringVar(&rebootCommand, "reboot-command", "/bin/systemctl reboot",
|
|
+ rootCmd.PersistentFlags().StringVar(&rebootCommand, "reboot-command", "/usr/bin/systemctl reboot",
|
|
"command to run when a reboot is required")
|
|
rootCmd.PersistentFlags().IntVar(&concurrency, "concurrency", 1,
|
|
"amount of nodes to concurrently reboot. Defaults to 1")
|