Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Commit f5f7379

Browse files
authored
Merge pull request #223 from xwu2git/master
accumulative fixes
2 parents b77aea7 + 3b602cb commit f5f7379

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

deployment/kubernetes/analytics.yaml.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
image: `ssai_analytics_'defn(`FRAMEWORK')`_'defn(`PLATFORM_SUFFIX'):latest
2323
imagePullPolicy: IfNotPresent
2424
env:
25-
- name: NETWORK_PREFERENCE
25+
- name: `NETWORK_PREFERENCE'
2626
value: "{\"defn(`PLATFORM_DEVICE')\":\"defn(`NETWORK_PREFERENCE')\"}"
2727
- name: VA_PRE
2828
value: "defn(`PLATFORM')-"

deployment/kubernetes/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ -x /usr/bin/kubectl ] || [ -x /usr/local/bin/kubectl ]; then
2020
fi
2121

2222
# list all workers
23-
hosts=($(kubectl get node -l vcac-zone!=yes -o jsonpath='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}:{range @.spec.taints[*]}{@.key}={@.effect};{end}{end}' | grep Ready=True | grep -v NoSchedule | cut -f1 -d':'))
23+
hosts=($(kubectl get node -l vcac-zone!=yes -o custom-columns=NAME:metadata.name,STATUS:status.conditions[-1].type,TAINT:spec.taints | grep " Ready " | grep -v "NoSchedule" | cut -f1 -d' '))
2424
if test ${#hosts[@]} -eq 0; then
2525
printf "\nFailed to locate worker node(s) for shared storage\n\n"
2626
exit -1

deployment/kubernetes/stop.sh

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
1-
#!/bin/bash -e
1+
#!/bin/bash
22

33
DIR=$(dirname $(readlink -f "$0"))
44

55
# delete all pods, services and deployments
6-
for yaml in $(find "${DIR}" -maxdepth 1 \( -name "*.yaml" ! -name "*-pv.yaml" ! -name "*-pvc.yaml" \) -print); do
7-
kubectl delete -f "$yaml" --ignore-not-found=true 2>/dev/null || echo -n ""
8-
done
9-
10-
# delete all pvcs
11-
for yaml in $(find "${DIR}" -maxdepth 1 -name "*-pvc.yaml" -print); do
12-
kubectl delete -f "$yaml" --ignore-not-found=true 2>/dev/null || echo -n ""
13-
done
14-
15-
# delete pvs and scs
16-
for yaml in $(find "${DIR}" -maxdepth 1 -name "*-pv.yaml" -print); do
17-
kubectl delete -f "$yaml" --ignore-not-found=true 2>/dev/null || echo -n ""
6+
for yaml in $(find "${DIR}" -maxdepth 1 -name "*.yaml" -print); do
7+
kubectl delete --wait=false -f "$yaml" --ignore-not-found=true 2>/dev/null
188
done
199

2010
kubectl delete secret self-signed-certificate 2> /dev/null || echo -n ""

0 commit comments

Comments
 (0)