You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2019/10/28 02:08:59 UTC

[GitHub] [skywalking] innerpeacez commented on a change in pull request #3718: [WIP]Istio deploy script

innerpeacez commented on a change in pull request #3718: [WIP]Istio deploy script
URL: https://github.com/apache/skywalking/pull/3718#discussion_r339382795
 
 

 ##########
 File path: install/deploy/istio-deploy.sh
 ##########
 @@ -0,0 +1,86 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Add istio official repo
+add_repo(){
+  REPO="https://storage.googleapis.com/istio-release/releases/1.3.3/charts/"
+  helm repo add istio $REPO
+
+  STATUS_CMD=`echo $?`
+  CHECK_REPO_CMD=`helm repo list | grep $REPO | wc -l`
+  echo "$STATUS_CMD"
+  echo "$CHECK_REPO_CMD"
+  while [[ $STATUS_CMD != 0 && $CHECK_REPO_CMD -ge 1 ]]
+  do
+    sleep 5
+    helm repo add istio $REPO
+
+    STATUS_CMD=`echo $?`
+    CHECK_REPO_CMD=`helm repo list | grep $REPO | wc -l`
+  done
+}
+
+# Create istio-system namespace
+create_namespace() {
+  kubectl create ns istio-system
+
+  STATUS_CMD=`echo $?`
+  while [[ $STATUS_CMD != 0 ]]
+  do
+    sleep 5
+    kubectl create ns istio-system
+    STATUS_CMD=`echo $?`
+  done
+}
+
+# Create CRD need for istio
+create_crd() {
+  helm install istio-init istio/istio-init -n istio-sytem
 
 Review comment:
   My idea is to use the `install` , I think we don't have to customize istio as a CI process, and the official istio chart, there won't be any serious mistakes in theory.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services