Skip to content

Commit

Permalink
fix: whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Matovidlo committed May 7, 2024
1 parent 96b3a2e commit 1693148
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 23 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test-k8s-service-apps-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ jobs:
emptyReplicaSets=$(kubectl get replicasets --ignore-not-found | tail --lines=+2 | awk '{if ($2 + $3 + $4 == 0) print $1}')
echo -e "Found empty replica sets:"
echo "$emptyReplicaSets"
echo "-------------------------"
echo "-------------------------"
echo "$emptyReplicaSets" | xargs --no-run-if-empty -I {} kubectl delete replicaset "{}"
# Wait for pod startup/termination
sleep 10
# Dump objects
Expand Down Expand Up @@ -159,7 +158,7 @@ jobs:
- name: Dump logs
if: always()
run: |
/tmp/latest-scripts/minikube/logs.sh /tmp/artifacts &&
/tmp/latest-scripts/minikube/logs.sh /tmp/artifacts &&
/tmp/latest-scripts/k8s/logs.sh /tmp/artifacts
- name: Upload artifacts
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/test-k8s-service-buffer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ jobs:
emptyReplicaSets=$(kubectl get replicasets --ignore-not-found | tail --lines=+2 | awk '{if ($2 + $3 + $4 == 0) print $1}')
echo -e "Found empty replica sets:"
echo "$emptyReplicaSets"
echo "-------------------------"
echo "-------------------------"
echo "$emptyReplicaSets" | xargs --no-run-if-empty -I {} kubectl delete replicaset "{}"
# Wait for pod startup/termination
sleep 10
# Dump objects
Expand Down Expand Up @@ -223,10 +222,8 @@ jobs:
if: always()
run: |
set -Eeuo pipefail
# Create a job from the cron job
kubectl create job "--from=cronjob/${ETCD_RELEASE_NAME}-defrag" test-defrag-job
# Wait for the job
if kubectl wait --for=condition=complete --timeout=30s job/test-defrag-job; then
echo "The job succeed, logs:"
Expand All @@ -242,16 +239,13 @@ jobs:
if: always()
run: |
set -Eeuo pipefail
# Diff JSON states
/tmp/latest-scripts/k8s/diff.sh \
/tmp/artifacts/test-k8s-state.old.json \
/tmp/artifacts/test-k8s-state.new.json \
/tmp/artifacts/test-k8s-state.diff
# Remove ANSI sequences
sed -e 's/\x1b\[[0-9;]*m//g' -i /tmp/artifacts/test-k8s-state.diff || true
# Prepare PR comment message
echo -e "### ${{ env.SERVICE_NAME }} Kubernetes Diff [CI]\n\n" >> /tmp/artifacts/test-k8s-state.diff.message
echo -e "Between \`base\` ${{ github.event.pull_request.base.sha }} :arrow_left: \`head\` ${{ github.event.pull_request.head.sha }}.\n\n" >> /tmp/artifacts/test-k8s-state.diff.message
Expand All @@ -262,7 +256,7 @@ jobs:
- name: Dump logs
if: always()
run: |
/tmp/latest-scripts/minikube/logs.sh /tmp/artifacts &&
/tmp/latest-scripts/minikube/logs.sh /tmp/artifacts &&
/tmp/latest-scripts/k8s/logs.sh /tmp/artifacts
- name: Upload artifacts
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/test-k8s-service-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ jobs:
emptyReplicaSets=$(kubectl get replicasets --ignore-not-found | tail --lines=+2 | awk '{if ($2 + $3 + $4 == 0) print $1}')
echo -e "Found empty replica sets:"
echo "$emptyReplicaSets"
echo "-------------------------"
echo "-------------------------"
echo "$emptyReplicaSets" | xargs --no-run-if-empty -I {} kubectl delete replicaset "{}"
# Wait for pod startup/termination
sleep 10
# Dump objects
Expand Down Expand Up @@ -184,10 +184,8 @@ jobs:
if: always()
run: |
set -Eeuo pipefail
# Create a job from the cron job
kubectl create job "--from=cronjob/${ETCD_RELEASE_NAME}-defrag" test-defrag-job
# Wait for the job
if kubectl wait --for=condition=complete --timeout=30s job/test-defrag-job; then
echo "The job succeed, logs:"
Expand All @@ -203,16 +201,13 @@ jobs:
if: always()
run: |
set -Eeuo pipefail
# Diff JSON states
/tmp/latest-scripts/k8s/diff.sh \
/tmp/artifacts/test-k8s-state.old.json \
/tmp/artifacts/test-k8s-state.new.json \
/tmp/artifacts/test-k8s-state.diff
# Remove ANSI sequences
sed -e 's/\x1b\[[0-9;]*m//g' -i /tmp/artifacts/test-k8s-state.diff || true
# Prepare PR comment message
echo -e "### ${{ env.SERVICE_NAME }} Kubernetes Diff [CI]\n\n" >> /tmp/artifacts/test-k8s-state.diff.message
echo -e "Between \`base\` ${{ github.event.pull_request.base.sha }} :arrow_left: \`head\` ${{ github.event.pull_request.head.sha }}.\n\n" >> /tmp/artifacts/test-k8s-state.diff.message
Expand All @@ -223,7 +218,7 @@ jobs:
- name: Dump logs
if: always()
run: |
/tmp/latest-scripts/minikube/logs.sh /tmp/artifacts &&
/tmp/latest-scripts/minikube/logs.sh /tmp/artifacts &&
/tmp/latest-scripts/k8s/logs.sh /tmp/artifacts
- name: Upload artifacts
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
with:
fail: true
args: |
'./**/*.md'
'./**/*.md'
--verbose
--exclude-path 'vendor'
--exclude-path 'test'
--exclude '^http://localhost.*'
--exclude-path 'vendor'
--exclude-path 'test'
--exclude '^http://localhost.*'
--exclude '^https://app.datadoghq.eu/.*'
--exclude '^https://community.chocolatey.org/.*'
--exclude '^https://packages.debian.org/$'
Expand Down

0 comments on commit 1693148

Please sign in to comment.