Unverified Commit e31f8d95 authored by julienmancuso's avatar julienmancuso Committed by GitHub
Browse files

fix: fix dynamo cloud helm chart (#1376)

parent c103d56a
......@@ -28,6 +28,8 @@ dynamo-operator:
dynamo:
enableLWS: ${ENABLE_LWS}
apiStore:
endpoint: http://${RELEASE_NAME}-dynamo-api-store
ingress:
enabled: ${INGRESS_ENABLED}
className: ${INGRESS_CLASS}
......
......@@ -15,7 +15,7 @@
apiVersion: v1
kind: Service
metadata:
name: "dynamo-store"
name: {{ include "helm.fullname" . }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
......@@ -30,4 +30,4 @@ spec:
protocol: TCP
name: http
selector:
app: dynamo-api-store
\ No newline at end of file
app: {{ include "helm.name" . }}
\ No newline at end of file
......@@ -17,7 +17,7 @@
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: dynamo-ingress
name: {{ include "helm.fullname" . }}
spec:
gateways:
- {{ .Values.istio.gateway }}
......@@ -29,7 +29,7 @@ spec:
prefix: /
route:
- destination:
host: dynamo-store.{{ .Release.Namespace }}.svc.cluster.local
host: {{ include "helm.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
port:
number: 80
{{- end }}
\ No newline at end of file
......@@ -17,7 +17,7 @@
{{- if (index .Values "dynamo-api-store").ingress.enabled }}
Your service is available at:
http{{ if .Values.ingress.tls }}s{{ end }}://{{ (index .Values.ingress.hosts 0).host }}
http{{ if (index .Values "dynamo-api-store").ingress.tls }}s{{ end }}://{{ (index (index .Values "dynamo-api-store").ingress.hosts 0).host }}
{{- else if (index .Values "dynamo-api-store").istio.enabled }}
Your service is available at:
......@@ -30,7 +30,7 @@ No ingress configured.
To access your service via port-forwarding, run:
kubectl port-forward svc/dynamo-store <local-port>:{{ (index .Values "dynamo-api-store").service.port }}
kubectl port-forward svc/{{ include "helm.fullname" (index .Subcharts "dynamo-api-store") }} <local-port>:{{ (index .Values "dynamo-api-store").service.port }}
Then access it locally at:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment