Skip to content

Commit

Permalink
feat: move ingress to api
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilla Vass committed Sep 12, 2023
1 parent 2ff3c2a commit fcc206c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if and .Values.global.ingress .Values.statusPagesIngress.enabled -}}
{{- $fullName := include "testkube-cloud-ui.fullname" . -}}
{{- $fullName := include "testkube-cloud-api.fullname" . -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
Expand All @@ -16,7 +16,7 @@ kind: Ingress
metadata:
name: {{ $fullName }}-status-pages
labels:
{{- include "testkube-cloud-ui.labels" . | nindent 4 }}
{{- include "testkube-cloud-api.labels" . | nindent 4 }}
{{- if .Values.statusPagesIngress.labels }}
{{- toYaml .Values.ingress.labels | nindent 4 }}
{{- end }}
Expand Down Expand Up @@ -44,10 +44,10 @@ spec:
{{- end }}
tls:
- hosts:
- {{ include "testkube-cloud-ui.statusPagesIngress.host" . | quote }}
- {{ include "testkube-cloud-api.statusPagesIngress.host" . | quote }}
secretName: {{ .Values.ingress.tlsSecretName }}
rules:
- host: {{ include "testkube-cloud-ui.statusPagesIngress.host" . | quote }}
- host: {{ include "testkube-cloud-api.statusPagesIngress.host" . | quote }}
http:
paths:
- path: /
Expand Down
12 changes: 12 additions & 0 deletions charts/testkube-cloud-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -350,3 +350,15 @@ nodeSelector: {}
tolerations: []

affinity: {}

statusPagesIngress:
# -- Toggle whether to enable the Status Pages API Ingress
enabled: true
# -- Additional labels to add to the WebSocket Ingress resource
labels: {}
# -- Additional annotations to add to the WebSocket Ingress resource
annotations:
{}
# kubernetes.io/ingress.class: nginx
# -- Hostname for which to create rules and TLS certificates
host: "*.status.testkube.io"
12 changes: 0 additions & 12 deletions charts/testkube-cloud-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,3 @@ nodeSelector: {}
tolerations: []

affinity: {}

statusPagesIngress:
# -- Toggle whether to enable the Status Pages API Ingress
enabled: true
# -- Additional labels to add to the WebSocket Ingress resource
labels: {}
# -- Additional annotations to add to the WebSocket Ingress resource
annotations:
{}
# kubernetes.io/ingress.class: nginx
# -- Hostname for which to create rules and TLS certificates
host: "*.status.testkube.io"

0 comments on commit fcc206c

Please sign in to comment.