# One Kustomization per domain, all pointing at the same source file and # differing only by targetNamespace. This is what puts # dataplane-template-defaults inside each domain namespace, which is the # precondition for a domain's own gateway Kustomization to live there too — # postBuild.substituteFrom reads only from its own namespace. # # Platform-owned on purpose: these are the defaults a feature team inherits, # not ones it sets. They stay in flux-system, and everything a team does own # moves out of it. # # The flux-system copy stays for now: the gateway Kustomizations still read it # from there and only stop once they move. --- apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: name: domain-defaults-catalog namespace: flux-system spec: interval: 10m sourceRef: kind: GitRepository name: k8s-platform path: ./kong-platform/domain-defaults targetNamespace: catalog prune: true --- apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: name: domain-defaults-customers namespace: flux-system spec: interval: 10m sourceRef: kind: GitRepository name: k8s-platform path: ./kong-platform/domain-defaults targetNamespace: customers prune: true --- apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: name: domain-defaults-payments namespace: flux-system spec: interval: 10m sourceRef: kind: GitRepository name: k8s-platform path: ./kong-platform/domain-defaults targetNamespace: payments prune: true --- apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: name: domain-defaults-sales namespace: flux-system spec: interval: 10m sourceRef: kind: GitRepository name: k8s-platform path: ./kong-platform/domain-defaults targetNamespace: sales prune: true --- apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: name: domain-defaults-workforce namespace: flux-system spec: interval: 10m sourceRef: kind: GitRepository name: k8s-platform path: ./kong-platform/domain-defaults targetNamespace: workforce prune: true --- apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: name: domain-defaults-llm namespace: flux-system spec: interval: 10m sourceRef: kind: GitRepository name: k8s-platform path: ./kong-platform/domain-defaults targetNamespace: llm prune: true