d25d482dc2
Publish CLI Package / publish-npm (push) Waiting to run
Publish Python SDK / publish-pypi (push) Waiting to run
Publish TypeScript SDK / publish-npm (push) Waiting to run
CI / Migrate Dev DB (push) Has been skipped
CI / Detect Version (push) Has been cancelled
CI / Migrate DB (push) Has been cancelled
CI / Build Dev ECR (./docker/app.Dockerfile, ECR_APP) (push) Has been cancelled
CI / Build Dev ECR (./docker/db.Dockerfile, ECR_MIGRATIONS) (push) Has been cancelled
CI / Build Dev ECR (./docker/pii.Dockerfile, ECR_PII) (push) Has been cancelled
CI / Build Dev ECR (./docker/realtime.Dockerfile, ECR_REALTIME) (push) Has been cancelled
CI / Deploy Trigger.dev (Dev) (push) Has been cancelled
CI / Build AMD64 (./docker/app.Dockerfile, ECR_APP, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build AMD64 (./docker/db.Dockerfile, ECR_MIGRATIONS, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build AMD64 (./docker/pii.Dockerfile, ECR_PII, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build AMD64 (./docker/realtime.Dockerfile, ECR_REALTIME, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/app.Dockerfile, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/db.Dockerfile, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/pii.Dockerfile, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/realtime.Dockerfile, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Check Docs Changes (push) Has been cancelled
CI / Process Docs (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / Test and Build (push) Has been cancelled
130 lines
5.0 KiB
YAML
130 lines
5.0 KiB
YAML
{{- if .Values.ingressInternal.enabled }}
|
|
{{- $appActive := .Values.app.enabled -}}
|
|
{{- $realtimeActive := .Values.realtime.enabled -}}
|
|
{{- $hasCopilotIngress := and .Values.copilot.enabled .Values.ingressInternal.copilot -}}
|
|
{{- $realtimeHasOwnRule := and $realtimeActive (or (not $appActive) (ne .Values.ingressInternal.realtime.host .Values.ingressInternal.app.host)) -}}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "sim.fullname" . }}-ingress-internal
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "sim.labels" . | nindent 4 }}
|
|
{{- with .Values.ingressInternal.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.ingressInternal.className }}
|
|
ingressClassName: {{ .Values.ingressInternal.className }}
|
|
{{- end }}
|
|
{{- if .Values.ingressInternal.tls.enabled }}
|
|
tls:
|
|
- hosts:
|
|
{{- if $appActive }}
|
|
- {{ .Values.ingressInternal.app.host | quote }}
|
|
{{- end }}
|
|
{{- if $realtimeHasOwnRule }}
|
|
- {{ .Values.ingressInternal.realtime.host | quote }}
|
|
{{- end }}
|
|
{{- if $hasCopilotIngress }}
|
|
{{- $copilotHostCovered := false }}
|
|
{{- if and $appActive (eq .Values.ingressInternal.copilot.host .Values.ingressInternal.app.host) }}
|
|
{{- $copilotHostCovered = true }}
|
|
{{- end }}
|
|
{{- if and $realtimeHasOwnRule (eq .Values.ingressInternal.copilot.host .Values.ingressInternal.realtime.host) }}
|
|
{{- $copilotHostCovered = true }}
|
|
{{- end }}
|
|
{{- if not $copilotHostCovered }}
|
|
- {{ .Values.ingressInternal.copilot.host | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
secretName: {{ .Values.ingressInternal.tls.secretName }}
|
|
{{- end }}
|
|
rules:
|
|
{{- if $appActive }}
|
|
- host: {{ .Values.ingressInternal.app.host | quote }}
|
|
http:
|
|
paths:
|
|
{{- if and $realtimeActive (eq .Values.ingressInternal.realtime.host .Values.ingressInternal.app.host) }}
|
|
{{- range .Values.ingressInternal.realtime.paths }}
|
|
- path: {{ .path }}
|
|
pathType: {{ .pathType }}
|
|
backend:
|
|
service:
|
|
name: {{ include "sim.fullname" $ }}-realtime
|
|
port:
|
|
number: {{ $.Values.realtime.service.port }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if and $hasCopilotIngress (eq .Values.ingressInternal.copilot.host .Values.ingressInternal.app.host) }}
|
|
{{- range .Values.ingressInternal.copilot.paths }}
|
|
- path: {{ .path }}
|
|
pathType: {{ .pathType }}
|
|
backend:
|
|
service:
|
|
name: {{ include "sim.fullname" $ }}-copilot
|
|
port:
|
|
number: {{ $.Values.copilot.server.service.port }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- range .Values.ingressInternal.app.paths }}
|
|
- path: {{ .path }}
|
|
pathType: {{ .pathType }}
|
|
backend:
|
|
service:
|
|
name: {{ include "sim.fullname" $ }}-app
|
|
port:
|
|
number: {{ $.Values.app.service.port }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if $realtimeHasOwnRule }}
|
|
- host: {{ .Values.ingressInternal.realtime.host | quote }}
|
|
http:
|
|
paths:
|
|
{{- range .Values.ingressInternal.realtime.paths }}
|
|
- path: {{ .path }}
|
|
pathType: {{ .pathType }}
|
|
backend:
|
|
service:
|
|
name: {{ include "sim.fullname" $ }}-realtime
|
|
port:
|
|
number: {{ $.Values.realtime.service.port }}
|
|
{{- end }}
|
|
{{- if and $hasCopilotIngress (eq .Values.ingressInternal.copilot.host .Values.ingressInternal.realtime.host) }}
|
|
{{- range .Values.ingressInternal.copilot.paths }}
|
|
- path: {{ .path }}
|
|
pathType: {{ .pathType }}
|
|
backend:
|
|
service:
|
|
name: {{ include "sim.fullname" $ }}-copilot
|
|
port:
|
|
number: {{ $.Values.copilot.server.service.port }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if $hasCopilotIngress }}
|
|
{{- $copilotServed := false }}
|
|
{{- if and $appActive (eq .Values.ingressInternal.copilot.host .Values.ingressInternal.app.host) }}
|
|
{{- $copilotServed = true }}
|
|
{{- end }}
|
|
{{- if and $realtimeHasOwnRule (eq .Values.ingressInternal.copilot.host .Values.ingressInternal.realtime.host) }}
|
|
{{- $copilotServed = true }}
|
|
{{- end }}
|
|
{{- if not $copilotServed }}
|
|
- host: {{ .Values.ingressInternal.copilot.host | quote }}
|
|
http:
|
|
paths:
|
|
{{- range .Values.ingressInternal.copilot.paths }}
|
|
- path: {{ .path }}
|
|
pathType: {{ .pathType }}
|
|
backend:
|
|
service:
|
|
name: {{ include "sim.fullname" $ }}-copilot
|
|
port:
|
|
number: {{ $.Values.copilot.server.service.port }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|