This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-kubernetes.git


The following commit(s) were added to refs/heads/master by this push:
     new e29fa9c  bugfix: hasPrefix arguments positions are wrong (#59)
e29fa9c is described below

commit e29fa9c7dc16409af2cfb9c982c9840d8932c86a
Author: kezhenxu94 <kezhenx...@apache.org>
AuthorDate: Sat Oct 24 17:12:06 2020 +0800

    bugfix: hasPrefix arguments positions are wrong (#59)
---
 chart/skywalking/templates/es-init.job.yaml    | 2 +-
 chart/skywalking/templates/oap-deployment.yaml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/chart/skywalking/templates/es-init.job.yaml 
b/chart/skywalking/templates/es-init.job.yaml
index 8234552..393dc87 100644
--- a/chart/skywalking/templates/es-init.job.yaml
+++ b/chart/skywalking/templates/es-init.job.yaml
@@ -15,7 +15,7 @@
 
 # https://docs.sentry.io/server/installation/docker/#running-migrations
 
-{{- if hasPrefix .Values.oap.storageType "elasticsearch" }}
+{{- if hasPrefix "elasticsearch" .Values.oap.storageType }}
 apiVersion: batch/v1
 kind: Job
 metadata:
diff --git a/chart/skywalking/templates/oap-deployment.yaml 
b/chart/skywalking/templates/oap-deployment.yaml
index bafbcf0..4867a8d 100644
--- a/chart/skywalking/templates/oap-deployment.yaml
+++ b/chart/skywalking/templates/oap-deployment.yaml
@@ -77,7 +77,7 @@ spec:
 {{ toYaml .Values.oap.tolerations | indent 8 }}
 {{- end }}
       initContainers:
-        {{- if hasPrefix .Values.oap.storageType "elasticsearch" }}
+        {{- if hasPrefix "elasticsearch" .Values.oap.storageType }}
         {{- include "skywalking.containers.wait-for-es" . | nindent 6 }}
         {{- end }}
       containers:

Reply via email to