Compare commits

..

9 Commits

Author SHA1 Message Date
fe652d335c
chore(ci): remove workflow_dispatch
All checks were successful
Lint Shell files / shellcheck (pull_request) Successful in 25s
check-and-test / check-and-test (pull_request) Successful in 46s
2025-03-31 22:08:00 +02:00
bd3afb64c4
chore(ci): update apt packages and proceed installation non-interactively
All checks were successful
Lint Shell files / shellcheck (pull_request) Successful in 25s
check-and-test / check-and-test (pull_request) Successful in 47s
2025-03-31 18:31:15 +02:00
421f3fcbc5
chore(ci): change types to oopened, reopened and synchronize
Some checks failed
Lint Shell files / shellcheck (pull_request) Failing after 9s
check-and-test / check-and-test (pull_request) Successful in 47s
2025-03-31 18:28:32 +02:00
891538554c
style(ci): lint action
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 47s
2025-03-31 18:24:30 +02:00
f757aff455
fix(Makefile): add new target 'yamllint' 2025-03-31 18:23:54 +02:00
ba7770fdbd
style(editorconfig): set indent style to tab for Makefiles 2025-03-31 18:23:37 +02:00
6e9230d722
style(ci): remove obsolete spaces
Some checks failed
check-and-test / check-and-test (pull_request) Failing after 48s
2025-03-31 18:18:59 +02:00
d72d43a51f
fix(scripts): shellcheck: SC2181
Some checks failed
check-and-test / check-and-test (pull_request) Failing after 46s
2025-03-31 18:15:59 +02:00
b569e49893
chore(ci): add shellcheck 2025-03-31 18:15:28 +02:00
4 changed files with 30 additions and 5 deletions

View File

@ -9,4 +9,7 @@ indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
insert_final_newline = false
[Makefile]
indent_style = tab

View File

@ -0,0 +1,14 @@
name: Lint Shell files
on:
pull_request:
branches: ["*"]
types: ["opened", "reopened", "synchronize"]
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- run: apt update --yes && apt install --yes shellcheck
- run: find . -type f -name "*.sh" -exec shellcheck -a {} \;

View File

@ -16,4 +16,7 @@ unittests-helm:
.PHONY: helm
update-helm-dependencies:
helm dependency update
.PHONY: yamllint
yamllint:
yamllint -c .yamllint .

View File

@ -8,9 +8,14 @@ check_token() {
set +e
echo "Checking for existing token..."
token="$(kubectl get secret "$SECRET_NAME" -o jsonpath="{.data['token']}" 2> /dev/null)"
[ $? -ne 0 ] && return 1
[ -z "$token" ] && return 2
if ! token=$(kubectl get secret "${SECRET_NAME}" -o jsonpath="{.data['token']}" 2> /dev/null); then
return 1
fi
if [ -z "${token}" ]; then
return 2
fi
return 0
}