ignoring lints

This commit is contained in:
Bret Fisher
2022-05-17 15:48:52 -04:00
parent 3f3a6847d4
commit f2602941f9
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -14,11 +14,14 @@ ignored:
- DL3018 #apk add pin versions
- DL3019 #don't worry about avoiding cache in build-only stages
- DL3022 #bad rule for COPY --from
- DL3025 #for this image, we don't want JSON in CMD
- DL3028 #gem install pin versions
- DL3044 #putting arg in env is fine. False positive.
- DL3059 #multiple consecutive runs
- DL4006 #we don't need pipefail in this
- SC1083 # {} is ok in kubectl commands
- SC2016 #we want single quotes sometimes
- SC2046 #we don't always quote sometimes
# FULL TEMPLATE
+1 -1
View File
@@ -1,4 +1,5 @@
#!/bin/sh
# shellcheck disable=SC2083,SC2086
# For more information about shpod, check it out on GitHub:
# https://github.com/bretfisher/shpod
if [ -f shpod.yaml ]; then
@@ -6,7 +7,6 @@ if [ -f shpod.yaml ]; then
else
YAML=https://k8smastery.com/shpod.yaml
fi
# shellcheck disable=SC2083
if [ "$(kubectl get pod --namespace=shpod shpod --ignore-not-found -o jsonpath={.status.phase})" = "Running" ]; then
echo "Shpod is already running. Starting a new shell with 'kubectl exec'."
echo "(Note: if the main invocation of shpod exits, all others will be terminated.)"