Using TENANT settings variables

This commit is contained in:
Baptiste Bonnot 2024-10-31 13:07:11 +01:00
parent 529a8317c1
commit c090fa239c
7 changed files with 29 additions and 14 deletions

View file

@ -4,7 +4,7 @@ apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: bjw-s
namespace: ${REPO_NAME}-ns
namespace: ${TENANT_NAMESPACE}-ns
spec:
type: oci
interval: 5m

22
repos/ks.yaml Normal file
View file

@ -0,0 +1,22 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app repos-sync
namespace: ${TENANT_NAMESPACE}-ns
spec:
targetNamespace: ${TENANT_NAMESPACE}-ns
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./repos/helm
prune: true
serviceAccountName: ${TENANT_NAMESPACE}-sa
sourceRef:
kind: GitRepository
name: tenant-repos
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m

View file

@ -1,7 +1 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helm