Files
website/k8s/cluster/deployer-sa.yaml
Mikael BergandPaperclip 230d4f2fec fix(form): correct token names, class names, and full-variant layout in WaitlistForm
- Replace --space-N with --sp-N (correct token name per globals.css)
- Replace nonexistent form-input class with waitlist-input/waitlist-select
- Replace nonexistent btn-primary class with btn btn--accent
- Replace nonexistent form-error class with waitlist-error
- Full variant now single-column per spec: email gets a visible label and
  sits in the column flow; submit button full-width; inline variant unchanged
- Add missing .waitlist-select:focus border style (accessibility)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-20 14:24:19 +00:00

120 lines
3.4 KiB
YAML

# Deployer ServiceAccount for using.cash CI/CD pipeline.
# Apply this manifest with cluster-admin credentials once, then run
# scripts/bootstrap-kubeconfig.sh to generate the kubeconfig for CI.
#
# Required permissions:
# - Namespace create (cluster-scoped, for using-cash + analytics)
# - Full CRUD on Deployment, Service, Ingress, PVC, Secret, ConfigMap
# in namespaces: using-cash, analytics
# - ClusterIssuer create (cert-manager, cluster-scoped)
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: using-cash-deployer
namespace: kube-system
---
# Cluster-scoped: create Namespace + ClusterIssuer
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: using-cash-deployer
rules:
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["get", "create", "patch"]
- apiGroups: ["cert-manager.io"]
resources: ["clusterissuers"]
verbs: ["get", "create", "patch", "apply"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: using-cash-deployer
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: using-cash-deployer
subjects:
- kind: ServiceAccount
name: using-cash-deployer
namespace: kube-system
---
# Namespace-scoped: full access in using-cash
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: using-cash-deployer
namespace: using-cash
rules:
- apiGroups: ["apps"]
resources: ["deployments", "replicasets"]
verbs: ["get", "list", "create", "patch", "update", "delete"]
- apiGroups: [""]
resources: ["services", "configmaps", "secrets", "persistentvolumeclaims", "pods"]
verbs: ["get", "list", "create", "patch", "update", "delete"]
- apiGroups: ["networking.k8s.io"]
resources: ["ingresses"]
verbs: ["get", "list", "create", "patch", "update", "delete"]
- apiGroups: ["apps"]
resources: ["deployments/status"]
verbs: ["get"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: using-cash-deployer
namespace: using-cash
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: using-cash-deployer
subjects:
- kind: ServiceAccount
name: using-cash-deployer
namespace: kube-system
---
# Namespace-scoped: full access in analytics
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: using-cash-deployer
namespace: analytics
rules:
- apiGroups: ["apps"]
resources: ["deployments", "replicasets"]
verbs: ["get", "list", "create", "patch", "update", "delete"]
- apiGroups: [""]
resources: ["services", "configmaps", "secrets", "persistentvolumeclaims", "pods"]
verbs: ["get", "list", "create", "patch", "update", "delete"]
- apiGroups: ["networking.k8s.io"]
resources: ["ingresses"]
verbs: ["get", "list", "create", "patch", "update", "delete"]
- apiGroups: ["apps"]
resources: ["deployments/status"]
verbs: ["get"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: using-cash-deployer
namespace: analytics
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: using-cash-deployer
subjects:
- kind: ServiceAccount
name: using-cash-deployer
namespace: kube-system
---
# Long-lived token for kubeconfig (k8s 1.24+)
apiVersion: v1
kind: Secret
metadata:
name: using-cash-deployer-token
namespace: kube-system
annotations:
kubernetes.io/service-account.name: using-cash-deployer
type: kubernetes.io/service-account-token