Add static code analysis to CI test (#1197)

This commit is contained in:
Ta-Ching Chen
2019-06-02 14:29:38 +08:00
committed by GitHub
parent 1562cba420
commit 93d4f2c77a
23 changed files with 130 additions and 146 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/bin/bash
namespace=$1
if [ -z "$namespace" ]
then
namespace=fission
fi
svc=$1
if [ -z "$svc" ]
then
svc=nats-streaming
fi
port=$2
if [ -z "$port" ]
then
port=8888
fi
kubectl get pods -l svc=$svc -o name --namespace $namespace | \
sed 's/^.*\///' | \
xargs -I{} kubectl port-forward {} $port:$port -n $namespace &
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
namespace=$1
if [ -z "$namespace" ]
then
namespace=fission
fi
svc=$2
if [ -z "$svc" ]
then
svc=router
fi
port=$3
if [ -z "$port" ]
then
port=8888
fi
kubectl get pods -l svc=$svc -o name --namespace $namespace | \
sed 's/^.*\///' | \
xargs -I{} kubectl port-forward {} $port:8888 -n $namespace &