Compare commits

...

6 Commits

Author SHA1 Message Date
641ee6a8b6 bump version 2025-11-12 16:22:31 -06:00
1f8780481f add prefix to readiness probe 2025-11-12 16:22:13 -06:00
37fa20c1ec bump version 2025-11-12 16:09:51 -06:00
512d36c7b4 add sectionName to httproute 2025-11-12 16:09:31 -06:00
791e6ca324 bump chart version 2025-11-12 15:31:44 -06:00
b9fcd8cf96 switch to gateway api 2025-11-12 15:30:49 -06:00
7 changed files with 27 additions and 45 deletions

View File

@@ -5,4 +5,4 @@ kind: Kustomization
images:
- name: controller
newName: git.jwetzell.com/jwetzell/ontime-operator
newTag: v1.5.0
newTag: v1.6.2

View File

@@ -61,8 +61,8 @@ rules:
- verbs:
- "*"
apiGroups:
- "networking.k8s.io"
- "gateway.networking.k8s.io"
resources:
- "ingresses"
- "httproutes"
# +kubebuilder:scaffold:rules

View File

@@ -3,4 +3,4 @@ appVersion: v4.1.0
description: A Helm chart for Ontime
name: stage
type: application
version: 1.5.0
version: 1.6.2

View File

@@ -55,7 +55,7 @@ spec:
protocol: TCP
readinessProbe:
httpGet:
path: /health
path: /{{ .Values.ontime.prefix }}/health
port: 4001
{{- with .Values.resources }}
resources:

View File

@@ -0,0 +1,18 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: {{ include "stage.fullname" . }}
spec:
parentRefs:
- name: {{ .Values.gateway.name }}
namespace: {{ .Values.gateway.namespace }}
sectionName: {{ .Values.gateway.sectionName }}
rules:
- backendRefs:
- name: {{ include "stage.fullname" $ }}
port: {{ $.Values.service.port }}
matches:
- path:
type: PathPrefix
value: /{{ .Values.ontime.prefix}}

View File

@@ -1,33 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "stage.fullname" . }}
labels:
{{- include "stage.labels" . | nindent 4 }}
annotations:
{{- if .Values.ingress.tls.issuer }}
cert-manager.io/cluster-issuer: {{ .Values.ingress.tls.issuer}}
{{- end}}
spec:
{{- with .Values.ingress.className }}
ingressClassName: {{ . }}
{{- end }}
rules:
- http:
paths:
- path: /{{ .Values.ontime.prefix}}
pathType: ImplementationSpecific
backend:
service:
name: {{ include "stage.fullname" $ }}
port:
number: {{ $.Values.service.port }}
{{- if .Values.ingress.hostname }}
host: {{ .Values.ingress.hostname | quote }}
{{- if .Values.ingress.tls.enabled }}
tls:
- hosts:
- {{ .Values.ingress.hostname | quote }}
secretName: {{ include "stage.fullname" . }}-cert
{{- end }}
{{- end }}

View File

@@ -42,13 +42,10 @@ service:
type: ClusterIP
port: 4001
# This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/
ingress:
className: ""
# hostname: "ontime.example.com"
tls:
enabled: false
issuer: ''
gateway:
name: "ontime"
namespace: "kube-system"
sectionName: "https"
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious