apps/ninja: adjust fully to new template
This commit is contained in:
parent
853522f5d4
commit
03dbaad254
|
@ -1,11 +1,10 @@
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
|
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
metadata:
|
metadata:
|
||||||
name: stackspout-apps
|
name: add-ninja
|
||||||
namespace: flux-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
interval: 10m
|
interval: 10m
|
||||||
retryInterval: 2m
|
|
||||||
prune: true
|
prune: true
|
||||||
path: ./apps/ninja
|
path: ./apps/ninja
|
||||||
sourceRef:
|
sourceRef:
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
|
|
||||||
kind: Kustomization
|
|
||||||
metadata:
|
|
||||||
name: invoiceninja
|
|
||||||
namespace: flux-system
|
|
||||||
spec:
|
|
||||||
interval: 10m
|
|
||||||
retryInterval: 2m
|
|
||||||
wait: true
|
|
||||||
timeout: 3m
|
|
||||||
#dependsOn:
|
|
||||||
# - name: single-sign-on
|
|
||||||
sourceRef:
|
|
||||||
kind: GitRepository
|
|
||||||
name: stackspout
|
|
||||||
path: ./apps/ninja
|
|
||||||
prune: true
|
|
||||||
postBuild:
|
|
||||||
substituteFrom:
|
|
||||||
- kind: Secret
|
|
||||||
name: stackspin-invoiceninja-variables
|
|
||||||
- kind: Secret
|
|
||||||
name: stackspin-invoiceninja-oauth-variables
|
|
||||||
optional: true
|
|
||||||
- kind: Secret
|
|
||||||
name: stackspin-cluster-variables
|
|
||||||
- kind: ConfigMap
|
|
||||||
name: stackspin-nextcloud-kustomization-variables
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: invoiceninja
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 5m
|
||||||
|
retryInterval: 2m
|
||||||
|
timeout: 10m
|
||||||
|
wait: true
|
||||||
|
prune: true
|
||||||
|
path: ./apps/ninja/invoiceninja
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: stackspout
|
||||||
|
dependsOn:
|
||||||
|
- name: flux
|
||||||
|
- name: local-path-provisioner
|
||||||
|
- name: invoiceninja-secrets
|
||||||
|
- name: nginx
|
||||||
|
#- name: single-sign-on
|
||||||
|
postBuild:
|
||||||
|
substituteFrom:
|
||||||
|
- kind: Secret
|
||||||
|
name: stackspout-invoiceninja-variables
|
||||||
|
- kind: Secret
|
||||||
|
name: stackspout-invoiceninja-oauth-variables
|
||||||
|
optional: true
|
||||||
|
- kind: ConfigMap
|
||||||
|
name: stackspout-invoiceninja-kustomization-variables
|
||||||
|
- kind: Secret
|
||||||
|
name: stackspin-cluster-variables
|
||||||
|
- kind: ConfigMap
|
||||||
|
name: stackspin-single-sign-on-kustomization-variables
|
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: invoiceninja-secrets
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 5m
|
||||||
|
timeout: 4m
|
||||||
|
wait: true
|
||||||
|
prune: true
|
||||||
|
path: ./apps/ninja/invoiceninja-secrets
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: stackspout
|
||||||
|
dependsOn:
|
||||||
|
- name: flux
|
||||||
|
- name: secrets-controller
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
apiVersion: secretgenerator.mittwald.de/v1alpha1
|
||||||
|
kind: StringSecret
|
||||||
|
metadata:
|
||||||
|
name: stackspout-invoiceninja-oauth-variables
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
data:
|
||||||
|
client_id: invoiceninja
|
||||||
|
fields:
|
||||||
|
- fieldName: client_secret
|
||||||
|
length: "32"
|
|
@ -1,7 +1,7 @@
|
||||||
apiVersion: secretgenerator.mittwald.de/v1alpha1
|
apiVersion: secretgenerator.mittwald.de/v1alpha1
|
||||||
kind: StringSecret
|
kind: StringSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: stackspin-invoiceninja-variables
|
name: stackspout-invoiceninja-variables
|
||||||
namespace: flux-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
fields:
|
fields:
|
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- invoiceninja-variables.yaml
|
|
@ -0,0 +1,7 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- invoiceninja-mariadb-pvc.yaml
|
||||||
|
- invoiceninja-pvc.yaml
|
||||||
|
- invoiceninja-release.yaml
|
||||||
|
- invoiceninja-values-configmap.yaml
|
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: add-ninja
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
prune: true
|
||||||
|
path: ./apps/ninja
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: stackspout
|
|
@ -1,4 +1,3 @@
|
||||||
# For kimai2
|
|
||||||
apiVersion: source.toolkit.fluxcd.io/v1beta1
|
apiVersion: source.toolkit.fluxcd.io/v1beta1
|
||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
metadata:
|
metadata:
|
||||||
|
|
Loading…
Reference in New Issue