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

chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git


The following commit(s) were added to refs/heads/master by this push:
     new c0e967f1c [KYUUBI #4707] [K8S][HELM] Fix README typo and minor 
reformatting
c0e967f1c is described below

commit c0e967f1c500bc46d7038fa4f453f735d39eab1c
Author: dnskr <[email protected]>
AuthorDate: Fri Apr 14 11:59:31 2023 +0800

    [KYUUBI #4707] [K8S][HELM] Fix README typo and minor reformatting
    
    ### _Why are the changes needed?_
    The changes are needed to fix the link to Kyuubi web site and follow common 
template formatting style.
    
    ### _How was this patch tested?_
    - [ ] Add some test cases that check the changes thoroughly including 
negative and positive cases if possible
    
    - [ ] Add screenshots for manual tests if appropriate
    
    - [ ] [Run 
test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests)
 locally before make a pull request
    
    Closes #4707 from dnskr/fix_readme_typo_and_reformatting.
    
    Closes #4707
    
    cb5d24ace [dnskr] [K8S][HELM] Fix README typo and minor reformatting
    
    Authored-by: dnskr <[email protected]>
    Signed-off-by: Cheng Pan <[email protected]>
---
 charts/kyuubi/README.md                        |  2 +-
 charts/kyuubi/templates/_helpers.tpl           | 18 +++++++++---------
 charts/kyuubi/templates/kyuubi-configmap.yaml  |  2 +-
 charts/kyuubi/templates/kyuubi-deployment.yaml |  4 +++-
 charts/kyuubi/templates/kyuubi-service.yaml    |  3 +--
 5 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/charts/kyuubi/README.md b/charts/kyuubi/README.md
index a01fafde1..a1e5c4b62 100644
--- a/charts/kyuubi/README.md
+++ b/charts/kyuubi/README.md
@@ -19,7 +19,7 @@
 
 # Helm Chart for Apache Kyuubi
 
-[Apache Kyuubi](https://airflow.apache.org/) is a distributed and multi-tenant 
gateway to provide serverless SQL on Data Warehouses and Lakehouses.
+[Apache Kyuubi](https://kyuubi.apache.org) is a distributed and multi-tenant 
gateway to provide serverless SQL on Data Warehouses and Lakehouses.
 
 
 ## Introduction
diff --git a/charts/kyuubi/templates/_helpers.tpl 
b/charts/kyuubi/templates/_helpers.tpl
index cd4865a12..07e66d5f1 100644
--- a/charts/kyuubi/templates/_helpers.tpl
+++ b/charts/kyuubi/templates/_helpers.tpl
@@ -20,14 +20,14 @@ A comma separated string of enabled frontend protocols, 
e.g. "REST,THRIFT_BINARY
 For details, see 'kyuubi.frontend.protocols': 
https://kyuubi.readthedocs.io/en/master/deployment/settings.html#frontend
 */}}
 {{- define "kyuubi.frontend.protocols" -}}
-{{- $protocols := list }}
-{{- range $name, $frontend := .Values.server }}
-  {{- if $frontend.enabled }}
-    {{- $protocols = $name | snakecase | upper | append $protocols }}
+  {{- $protocols := list }}
+  {{- range $name, $frontend := .Values.server }}
+    {{- if $frontend.enabled }}
+      {{- $protocols = $name | snakecase | upper | append $protocols }}
+    {{- end }}
   {{- end }}
-{{- end }}
-{{- if not $protocols }}
-  {{ fail "At least one frontend protocol must be enabled!" }}
-{{- end }}
-{{- $protocols |  join "," }}
+  {{- if not $protocols }}
+    {{ fail "At least one frontend protocol must be enabled!" }}
+  {{- end }}
+  {{- $protocols |  join "," }}
 {{- end }}
diff --git a/charts/kyuubi/templates/kyuubi-configmap.yaml 
b/charts/kyuubi/templates/kyuubi-configmap.yaml
index 4964e651c..596ec493e 100644
--- a/charts/kyuubi/templates/kyuubi-configmap.yaml
+++ b/charts/kyuubi/templates/kyuubi-configmap.yaml
@@ -43,7 +43,7 @@ data:
 
     ## User provided Kyuubi configurations
     {{- with .Values.kyuubiConf.kyuubiDefaults }}
-    {{- tpl . $ | nindent 4 }}
+      {{- tpl . $ | nindent 4 }}
     {{- end }}
   {{- with .Values.kyuubiConf.log4j2 }}
   log4j2.xml: |
diff --git a/charts/kyuubi/templates/kyuubi-deployment.yaml 
b/charts/kyuubi/templates/kyuubi-deployment.yaml
index 43899b6fc..52468df4e 100644
--- a/charts/kyuubi/templates/kyuubi-deployment.yaml
+++ b/charts/kyuubi/templates/kyuubi-deployment.yaml
@@ -42,7 +42,9 @@ spec:
       {{- with .Values.imagePullSecrets }}
       imagePullSecrets: {{- toYaml . | nindent 8 }}
       {{- end }}
+      {{- if or .Values.serviceAccount.name .Values.serviceAccount.create }}
       serviceAccountName: {{ .Values.serviceAccount.name | default 
.Release.Name }}
+      {{- end }}
       {{- with .Values.initContainers }}
       initContainers: {{- tpl (toYaml .) $ | nindent 8 }}
       {{- end }}
@@ -90,7 +92,7 @@ spec:
             successThreshold: {{ .Values.probe.readiness.successThreshold }}
           {{- end }}
           {{- with .Values.resources }}
-          resources:  {{- toYaml . | nindent 12 }}
+          resources: {{- toYaml . | nindent 12 }}
           {{- end }}
           volumeMounts:
             - name: conf
diff --git a/charts/kyuubi/templates/kyuubi-service.yaml 
b/charts/kyuubi/templates/kyuubi-service.yaml
index 963f1fcc7..3cea30b70 100644
--- a/charts/kyuubi/templates/kyuubi-service.yaml
+++ b/charts/kyuubi/templates/kyuubi-service.yaml
@@ -28,8 +28,7 @@ metadata:
     app.kubernetes.io/version: {{ $.Values.image.tag | default 
$.Chart.AppVersion | quote }}
     app.kubernetes.io/managed-by: {{ $.Release.Service }}
   {{- with $frontend.service.annotations }}
-  annotations:
-    {{- toYaml . | nindent 4 }}
+  annotations: {{- toYaml . | nindent 4 }}
   {{- end }}
 spec:
   type: {{ $frontend.service.type }}

Reply via email to