Przeglądaj źródła

HUE-8888 [k8s] Simplify NOTES.txt of helm chart

Romain 6 lat temu
rodzic
commit
0c0d05820b

+ 1 - 1
desktop/core/src/desktop/lib/fsmanager.py

@@ -146,4 +146,4 @@ def get_filesystem(name='default'):
 
 
 def get_filesystems(user):
-  return [fs for fs in SUPPORTED_FS if is_enabled(fs) and has_access(fs, user)]
+  return [fs for fs in SUPPORTED_FS if is_enabled(fs) and has_access(fs, user)]

+ 3 - 12
tools/kubernetes/helm/hue/templates/NOTES.txt

@@ -5,17 +5,8 @@ To check the status of your installation run:
   helm list {{ .Release.Name }}
 
 
-You should be able to execute queries by typing:
-
-  kubectl port-forward svc/hue 8888:8888 --address 0.0.0.0 &
-
-Then opening-up:
-
-  http://localhost:8888
-
-
-Or running below commands to get the recommended URL:
-{{ if true }}
+Get the recommended URL below and start executing queries:
+{{- if ne .Values.ingress.type "nginx-ssl" -}}
   export WEB_HOST=$(kubectl get node -o jsonpath="{.items[0].metadata.name}")
 {{- end -}}
 
@@ -25,7 +16,7 @@ Or running below commands to get the recommended URL:
 
 {{ else if and .Values.ingress.create (eq .Values.ingress.type "nginx-ssl") }}
 
-  echo https://{{ .Values.ingress.domain }}
+  https://{{ .Values.ingress.domain }}
 
 {{ else if .Values.balancer.enabled }}
 

+ 1 - 1
tools/kubernetes/helm/hue/templates/ingress-https.yaml

@@ -14,7 +14,7 @@ metadata:
     nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
     {{ if .Values.ingress.hasAuth }}
     nginx.ingress.kubernetes.io/auth-type: basic
-    nginx.ingress.kubernetes.io/auth-secret: basic-auth-gethue
+    nginx.ingress.kubernetes.io/auth-secret: basic-auth-hue
     nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required'
     {{ end }}
 spec:

+ 5 - 1
tools/kubernetes/helm/website/templates/NOTES.txt

@@ -1,3 +1,4 @@
+
 Congratulations, you've launched the website of Hue!
 
 To check the status of your installation run:
@@ -16,7 +17,9 @@ Run below commands to get the recommended URLs:
 {{ else if and .Values.ingress.create (eq .Values.ingress.type "nginx-ssl") }}
 
   echo https://{{ .Values.website.domain }}
+  {{- if .Values.docs.enabled -}}
   echo https://{{ .Values.docs.domain }}
+  {{- end -}}
 
 {{ else }}
 
@@ -24,7 +27,8 @@ Run below commands to get the recommended URLs:
   export DOCS_PORT=$(kubectl get service docs -o jsonpath="{.spec.ports[*].nodePort}" --namespace {{ .Release.Namespace }})
 
   echo http://$WEB_HOST:$WEBSITE_PORT
+  {{- if .Values.docs.enabled -}}
   echo http://$WEB_HOST:$DOCS_PORT
-
+  {{ end }}
 {{ end }}
 Happy Querying!