Skip to content

Commit

Permalink
Parameterise inttest ingress to be able to deploy on different servers (
Browse files Browse the repository at this point in the history
#616)

* Parameterise inttests ingress values

Signed-off-by: Eamonn Mansour <[email protected]>

* Fix CONTEXTROOT to serve inttests on a different server path

Signed-off-by: Eamonn Mansour <[email protected]>

---------

Signed-off-by: Eamonn Mansour <[email protected]>
  • Loading branch information
eamansour authored Sep 26, 2024
1 parent 4bb9e28 commit c5159f3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ spec:
name: inttests-{{ .Values.branch }}
env:
- name: CONTEXTROOT
value: {{ .Values.branch }}/maven-repo/inttests
value: {{ .Values.branch }}/maven-repo/{{ .Values.ingress.pathSuffix }}
ports:
- containerPort: 80
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,24 @@ kind: Ingress
metadata:
name: inttests-{{ .Values.branch }}
namespace: {{ .Values.namespace }}
{{- with .Values.ingress.annotations }}
annotations:
kubernetes.io/ingress.class: "public-iks-k8s-nginx"
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ingressClassName: {{ .Values.ingress.ingressClassName }}
{{- with .Values.ingress.tls }}
tls:
- hosts:
- development.galasa.dev
secretName: galasa-wildcard-cert
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- host: development.galasa.dev
- host: {{ .Values.ingress.externalHostname }}
http:
paths:
- backend:
service:
name: inttests-{{ .Values.branch }}
port:
number: 80
path: /{{ .Values.branch }}/maven-repo/{{ .Values.ingressPathSuffix }}
path: /{{ .Values.branch }}/maven-repo/{{ .Values.ingress.pathSuffix }}
pathType: Prefix
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,13 @@ namespace: galasa-development
branch: main
imageName: ghcr.io/galasa-dev/inttests-maven-artefacts
imageTag: main
ingressPathSuffix: inttests

ingress:
externalHostname: development.galasa.dev
ingressClassName: public-iks-k8s-nginx
pathSuffix: inttests
annotations: {}
tls:
- hosts:
- development.galasa.dev
secretName: galasa-wildcard-cert

0 comments on commit c5159f3

Please sign in to comment.