Compare commits

..

4 Commits

Author SHA1 Message Date
Joel Wetzell
38f3c2e233 remove ingress from sample 2025-12-29 15:32:22 -06:00
Joel Wetzell
696824fe9f update PROJECT 2025-12-29 15:29:19 -06:00
Joel Wetzell
d1d1aa45e4 fix configmap for dynamic env 2025-12-16 22:39:58 -06:00
d6e5f1fbc9 add configfor dynamic env setup 2025-11-12 20:29:03 -06:00
8 changed files with 23 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
# This file is used to track the info used to scaffold your project # This file is used to track the info used to scaffold your project
# and allow the plugins properly work. # and allow the plugins properly work.
# More info: https://book.kubebuilder.io/reference/project-config.html # More info: https://book.kubebuilder.io/reference/project-config.html
domain: getontime.no domain: cloud.getontime.no
layout: layout:
- helm.sdk.operatorframework.io/v1 - helm.sdk.operatorframework.io/v1
projectName: ontime-operator projectName: ontime-operator
@@ -10,7 +10,7 @@ resources:
- api: - api:
crdVersion: v1 crdVersion: v1
namespaced: true namespaced: true
domain: getontime.no domain: cloud.getontime.no
group: ontime group: ontime
kind: Stage kind: Stage
version: v1 version: v1

View File

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

View File

@@ -20,6 +20,13 @@ rules:
- secrets - secrets
verbs: verbs:
- "*" - "*"
# We need to manage config maps
- apiGroups:
- ""
resources:
- configmaps
verbs:
- "*"
# We need to create events on CRs about things happening during reconciliation # We need to create events on CRs about things happening during reconciliation
- apiGroups: - apiGroups:
- "" - ""

View File

@@ -3,8 +3,6 @@ kind: Stage
metadata: metadata:
name: stage-sample name: stage-sample
spec: spec:
ingress:
className: nginx
ontime: ontime:
timezone: "America/Chicago" timezone: "America/Chicago"
prefix: "test" prefix: "test"

View File

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

View File

@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "stage.fullname" . }}-env
data:
{{- if .Values.ontime.reset }}
RESET_APP_STATE: "true"
{{- end }}

View File

@@ -34,6 +34,9 @@ spec:
{{- end }} {{- end }}
image: "{{ .Values.image.repository }}:{{ .Values.ontime.version | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.ontime.version | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
envFrom:
- configMapRef:
name: {{ include "stage.fullname" . }}-env
env: env:
- name: IS_CLOUD - name: IS_CLOUD
value: "true" value: "true"

View File

@@ -6,6 +6,7 @@ replicaCount: 1
ontime: ontime:
version: v4.1.0 version: v4.1.0
reset: false
# prefix: "" # prefix: ""
# timezone: "UTC" # timezone: "UTC"
# password: "password" # password: "password"