Skip to content

Commit

Permalink
add note to include how to use the route
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmosco committed Aug 15, 2024
1 parent 19261f8 commit 53911e9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
7 changes: 6 additions & 1 deletion charts/localstack/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace | quote }} -l "app.kubernetes.io/name={{ include "localstack.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace | quote }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
echo "visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace | quote }} port-forward $POD_NAME 8080:$CONTAINER_PORT
{{- end }}
{{- if and .Values.openshift .Values.route.enabled }}
export ROUTE_URL=$(oc get route localstack-fork --namespace "localstack" -o jsonpath="{.spec.host}")
echo http://$ROUTE_URL
echo "visit http://$ROUTE_URL to use your application"
{{- end }}
2 changes: 1 addition & 1 deletion charts/localstack/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rules:
- apiGroups: [""]
resources: ["services"]
verbs: ["get", "list"]
{{- if .Values.openshift -}}
{{- if .Values.openshift }}
- apiGroups: ["security.openshift.io"]
resources: ["securitycontextconstraints"]
resourceNames: ["anyuid"]
Expand Down
1 change: 1 addition & 0 deletions charts/localstack/templates/route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
weight: 100
port:
targetPort: {{ .Values.route.port }}
wildcardPolicy: None
tls:
{{- toYaml .Values.route.tls | nindent 4 }}
{{- end }}
Expand Down
5 changes: 3 additions & 2 deletions charts/localstack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,11 @@ ingress:
# hosts:
# - chart-example.local

## Create a route if using OpenShift
## Create a Route resource if using OpenShift
## Defaults to the 'edge' port of the service on 4566
route:
enabled: false
port: 4566
port: edge

persistence:
## @param persistence.enabled Enable persistence using Persistent Volume Claims
Expand Down

0 comments on commit 53911e9

Please sign in to comment.