Merge "Additional Rules for optional MAAS api only"

This commit is contained in:
Zuul 2019-04-22 16:56:51 +00:00 committed by Gerrit Code Review
commit cf1b7e2278
1 changed files with 18 additions and 3 deletions

View File

@ -29,11 +29,26 @@ spec:
paths:
{{- if .Values.conf.maas.ingress_disable_gui }}
- path: /MAAS/api
{{- else }}
- path: /
{{- end }}
backend:
serviceName: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
servicePort: region-api
- path: /MAAS/images-stream
backend:
serviceName: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
servicePort: region-api
- path: /MAAS/metadata
backend:
serviceName: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
servicePort: region-api
- path: /MAAS/rpc
backend:
serviceName: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
servicePort: region-api
{{- else }}
- path: /
backend:
serviceName: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
servicePort: region-api
{{- end }}
...
{{ end }}