Skip to content

Commit

Permalink
Merge pull request #147 from Tricentis/update/launch
Browse files Browse the repository at this point in the history
Launch - add service annotations, remove ingress v1beta1
  • Loading branch information
byangtri committed Oct 10, 2023
2 parents 3592284 + a8791cc commit e85eaa7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Charts/qtest-launch/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ kubeVersion: ">=1.18.0-0"
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: 1.0.8
version: 1.0.9
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
4 changes: 0 additions & 4 deletions Charts/qtest-launch/templates/ingress-class.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{{- if .Values.ingressClass.enabled }}
{{- if semverCompare ">=1.18" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else -}}
apiVersion: networking.k8s.io/v1beta1
{{- end}}
kind: IngressClass
metadata:
name: "{{ include "qtest-launch.fullname" . }}-ingressclass"
Expand Down
4 changes: 0 additions & 4 deletions Charts/qtest-launch/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{{- if .Values.ingress.enabled -}}
{{- $paths := .Values.ingress.paths -}}
{{- $extraPaths := .Values.ingress.extraPaths -}}
{{- if semverCompare ">=1.18" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else -}}
apiVersion: networking.k8s.io/v1beta1
{{- end}}
kind: Ingress
metadata:
name: {{ .Values.ingress.name }}
Expand Down
8 changes: 8 additions & 0 deletions Charts/qtest-launch/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ kind: Service
metadata:
name: {{ .Values.service.serviceName }}
namespace: {{ .Values.namespace.name }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app: qtest-launch
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
Expand Down Expand Up @@ -31,6 +35,10 @@ kind: Service
metadata:
name: {{ .Values.service.serviceName }}-canary
namespace: {{ .Values.namespace.name }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app: qtest-launch
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
Expand Down
1 change: 1 addition & 0 deletions Charts/qtest-launch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ rollouts:
- pause: {duration: 10s}
service:
type: LoadBalancer
annotations: {}
port: 3080
targetPort: 3080
targetHttpsPort: 3443
Expand Down

0 comments on commit e85eaa7

Please sign in to comment.