Skip to content

Commit

Permalink
CASMPET-6925: Fix shellcheck errors
Browse files Browse the repository at this point in the history
(cherry picked from commit 5b1c314)
  • Loading branch information
mharding-hpe committed Mar 15, 2024
1 parent 4878b0d commit 8736b8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions goss-testing/scripts/k8s_kyverno_pods_running.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# MIT License
#
# (C) Copyright 2022 Hewlett Packard Enterprise Development LP
# (C) Copyright 2022, 2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -46,7 +46,7 @@ rc=$?
if [[ ${rc} -ne 0 ]]
then
# Split into two echo commands for code readability
echo -n "ERROR: Command pipeline failed (return code $?): " 1>&2
echo -n "ERROR: Command pipeline failed (return code $rc): " 1>&2
echo "kubectl get pods -n kyverno -o json | jq '[.items[] | select(.metadata.labels.app == \"kyverno\").status.containerStatuses[0].state.running] | length'" 1>&2
echo "FAIL"
exit 10
Expand Down
4 changes: 2 additions & 2 deletions goss-testing/scripts/velero_backups_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# MIT License
#
# (C) Copyright 2022-2023 Hewlett Packard Enterprise Development LP
# (C) Copyright 2022-2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -68,7 +68,7 @@ cleanup_velero_backups() {
time_from_schedule_creation_to_backup=$(( $backup_creation_date_sec - $schedule_creation_date_sec ))
if [[ ! -z $backup_creation_date_sec && ${time_from_schedule_creation_to_backup} -ge 0 && ${time_from_schedule_creation_to_backup} -lt $ten_minutes ]]
then
delete_count+=1
(( delete_count+=1 ))
echo "velero backup delete ${backup_name}"
velero backup delete ${backup_name} --confirm
ns=$(kubectl get backups -A -o json | jq -re ".items[] | select (.metadata.name == \"${backup_name}\") | .metadata.namespace")
Expand Down

0 comments on commit 8736b8e

Please sign in to comment.