Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm Chart: Add NOTES.txt template & update chart.yaml #4557

Merged
merged 6 commits into from
Sep 15, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions deploy/kubernetes/console/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ sources:
- https://github.com/cloudfoundry/stratos
icon: https://raw.githubusercontent.com/cloudfoundry/stratos/master/deploy/kubernetes/console/icon.png
maintainers:
- name: Stratos @ SUSE
email: "TODO: RC"
url: https://stratos.app
- name: Stratos Maintainers
email: [email protected]
home: https://stratos.app
richard-cox marked this conversation as resolved.
Show resolved Hide resolved
keywords:
- Stratos
- "Cloud Foundry"
Expand Down
26 changes: 25 additions & 1 deletion deploy/kubernetes/console/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
Thank you for installing Stratos. Your release is named '{{ .Release.Name }}' and is in the namespace '{{ .Release.Namespace }}'.
{{ if .Values.console.techPreview -}}
Tech Preview is enabled, extra features will be shown.

{{ end }}

{{- $ingress := .Values.console.ingress | default dict -}}
richard-cox marked this conversation as resolved.
Show resolved Hide resolved
{{ if $ingress.enabled -}}
From outside the cluster, the server URL is: http://{{ .Values.console.ingress.host }}
{{- else }}
Get the URL by running these commands in the same shell:
{{- if contains "NodePort" .Values.console.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services console-ui-ext)
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
richard-cox marked this conversation as resolved.
Show resolved Hide resolved
{{- else if contains "LoadBalancer" .Values.console.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get svc --namespace {{ .Release.Namespace }} -w console-ui-ext'

export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} console-ui-ext -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo http://$SERVICE_IP:{{ .Values.console.service.servicePor }}
richard-cox marked this conversation as resolved.
Show resolved Hide resolved
{{- else if contains "ClusterIP" .Values.console.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app=stratos-0,component=ui" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 9090
richard-cox marked this conversation as resolved.
Show resolved Hide resolved
{{- end }}
{{- end }}

To learn more about the release, try:
$ helm status {{ .Release.Name }} -n {{ .Release.Namespace }}
Expand Down