apps: retire the site-deployer ServiceAccount
Nothing in CI holds cluster credentials any more: every site image is pinned by tag/digest in this repo and rolled by Flux, so the siriusdevops and sirius-growth 'site-deployer' SA/Role/RoleBinding are dead. Dropping them from the kustomizations lets Flux prune all six objects, which also revokes the 8760h tokens behind the KUBE_CONFIG action secrets (deleted separately, and only after the pins were verified live). piedmont never had a deployer.yaml: its CI identity (phs-site-deployer) was created out-of-band and is removed by hand in the same change.
This commit is contained in:
parent
5273a993f2
commit
41bacb90e4
4 changed files with 0 additions and 70 deletions
|
|
@ -1,34 +0,0 @@
|
|||
# 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
|
||||
|
|
@ -9,6 +9,5 @@ resources:
|
|||
- service-api.yaml
|
||||
- service-portal.yaml
|
||||
- httproute.yaml
|
||||
- deployer.yaml
|
||||
- cluster.yaml
|
||||
- podmonitor.yaml
|
||||
|
|
|
|||
Loading…
Reference in a new issue