clean up for ontime specific

This commit is contained in:
2025-10-26 13:53:13 -05:00
parent 16a1fb2280
commit 9b13d43a6c
4 changed files with 17 additions and 22 deletions

View File

@@ -1,2 +1,8 @@
resources: resources:
- manager.yaml - manager.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: git.jwetzell.com/jwetzell/ontime-operator
newTag: v0.0.3

View File

@@ -32,20 +32,15 @@ spec:
securityContext: securityContext:
{{- toYaml . | nindent 12 }} {{- toYaml . | nindent 12 }}
{{- end }} {{- end }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.ontime.version | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: ROUTER_PREFIX
value: {{ .Values.ontime.prefix}}
ports: ports:
- name: http - name: http
containerPort: {{ .Values.service.port }} containerPort: {{ .Values.service.port }}
protocol: TCP protocol: TCP
{{- with .Values.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.resources }} {{- with .Values.resources }}
resources: resources:
{{- toYaml . | nindent 12 }} {{- toYaml . | nindent 12 }}

View File

@@ -24,22 +24,16 @@ spec:
{{- end }} {{- end }}
{{- end }} {{- end }}
rules: rules:
{{- range .Values.ingress.hosts }}
- http: - http:
paths: paths:
{{- range .paths }} - path: /{{ .Values.ontime.prefix}}
- path: {{ .path }} pathType: ImplementationSpecific
{{- with .pathType }}
pathType: {{ . }}
{{- end }}
backend: backend:
service: service:
name: {{ include "stage.fullname" $ }} name: {{ include "stage.fullname" $ }}
port: port:
number: {{ $.Values.service.port }} number: {{ $.Values.service.port }}
{{- end }} {{- if .Values.host }}
{{- if .host }}
host: {{ .host | quote }} host: {{ .host | quote }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }}

View File

@@ -3,6 +3,10 @@
# This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ # This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
replicaCount: 1 replicaCount: 1
ontime:
version: 4.0.2
prefix: ""
# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/ # This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
image: image:
repository: getontime/ontime repository: getontime/ontime
@@ -51,10 +55,6 @@ ingress:
annotations: {} annotations: {}
# kubernetes.io/ingress.class: nginx # kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true" # kubernetes.io/tls-acme: "true"
hosts:
- paths:
- path: /
pathType: ImplementationSpecific
tls: [] tls: []
# - secretName: chart-example-tls # - secretName: chart-example-tls
# hosts: # hosts: