feat: implement pod-specific secret injection for DaemonSets with automated lifecycle management

This commit is contained in:
Pengzhan Hao
2026-01-21 07:00:48 +00:00
commit cffe13168f
15 changed files with 973 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: inject-ds-webhook
namespace: gps-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: inject-ds-webhook-role
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: [""]
resources: ["secrets"]
verbs: ["create", "delete", "get", "list", "patch", "update"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: inject-ds-webhook-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: inject-ds-webhook-role
subjects:
- kind: ServiceAccount
name: inject-ds-webhook
namespace: gps-system
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: test-ds-sa
namespace: gps-system