Skip to content

Commit c979e0d

Browse files
authored
Modify help text displayed during helm install (#1975)
* MODIFY HELP TEXT DISPLAYED TO HAVE DETAILS OF LOAD BALANCER BASED ON THE INPUT ARG PASSED DURING HELM INSTALL * changed ports to be displayed for Load Balancer * Removed white spaces
1 parent 016d47e commit c979e0d

File tree

1 file changed

+6
-1
lines changed
  • OracleDatabase/SingleInstance/helm-charts/oracle-db/templates

1 file changed

+6
-1
lines changed

OracleDatabase/SingleInstance/helm-charts/oracle-db/templates/NOTES.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@ ORCLPDB1=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<ip-address>)(PORT=<port>))
1818
Application details
1919
====================
2020
IP and port can be found using the following:
21-
21+
{{- if .Values.loadBalService }}
22+
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].port}" services {{ template "fullname" . }})
23+
export NODE_XDB_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[1].port}" services {{ template "fullname" . }})
24+
export NODE_IP=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.status.loadBalancer.ingress[0].ip}" services {{ template "fullname" . }})
25+
{{- else}}
2226
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "fullname" . }})
2327
export NODE_XDB_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[1].nodePort}" services {{ template "fullname" . }})
2428
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
29+
{{- end }}
2530
echo listener at $NODE_IP:$NODE_PORT
2631
echo XDB at $NODE_IP:$NODE_XDB_PORT
2732

0 commit comments

Comments
 (0)