suitecrm: add people app

This commit is contained in:
xeruf 2022-06-29 23:59:48 +01:00
parent c0dfdc041f
commit 8868a66812
3 changed files with 84 additions and 0 deletions

View File

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

View File

@ -0,0 +1,22 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: stackspin-suitecrm-values
namespace: stackspout
data:
values.yaml: |
ingress:
enabled: true
annotations:
kubernetes.io/tls-acme: true
hostname: "people.${domain}"
tls: true
# - secretName: suitecrm-tls
# hosts:
# - "people.${domain}"
# TODO Adjust OIDC SSO to service
# - name: Stackspin
# key: "${client_id}"
# secret: "${client_secret}"
# customAuthUrl: "https://people.${domain}/login/login"

View File

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