Skip to content

Commit

Permalink
feat: move ingress to ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilla Vass committed Sep 18, 2023
1 parent 3b05a32 commit 8a4bef8
Show file tree
Hide file tree
Showing 16 changed files with 50 additions and 49 deletions.
2 changes: 1 addition & 1 deletion charts/testkube-cloud-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: testkube-cloud-api
description: A Helm chart for Testkube Cloud API
type: application
version: 1.15.7
version: 1.15.8
appVersion: 1.4.0-dev-7db3141
maintainers:
- name: testkube
Expand Down
6 changes: 1 addition & 5 deletions charts/testkube-cloud-api/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# testkube-cloud-api

![Version: 1.15.4](https://img.shields.io/badge/Version-1.15.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.0-dev-72a1668](https://img.shields.io/badge/AppVersion-1.4.0--dev--72a1668-informational?style=flat-square)
![Version: 1.15.8](https://img.shields.io/badge/Version-1.15.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.0-dev-7db3141](https://img.shields.io/badge/AppVersion-1.4.0--dev--7db3141-informational?style=flat-square)

A Helm chart for Testkube Cloud API

Expand Down Expand Up @@ -166,10 +166,6 @@ A Helm chart for Testkube Cloud API
| serviceAccount.create | bool | `false` | Toggle whether to create a ServiceAccount resource |
| serviceAccount.labels | object | `{}` | Additional labels to add to the ServiceAccount resource |
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| statusPagesIngress.annotations | object | `{}` | Additional annotations to add to the WebSocket Ingress resource |
| statusPagesIngress.enabled | bool | `true` | Toggle whether to enable the Status Pages API Ingress |
| statusPagesIngress.host | string | `""` | Hostname for which to create rules and TLS certificates |
| statusPagesIngress.labels | object | `{}` | Additional labels to add to the WebSocket Ingress resource |
| tolerations | list | `[]` | |
| websocketsIngress.annotations | object | `{}` | Additional annotations to add to the WebSocket Ingress resource |
| websocketsIngress.enabled | bool | `true` | Toggle whether to enable the Websocket API Ingress |
Expand Down
11 changes: 0 additions & 11 deletions charts/testkube-cloud-api/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,3 @@ Get Websockets Ingress host
{{- .Values.websocketsIngress.host }}
{{- end }}
{{- end }}

{{/*
Get Status Pages Ingress host
*/}}
{{- define "testkube-cloud-api.ingress.statusPagesHost" -}}
{{- if .Values.global.domain }}
{{- printf "%s.%s" .Values.global.statusPagesApiSubdomain .Values.global.domain }}
{{- else }}
{{- .Values.statusPagesIngress.host }}
{{- end }}
{{- end }}
12 changes: 0 additions & 12 deletions charts/testkube-cloud-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -358,15 +358,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: ""
2 changes: 1 addition & 1 deletion charts/testkube-cloud-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: testkube-cloud-ui
description: A Helm chart for Testkube Cloud UI
type: application
version: 1.15.6
version: 1.15.7
appVersion: 1.3.3
maintainers:
- name: testkube
Expand Down
7 changes: 6 additions & 1 deletion charts/testkube-cloud-ui/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# testkube-cloud-ui

![Version: 1.14.17](https://img.shields.io/badge/Version-1.14.17-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.0-dev-84e330b](https://img.shields.io/badge/AppVersion-1.4.0--dev--84e330b-informational?style=flat-square)
![Version: 1.15.7](https://img.shields.io/badge/Version-1.15.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.3](https://img.shields.io/badge/AppVersion-1.3.3-informational?style=flat-square)

A Helm chart for Testkube Cloud UI

Expand Down Expand Up @@ -68,8 +68,13 @@ A Helm chart for Testkube Cloud UI
| serviceAccount.create | bool | `false` | Toggle whether to create ServiceAccount resource |
| serviceAccount.labels | object | `{}` | Additional labels to add to the ServiceAccount resource |
| serviceAccount.name | string | `""` | The name of the ServiceAccount to use. If not set and create is true, a name is generated using the fullname template |
| statusPagesIngress.annotations | object | `{}` | Additional annotations to add to the WebSocket Ingress resource |
| statusPagesIngress.enabled | bool | `true` | Toggle whether to enable the Status Pages API Ingress |
| statusPagesIngress.host | string | `""` | Hostname for which to create rules and TLS certificates |
| statusPagesIngress.labels | object | `{}` | Additional labels to add to the WebSocket Ingress resource |
| tolerations | list | `[]` | |
| ui.apiServerEndpoint | string | `""` | API Server endpoint URL |
| ui.authStrategy | string | `""` | Auth strategy to use (possible values: "" (default), "gitlab", "github"), setting to "" enables all auth strategies |
| ui.disableTelemetry | bool | `false` | Force disabling telemetry on the UI |
| ui.rootRoute | string | `""` | The URL on which UI is served |
| ui.segment.secretRef | string | `""` | Segment.io write key secret ref (secret must contain key SEGMENTIO_WRITE_KEY_UI) (default is `testkube-cloud-analytics-secret`) |
Expand Down
13 changes: 12 additions & 1 deletion charts/testkube-cloud-ui/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,15 @@ Get Ingress host
{{- if .Values.global.domain }}
{{- printf "%s.%s" .Values.global.uiSubdomain .Values.global.domain }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Get Status Pages Ingress host
*/}}
{{- define "testkube-cloud-ui.ingress.statusPagesHost" -}}
{{- if .Values.global.domain }}
{{- printf "%s.%s" .Values.global.statusPagesUiSubdomain .Values.global.domain }}
{{- else }}
{{- .Values.statusPagesIngress.host }}
{{- end }}
{{- end }}
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-api.fullname" . -}}
{{- $fullName := include "testkube-cloud-ui.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-api.labels" . | nindent 4 }}
{{- include "testkube-cloud-ui.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-api.ingress.statusPagesHost" . | quote }}
secretName: {{ .Values.api.tls.tlsSecret }}
- {{ include "testkube-cloud-ui.ingress.statusPagesHost" . | quote }}
secretName: {{ .Values.ingress.tlsSecretName }}
rules:
- host: {{ include "testkube-cloud-api.ingress.statusPagesHost" . | quote }}
- host: {{ include "testkube-cloud-ui.ingress.statusPagesHost" . | quote }}
http:
paths:
- path: /
Expand Down
12 changes: 12 additions & 0 deletions charts/testkube-cloud-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,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: ""
8 changes: 4 additions & 4 deletions charts/testkube-enterprise/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ dependencies:
version: 2.2.5
- name: testkube-cloud-api
repository: file://../testkube-cloud-api
version: 1.15.7
version: 1.15.8
- name: testkube-cloud-ui
repository: file://../testkube-cloud-ui
version: 1.15.6
version: 1.15.7
- name: dex
repository: https://charts.dexidp.io
version: 0.14.1
Expand All @@ -17,5 +17,5 @@ dependencies:
- name: nats
repository: https://nats-io.github.io/k8s/helm/charts/
version: 0.14.2
digest: sha256:d95af8634397a6cf021f6440ee4da33256db45e7eb59d5fb5342b2672231d3d9
generated: "2023-09-18T09:03:50.302896037Z"
digest: sha256:61848ce8f7310bc12056e9f38f0731fb37b0ad16500992d4dab5972abc5b23d8
generated: "2023-09-18T13:03:26.220284+02:00"
6 changes: 3 additions & 3 deletions charts/testkube-enterprise/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ apiVersion: v2
name: testkube-enterprise
description: A Helm chart for Testkube Enterprise
type: application
version: 1.12.38
version: 1.12.39
dependencies:
- name: common
version: 2.2.5
repository: https://charts.bitnami.com/bitnami
- name: testkube-cloud-api
version: 1.15.7
version: 1.15.8
repository: file://../testkube-cloud-api
- name: testkube-cloud-ui
version: 1.15.6
version: 1.15.7
repository: file://../testkube-cloud-ui
- name: dex
version: 0.14.1
Expand Down
10 changes: 5 additions & 5 deletions charts/testkube-enterprise/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# testkube-enterprise

![Version: 1.12.38](https://img.shields.io/badge/Version-1.12.38-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 1.12.39](https://img.shields.io/badge/Version-1.12.39-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

A Helm chart for Testkube Enterprise

Expand All @@ -21,8 +21,8 @@ A Helm chart for Testkube Enterprise

| Repository | Name | Version |
|------------|------|---------|
| file://../testkube-cloud-api | testkube-cloud-api | 1.15.4 |
| file://../testkube-cloud-ui | testkube-cloud-ui | 1.14.17 |
| file://../testkube-cloud-api | testkube-cloud-api | 1.15.8 |
| file://../testkube-cloud-ui | testkube-cloud-ui | 1.15.7 |
| https://charts.bitnami.com/bitnami | common | 2.2.5 |
| https://charts.bitnami.com/bitnami | mongodb | 13.10.2 |
| https://charts.dexidp.io | dex | 0.14.1 |
Expand Down Expand Up @@ -125,7 +125,7 @@ A Helm chart for Testkube Enterprise
| testkube-cloud-api.api.tls.tlsSecret | string | `"testkube-enterprise-api-tls"` | |
| testkube-cloud-api.fullnameOverride | string | `"testkube-enterprise-api"` | |
| testkube-cloud-api.image.repository | string | `"testkubeenterprise/testkube-enterprise-api"` | |
| testkube-cloud-api.image.tag | string | `"1.4.0-dev-72a1668"` | |
| testkube-cloud-api.image.tag | string | `"1.4.0-dev-7db3141"` | |
| testkube-cloud-api.ingress | string | `nil` | |
| testkube-cloud-api.minio.accessModes | list | `["ReadWriteOnce"]` | PVC Access Modes for Minio. The volume is mounted as read-write by a single node. |
| testkube-cloud-api.minio.affinity | object | `{}` | Affinity for pod assignment. |
Expand All @@ -148,7 +148,7 @@ A Helm chart for Testkube Enterprise
| testkube-cloud-api.prometheus.enabled | bool | `true` | |
| testkube-cloud-ui.fullnameOverride | string | `"testkube-enterprise-ui"` | |
| testkube-cloud-ui.image.repository | string | `"testkubeenterprise/testkube-enterprise-ui"` | |
| testkube-cloud-ui.image.tag | string | `"1.4.0-dev-84e330b"` | |
| testkube-cloud-ui.image.tag | string | `"1.3.3"` | |
| testkube-cloud-ui.ingress.tlsSecretName | string | `"testkube-enterprise-ui-tls"` | Name of the TLS secret which contains the certificate files |

----------------------------------------------
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 8a4bef8

Please sign in to comment.