Skip to content

Commit

Permalink
fix: final changes
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kotzbauer <[email protected]>
  • Loading branch information
ckotzbauer committed Aug 12, 2023
1 parent 44fa900 commit 917d3d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions cmd/kured/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@ func root(cmd *cobra.Command, args []string) {
log.Infof("Blocking Pod Selectors: %v", podSelectors)
log.Infof("Reboot schedule: %v", window)
log.Infof("Reboot check command: %s every %v", sentinelCommand, period)
log.Infof("Concurrency: %v", concurrency)
log.Infof("Reboot command: %s", restartCommand)
if annotateNodes {
log.Infof("Will annotate nodes during kured reboot operations")
Expand Down
11 changes: 5 additions & 6 deletions tests/kind/follow-coordinated-reboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function gather_logs_and_cleanup {
fi
rmdir "$tmp_dir"


# The next commands are useful regardless of success or failures.
if [[ "$DEBUG" == "true" ]]; then
echo "############################################################"
Expand Down Expand Up @@ -47,11 +46,11 @@ do
echo "${#was_unschedulable[@]} nodes were removed from pool once:" "${!was_unschedulable[@]}"
echo "${#has_recovered[@]} nodes removed from the pool are now back:" "${!has_recovered[@]}"

"$KUBECTL_CMD" logs -n kube-system -l name=kured --ignore-errors > "$tmp_dir"/node_output
if [[ "$DEBUG" == "true" ]]; then
echo "Kured pod logs:"
cat "$tmp_dir"/node_output
fi
#"$KUBECTL_CMD" logs -n kube-system -l name=kured --ignore-errors > "$tmp_dir"/node_output
#if [[ "$DEBUG" == "true" ]]; then
# echo "Kured pod logs:"
# cat "$tmp_dir"/node_output
#fi

"$KUBECTL_CMD" get nodes -o custom-columns=NAME:.metadata.name,SCHEDULABLE:.spec.unschedulable --no-headers > "$tmp_dir"/node_output
if [[ "$DEBUG" == "true" ]]; then
Expand Down

0 comments on commit 917d3d0

Please sign in to comment.