[SMG] Expand K8s integration tests: cross-namespace, lifecycle, multi-model (#24375)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Kangyan-Zhou
2026-05-13 20:08:09 -07:00
committed by GitHub
co-authored by Claude Opus 4.7
parent e8d57e7243
commit 8b9ff4a68c
7 changed files with 1364 additions and 0 deletions
@@ -0,0 +1,30 @@
# Cluster-wide RBAC for the multi-namespace discovery test.
# Distinct ServiceAccount/ClusterRole names so it does not collide with the
# namespace-scoped Role in rbac.yaml that the default gateway uses.
apiVersion: v1
kind: ServiceAccount
metadata:
name: smg-gateway-cluster
namespace: smg-test
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: smg-gateway-cluster
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: smg-gateway-cluster
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: smg-gateway-cluster
subjects:
- kind: ServiceAccount
name: smg-gateway-cluster
namespace: smg-test