Using TENANT settings variables
This commit is contained in:
parent
529a8317c1
commit
c090fa239c
7 changed files with 29 additions and 14 deletions
|
@ -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
22
repos/ks.yaml
Normal 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
|
|
@ -1,7 +1 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./helm
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue