Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

Commit e7a40e3

Browse files
authored
Merge pull request bowei#3 from colindev/master
fix shell script error (miss `"`)
2 parents 6c6213f + 73557fd commit e7a40e3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

daemon.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ spec:
3333
image: gcr.io/google_containers/k8s-custom-iptables:1.0
3434
imagePullPolicy: Always
3535
command: [ "sh", "-c", "/run.sh" ]
36+
env:
37+
- name: SLEEP_INTERVAL
38+
value: '30'
3639
resources:
3740
requests:
3841
cpu: 5m

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ main() {
7878
done
7979
fi
8080

81-
if [[ -z ${nat_rules} ]]; then
81+
if [[ -z "${nat_rules}" ]]; then
8282
log "No NAT rules configured"
8383
else
8484
for subnet in ${old_nat_rules}; do

0 commit comments

Comments
 (0)