First commit

This commit is contained in:
Stéphane Tailland
2026-08-19 16:57:43 +02:00
parent 8650f4ae7b
commit 6afd9c4c5f
15 changed files with 251 additions and 11 deletions
+24
View File
@@ -0,0 +1,24 @@
# The Flux Operator itself (flux-system ns) is installed manually via Helm,
# not by Flux — bootstrap problem, Flux can't deploy the thing that deploys
# it. Standard/expected: see README.md for the one-time install command.
#
# This FluxInstance is what the operator reconciles into the actual Flux
# controllers (source-controller, kustomize-controller, ...). No `sync`
# block yet: that would wire Flux to a GitRepository/OCIRepository source to
# reconcile automatically, and none of the kong-v2 repos have a remote yet
# (all local-only, see ../../STATUS.md) — until that's decided, apply
# Kustomizations manually per repo (e.g. `kubectl apply -k dataplane-catalog/dev/api-gateway/`).
apiVersion: fluxcd.controlplane.io/v1
kind: FluxInstance
metadata:
name: flux
namespace: flux-system
spec:
distribution:
registry: ghcr.io/fluxcd
version: "2.x"
components:
- source-controller
- kustomize-controller
- helm-controller
- notification-controller
+27
View File
@@ -0,0 +1,27 @@
# Not applied yet: url is a PLACEHOLDER, this repo has no git remote (see
# ../../STATUS.md). Once it does, this object is what makes source-controller
# actually clone it — nothing else does.
#
# Bootstrap step, same category as installing the Flux Operator itself
# (see ../README.md): this file must be applied manually once
# (`kubectl apply -f gitrepository.yaml`), because nothing can apply it
# automatically before it exists — Flux can't fetch the object that tells it
# where to fetch from. After that one-time apply, since this file lives
# inside the k8s-platform repo that the GitRepository itself now points at,
# a root Kustomization reconciling k8s-platform's own `flux/` directory
# would keep it (and everything else here) self-managing going forward —
# not scaffolded yet, out of scope for this file.
#
# Any other repo's Kustomization (e.g. dataplane-catalog's
# flux-kustomization.yaml) can reference this SAME GitRepository by name —
# one GitRepository per source repo, not per consumer.
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: k8s-platform
namespace: flux-system
spec:
interval: 5m
url: PLACEHOLDER # e.g. https://github.com/<org>/k8s-platform
ref:
branch: main
+5
View File
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- fluxinstance.yaml
- gitrepository.yaml