Create per-app kustomizations

This commit is contained in:
xeruf 2022-06-29 22:33:54 +01:00
parent 2137b80af8
commit 0a05dbeb22
8 changed files with 76 additions and 18 deletions

View File

@ -12,7 +12,7 @@ spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: gitea name: gitea
namespace: stackspout namespace: flux-system
interval: 10m interval: 10m
valuesFrom: valuesFrom:
- kind: ConfigMap - kind: ConfigMap

View File

@ -23,7 +23,7 @@ data:
oauth: oauth:
- name: Stackspin - name: Stackspin
provider: 'openidConnect' provider: 'openidConnect'
key: gitea key: "${client_id}"
secret: "${client_secret}" secret: "${client_secret}"
customAuthUrl: "https://sso.ftt.gmbh" customAuthUrl: "https://sso.ftt.gmbh"
#autoDiscoverUrl: 'https://gitea.example.com/.well-known/openid-configuration' #autoDiscoverUrl: 'https://gitea.example.com/.well-known/openid-configuration'

View File

@ -12,7 +12,7 @@ spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: k8s-at-home name: k8s-at-home
namespace: stackspout namespace: flux-system
interval: 10m interval: 10m
valuesFrom: valuesFrom:
- kind: ConfigMap - kind: ConfigMap

View File

@ -1,13 +0,0 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: apps
namespace: stackspout
spec:
interval: 10m
sourceRef:
kind: GitRepository
name: stackspout
path: ./basic/apps
prune: true
validation: client

View File

@ -0,0 +1,35 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: gitea
namespace: stackspout
spec:
interval: 10m
timeout: 30m
dependsOn:
- name: single-sign-on
sourceRef:
kind: GitRepository
name: stackspout
path: ./basic/apps/gitea
prune: true
# TODO what does this mean?
#validation: client
healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
name: gitea
namespace: stackspout
- apiVersion: apps/v1
kind: Deployment
name: gitea
namespace: stackspout
postBuild:
substituteFrom:
#- kind: Secret
# name: stackspin-gitea-variables
- kind: Secret
name: stackspin-gitea-oauth-variables
- kind: Secret
name: stackspin-cluster-variables

View File

@ -0,0 +1,35 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: vikunja
namespace: stackspout
spec:
interval: 10m
timeout: 30m
dependsOn:
- name: single-sign-on
sourceRef:
kind: GitRepository
name: stackspout
path: ./basic/apps/vikunja
prune: true
# TODO what does this mean?
#validation: client
healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
name: vikunja
namespace: stackspout
- apiVersion: apps/v1
kind: Deployment
name: vikunja
namespace: stackspout
postBuild:
substituteFrom:
#- kind: Secret
# name: stackspin-vikunja-variables
- kind: Secret
name: stackspin-vikunja-oauth-variables
- kind: Secret
name: stackspin-cluster-variables

View File

@ -2,7 +2,7 @@ apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository kind: HelmRepository
metadata: metadata:
name: gitea name: gitea
namespace: stackspout namespace: flux-system
spec: spec:
interval: 10m interval: 10m
url: https://dl.gitea.io/charts/ url: https://dl.gitea.io/charts/

View File

@ -1,8 +1,9 @@
# For Vikunja
apiVersion: source.toolkit.fluxcd.io/v1beta1 apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository kind: HelmRepository
metadata: metadata:
name: k8s-at-home name: k8s-at-home
namespace: stackspout namespace: flux-system
spec: spec:
interval: 10m interval: 10m
url: https://k8s-at-home.com/charts/ url: https://k8s-at-home.com/charts/