Compare commits
No commits in common. "feat/shellcheck" and "main" have entirely different histories.
feat/shell
...
main
@ -9,7 +9,4 @@ indent_size = 2
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = false
|
||||
insert_final_newline = false
|
||||
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
insert_final_newline = false
|
@ -1,14 +0,0 @@
|
||||
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 {} \;
|
5
Makefile
5
Makefile
@ -16,7 +16,4 @@ unittests-helm:
|
||||
.PHONY: helm
|
||||
update-helm-dependencies:
|
||||
helm dependency update
|
||||
|
||||
.PHONY: yamllint
|
||||
yamllint:
|
||||
yamllint -c .yamllint .
|
||||
|
@ -8,14 +8,9 @@ check_token() {
|
||||
set +e
|
||||
|
||||
echo "Checking for existing token..."
|
||||
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
|
||||
|
||||
token="$(kubectl get secret "$SECRET_NAME" -o jsonpath="{.data['token']}" 2> /dev/null)"
|
||||
[ $? -ne 0 ] && return 1
|
||||
[ -z "$token" ] && return 2
|
||||
return 0
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user