Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2771 from liubin/fix/2770
Browse files Browse the repository at this point in the history
ci: delete -i option of kubectl exec
  • Loading branch information
teawater authored Aug 7, 2020
2 parents 3051377 + bdd0c17 commit 424b790
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions integration/kubernetes/k8s-custom-dns.bats
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ setup() {
kubectl wait --for=condition=Ready pod "$pod_name"

# Check dns config at /etc/resolv.conf
kubectl exec -it "$pod_name" -- cat "$file_name" | grep -q "nameserver 1.2.3.4"
kubectl exec -it "$pod_name" -- cat "$file_name" | grep -q "search dns.test.search"
kubectl exec "$pod_name" -- cat "$file_name" | grep -q "nameserver 1.2.3.4"
kubectl exec "$pod_name" -- cat "$file_name" | grep -q "search dns.test.search"
}

teardown() {
Expand Down
2 changes: 1 addition & 1 deletion integration/kubernetes/k8s-number-cpus.bats
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ setup() {

for _ in $(seq 1 "$retries"); do
# Get number of cpus
number_cpus=$(kubectl exec -ti pod/"$pod_name" -c "$container_name" nproc | sed 's/[[:space:]]//g')
number_cpus=$(kubectl exec pod/"$pod_name" -c "$container_name" nproc | sed 's/[[:space:]]//g')
# Verify number of cpus
[ "$number_cpus" -le "$max_number_cpus" ]
sleep 1
Expand Down

0 comments on commit 424b790

Please # to comment.