apps/ninja: move kustomization variables to fix substitution

This commit is contained in:
xeruf 2024-02-07 13:53:46 +01:00
parent 3f1d5feb1b
commit b90c9c236a
9 changed files with 9 additions and 34 deletions

View File

@ -1,13 +0,0 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: stackspout-apps
namespace: flux-system
spec:
interval: 10m
retryInterval: 2m
prune: true
path: ./apps/code
sourceRef:
kind: GitRepository
name: stackspout

View File

@ -1,13 +0,0 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: stackspout-apps
namespace: flux-system
spec:
interval: 10m
retryInterval: 2m
prune: true
path: ./apps/forge
sourceRef:
kind: GitRepository
name: stackspout

View File

@ -1,4 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ninja-kustomization.yaml

View File

@ -24,11 +24,11 @@ spec:
- kind: Secret
name: stackspin-cluster-variables
- kind: Secret
name: stackspout-invoiceninja-variables
name: stackspin-invoiceninja-variables
- kind: ConfigMap
name: stackspout-invoiceninja-kustomization-variables
- kind: Secret
name: stackspout-invoiceninja-oauth-variables
name: stackspin-invoiceninja-oauth-variables
optional: true
- kind: ConfigMap
name: stackspin-single-sign-on-kustomization-variables

View File

@ -16,3 +16,7 @@ spec:
dependsOn:
- name: flux
- name: secrets-controller
postBuild:
substituteFrom:
- kind: Secret
name: stackspin-cluster-variables

View File

@ -2,7 +2,7 @@
apiVersion: secretgenerator.mittwald.de/v1alpha1
kind: StringSecret
metadata:
name: stackspout-invoiceninja-oauth-variables
name: stackspin-invoiceninja-oauth-variables
namespace: flux-system
spec:
data:

View File

@ -1,7 +1,7 @@
apiVersion: secretgenerator.mittwald.de/v1alpha1
kind: StringSecret
metadata:
name: stackspout-invoiceninja-variables
name: stackspin-invoiceninja-variables
namespace: flux-system
spec:
fields:

View File

@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- invoiceninja-variables.yaml
- invoiceninja-kustomization-variables.yaml