Christian Kotzbauer
ba1328ca12
feat: Integrate GoReleaser, Cosign and Syft ( #595 )
...
* build: integrate goreleaser, syft and cosign
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de >
* fix: chmod for all binaries
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de >
* fix: version-env
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de >
* fix: remove prefix
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de >
* fix: remove prefix
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de >
* fix: schellcheck
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de >
* fix: shellcheck
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de >
* fix: several script updates
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de >
* fix: remove main-prefix
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de >
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de >
2022-10-02 15:25:17 +02:00
Daniel Holbach
bce0bac183
Changed weaveworks to kubereboot in many places
...
Areas I did not touch:
- bot name, secrets
- image name
- LICENSE (would need to ask how/if that gets changed...?)
- one mention in the Dev docs that we used to do some
pre-release smoke-testing on the Weave Dev cluster
Signed-off-by: Daniel Holbach <daniel@weave.works >
2022-09-20 13:17:55 +02:00
dependabot[bot]
9d4ebfc1f8
build(deps): bump alpine from 3.16.1 to 3.16.2 in /cmd/kured ( #617 )
...
Bumps alpine from 3.16.1 to 3.16.2.
---
updated-dependencies:
- dependency-name: alpine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-10 06:20:13 +02:00
Jack Francis
777f5b2cce
update command line flags in README ( #607 )
2022-07-23 09:20:52 +02:00
dependabot[bot]
10d42b07a5
build(deps): bump alpine from 3.16.0 to 3.16.1 in /cmd/kured
...
Bumps alpine from 3.16.0 to 3.16.1.
---
updated-dependencies:
- dependency-name: alpine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-22 15:16:47 +00:00
Alexei Tighineanu
28c5332450
added notification when uncordoning ( #587 )
...
* added notification when uncordoning
when reboot & uncordoning is succ
essful -> notification will be se
nt
* added uncordon message tmpl
added message template for
announcing successful uncor-
doning and reboot.
* added proper documentation about new flag
added readme note about new flag
2022-06-25 21:08:05 +02:00
Christian Kotzbauer
115fea9d2a
Release 1.10.0 preparation ( #572 )
...
* feat: updated helm-chart for 1.10.0
close #551
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de >
* feat: update multiarch-dockerfile to 3.16.0
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de >
2022-06-08 19:32:09 +02:00
David Shay
641c319eb8
Added support for multi-arch image build ( #496 )
...
* Added support for multi-arch image build
* Requested changes to multi-arch build
* Further optimizations of multi build
* multi needs QEMU for some pieces
* change main push for all platforms
* Update Dockerfile to call Makefile
* Remove manual workflow
2022-06-07 08:23:36 +02:00
dependabot[bot]
cd7c4f8da3
build(deps): bump alpine from 3.15.4 to 3.16.0 in /cmd/kured ( #560 )
...
Bumps alpine from 3.15.4 to 3.16.0.
---
updated-dependencies:
- dependency-name: alpine
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-25 06:54:04 +02:00
harbottle
6191c73a3c
Use clean patch to update node labels. Fixes #553
2022-05-20 08:16:45 +02:00
harbottle
48d112ba32
Change after-reboot-node-labels flag to post-reboot-node-labels
2022-05-18 11:39:38 +02:00
harbottle
50aac294b7
Use Errorf instead of Fatalf for node label logging
2022-05-18 11:39:38 +02:00
harbottle
c3cb2bbc6c
Tidy node labelling code
2022-05-18 11:39:38 +02:00
harbottle
9be88fb878
Add verification for node labelling flags
2022-05-18 11:39:38 +02:00
harbottle
4fcf6e184b
Add node labelling
2022-05-18 11:39:38 +02:00
Jack Francis
aa5c3e7783
strip unnecessary quotes for notify-url configurations
2022-05-17 19:33:35 +02:00
Jack Francis
d965e7f67e
Merge pull request #486 from jackfrancis/retry-cordon-drain
...
retry cordon + drain if fail, keep lock
2022-05-06 12:19:31 -07:00
dependabot[bot]
6691996bc0
build(deps): bump alpine from 3.15.3 to 3.15.4 in /cmd/kured
...
Bumps alpine from 3.15.3 to 3.15.4.
---
updated-dependencies:
- dependency-name: alpine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-05 21:04:41 +02:00
Christian Kotzbauer
966698f3c6
update to alpine@3.15.3
2022-03-29 10:06:59 +02:00
dependabot[bot]
445310b9b7
build(deps): bump alpine from 3.15.1 to 3.15.2 in /cmd/kured
...
Bumps alpine from 3.15.1 to 3.15.2.
---
updated-dependencies:
- dependency-name: alpine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-24 07:08:45 +01:00
dependabot[bot]
1eec15b5dd
build(deps): bump alpine from 3.15.0 to 3.15.1 in /cmd/kured
...
Bumps alpine from 3.15.0 to 3.15.1.
---
updated-dependencies:
- dependency-name: alpine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-17 18:58:10 +01:00
Jack
93d6a783a1
retry cordon + drain if fail, keep lock
2022-02-15 15:07:51 -08:00
Christian Kotzbauer
91b01b5524
Merge pull request #489 from dkulchinsky/dannyk/remove_env_values_from_logs
...
don't print env variable values in the logs (some are sensitive)
2022-01-05 05:55:28 +01:00
Danny Kulchinsky
22a76f0da2
small fix in deprecation log messages
2022-01-04 12:23:22 -05:00
Danny Kulchinsky
b52a9587f3
don't print env variable values in the logs (some are sensitive)
2022-01-04 10:55:46 -05:00
Christian Kotzbauer
1a6592851e
Merge pull request #459 from georgekaz/patch-1
...
Exclude terminated pods from the blocking mechanism
2021-12-09 14:02:49 +01:00
Christian Kotzbauer
bba3b8d83f
Merge pull request #464 from dkulchinsky/viper_env_vars
...
bind environment variables to cobra flags with viper
2021-12-09 14:00:11 +01:00
Danny Kulchinsky
687aeda813
use sprintf for value in log
2021-12-02 12:05:07 -05:00
Danny Kulchinsky
acddd6b675
minor restructure and adding log for flag to env var binding
2021-12-01 20:59:12 -05:00
Danny Kulchinsky
54e7d93902
dedup const block
2021-12-01 14:50:53 -05:00
Danny Kulchinsky
2666b49d01
address review comments
2021-12-01 11:14:19 -05:00
dependabot[bot]
16e6d3c4d3
build(deps): bump alpine from 3.14 to 3.15.0 in /cmd/kured
...
Bumps alpine from 3.14 to 3.15.0.
---
updated-dependencies:
- dependency-name: alpine
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-29 09:51:54 +00:00
Danny Kulchinsky
79e19d84ba
bind environment variables to cobra flags with viper
2021-11-25 13:53:30 -05:00
georgekaz
d3b59b8922
Exclude terminated pods from the blocking mechanism
...
Terminated pods should be excluded from the blocking a reboot as per https://github.com/weaveworks/kured/issues/227
This adds status filters to the fieldSelector in order to do that. I've not updated tests here but have successfully tested the exact same filter using kubectl
2021-11-05 16:48:36 +00:00
Daniel Holbach
348b5b4c96
Merge pull request #368 from atighineanu/proto_removed_slack
...
removed notifications/slack package [Merge after 1.7.0 release]
2021-10-28 08:43:27 +02:00
Daniel Kvist
b108aa4d2d
Support json logformatter
...
This commit introduces a new flag '--log-format' that allows a user
to configure json logging on the pods. If the log-format
is not specified, the formatter will default to the existing
text formatter.
2021-10-25 14:38:53 +02:00
atighineanu
bab1425e1a
removed notifications/slack package
...
In this PR the slack-hook-url is translated
into shoutrrr syntax. Therefore, slack pack
age as well as checks for slack-hook-url in
drain and reboot functions are removed.
Also added a unit test for flagCheck(), this
function also checks the (slack)URL syntax.
2021-10-07 10:37:47 +02:00
Jack
3c2508050d
fix: don't use nil context in drain helper
2021-09-27 12:43:20 -07:00
Cameron McAvoy
cee15cfc32
Add force-reboot and drain timeouts to chart config and ds
2021-09-15 10:42:50 -05:00
Daniel Holbach
0955403470
Merge pull request #429 from weaveworks/alpine-3.14
...
build: updated to alpine@3.14
2021-08-30 10:54:35 +02:00
Christian Kotzbauer
9473f831be
build: updated to alpine@3.14
...
Signed-off-by: Christian Kotzbauer <christian.kotzbauer@gmail.com >
2021-08-25 20:19:03 +02:00
Andres Morey
3c5eb968d3
Add reboot-delay command line argument
...
Currently, kured issues the system reboot command immediately after
kubectl drain finishes.
This is a problem for processes that need extra time to finish but aren't
running on pods and therefore aren't controlled by kubectl drain (e.g.
de-registering nodes from external load balancers).
This patch solves the problem by introducing a `reboot-delay` command
line argument that can be used to add a delay after kubectl drain
finishes but before the reboot command is issued.
2021-08-03 16:48:25 +03:00
Matt Jeanes
6af3f1abc1
Add --alert-firing-only parameter to only consider firing alerts
2021-07-27 11:23:10 +01:00
SimeonPoot
c7d5810503
Restructuring Prometheus client, added unit-tests to regex-queries active alerts ( #386 )
...
* prometheus labels incl tests
* enable label in main, add log, docs
* revert the option to query by label
* revert the option to query by label
* PromClient instantiate by func,white space removal
* revert whitespace fix for readability.
* revert removal of newlines for readability
* rename New to NewPromClient to improve readability
Co-authored-by: simp <simp@saxobank.com >
2021-07-27 07:09:46 +02:00
Danny Kulchinsky
c826d73695
fix slack deprecation notice
2021-05-28 13:52:01 -04:00
Jean-Philippe Evrard
79f22cee67
Merge branch 'main' into release-lock-delay
2021-04-14 09:48:28 +02:00
Steffen Pingel
f7b3de36a6
Add parameter for delaying release of lock
...
This support throtteling of reboots across the cluster
and allows rebooted nodes to reschedule pods, e.g.
to synchronize replicated state before rebooting the next node.
2021-04-13 10:14:14 +02:00
Cameron McAvoy
25dcf3cb12
Expose SkipWaitForDeleteTimeoutSeconds and explicitly return when cordonning fails
2021-04-08 09:52:15 -05:00
Cameron McAvoy
5a86ef40e8
Update the default drain timeout to be infinite
2021-04-07 17:17:33 -05:00
Cameron McAvoy
2400f34cc0
Don't panic if the cordon fails and force-reboot is true
2021-04-07 14:58:21 -05:00