time: add kimai

This commit is contained in:
xeruf 2022-07-07 20:22:47 +01:00
parent 64a5ba421b
commit cf4e720831
4 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,27 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: kimai
namespace: stackspout
spec:
releaseName: kimai
chart:
spec:
chart: kimai
version: 1.3.0
sourceRef:
kind: HelmRepository
name: robjuz
namespace: flux-system
interval: 5m
valuesFrom:
- kind: ConfigMap
name: stackspin-kimai-values
optional: false
# Allow overriding values by ConfigMap or Secret
- kind: ConfigMap
name: stackspin-kimai-override
optional: true
- kind: Secret
name: stackspin-kimai-override
optional: true

View File

@ -0,0 +1,21 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: stackspin-kimai-values
namespace: stackspout
data:
values.yaml: |
# https://github.com/robjuz/helm-charts/tree/master/charts/kimai2
image:
# Maybe apache-latest?
tag: apache-1.20.4-prod
ingress:
enabled: true
certManager: true
tls: true
hostname: "time.${domain}"
# - name: Stackspin
# key: "${client_id}"
# secret: "${client_secret}"
# autoDiscoverUrl: 'https://sso.${domain}/.well-known/openid-configuration'

View File

@ -0,0 +1,25 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: kimai
namespace: flux-system
spec:
interval: 30m
wait: true
timeout: 1h
dependsOn:
- name: single-sign-on
sourceRef:
kind: GitRepository
name: stackspout
path: ./basic/apps/time
prune: true
postBuild:
substituteFrom:
#- kind: Secret
# name: stackspin-kimai-variables
- kind: Secret
name: stackspin-kimai-oauth-variables
- kind: Secret
name: stackspin-cluster-variables

View File

@ -0,0 +1,9 @@
# For kimai2
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: robjuz
namespace: flux-system
spec:
interval: 60m
url: https://robjuz.github.io/helm-charts/