From bb1ace7041a8fbfb3a15fab47f5f5e2cf2d24465 Mon Sep 17 00:00:00 2001 From: Sirius DevOps Date: Mon, 19 Oct 2026 00:44:48 -0400 Subject: [PATCH] sirius-growth: declare the CI deployer ServiceAccount The site repo's CI rolls the Deployment after pushing a new image, using a kubeconfig stored as a repo secret. The token came from a ServiceAccount that only existed because it was created by hand; declare it so a cluster rebuild does not silently break deploys. Namespace-scoped, deployments only, get/list/patch. --- apps/base/sirius-growth/deployer.yaml | 34 ++++++++++++++++++++++ apps/base/sirius-growth/kustomization.yaml | 1 + 2 files changed, 35 insertions(+) create mode 100644 apps/base/sirius-growth/deployer.yaml diff --git a/apps/base/sirius-growth/deployer.yaml b/apps/base/sirius-growth/deployer.yaml new file mode 100644 index 0000000..28a6fd0 --- /dev/null +++ b/apps/base/sirius-growth/deployer.yaml @@ -0,0 +1,34 @@ +# Deployer identity used by the sirius-growth site repo's CI to roll the +# Deployment after pushing a new image. Deliberately minimal: patch/get/list on +# deployments in this namespace only. The kubeconfig is a repo secret +# (KUBE_CONFIG) in sirius/sirius-growth; the token is minted with +# # kubectl -n sirius-growth create token site-deployer --duration=8760h +apiVersion: v1 +kind: ServiceAccount +metadata: + name: site-deployer + namespace: sirius-growth +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: site-deployer + namespace: sirius-growth +rules: + - apiGroups: ["apps"] + resources: ["deployments"] + verbs: ["get", "list", "patch"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: site-deployer + namespace: sirius-growth +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: site-deployer +subjects: + - kind: ServiceAccount + name: site-deployer + namespace: sirius-growth diff --git a/apps/base/sirius-growth/kustomization.yaml b/apps/base/sirius-growth/kustomization.yaml index 04276f6..ceb5d30 100644 --- a/apps/base/sirius-growth/kustomization.yaml +++ b/apps/base/sirius-growth/kustomization.yaml @@ -7,3 +7,4 @@ resources: - service.yaml - service-api.yaml - httproute.yaml + - deployer.yaml