Skip to content

Commit e5fef39

Browse files
committed
Update 19
Signed-off-by: sayantan1413 <[email protected]>
1 parent 872da8b commit e5fef39

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

mesheryctl.sh

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@ main() {
2525
local pattern_filename=pat.yml
2626
local service_mesh="istio"
2727
local service_mesh_adapter=
28+
local url="https://raw.githubusercontent.com/service-mesh-patterns/service-mesh-patterns/master/samples/IstioFilterPattern.yaml"
2829

2930

3031
parse_command_line "$@"
3132

32-
33-
34-
3533
shortName=$(echo ${adapters["$service_mesh"]} | cut -d '-' -f2 | cut -d ':' -f1)
3634

3735
docker network connect bridge meshery_meshery_1
@@ -44,8 +42,7 @@ main() {
4442
mesheryctl mesh deploy --adapter $service_mesh_adapter -t ~/auth.json $service_mesh
4543
sleep 30
4644
docker ps
47-
mesheryctl pattern apply --file https://raw.githubusercontent.com/service-mesh-patterns/service-mesh-patterns/master/samples/IstioFilterPattern.yaml -t ~/auth.json
48-
mesheryctl pattern apply --file https://raw.githubusercontent.com/service-mesh-patterns/service-mesh-patterns/master/samples/bookInfoPattern.yaml -t ~/auth.json
45+
mesheryctl pattern apply --file $url -t ~/auth.json
4946
sleep 3m 30s
5047
kubectl get all --all-namespaces
5148
}
@@ -64,15 +61,15 @@ parse_command_line() {
6461
exit 1
6562
fi
6663
;;
67-
--pattern-filename)
68-
if [[ -n "${2:-}" ]]; then
69-
pattern_filename=$2
70-
shift
71-
else
72-
echo "ERROR: '--pattern-filename' cannot be empty." >&2
73-
exit 1
74-
fi
75-
;;
64+
# --pattern-filename)
65+
# if [[ -n "${2:-}" ]]; then
66+
# pattern_filename=$2
67+
# shift
68+
# else
69+
# echo "ERROR: '--pattern-filename' cannot be empty." >&2
70+
# exit 1
71+
# fi
72+
# ;;
7673
*)
7774
break
7875
;;

0 commit comments

Comments
 (0)