按 guest Agent 格式恢复 SPIRE 父身份
This commit is contained in:
@@ -49,5 +49,5 @@ def test_entry_binds_exact_pod_agent_and_runner_uid():
|
||||
pod_uid="pod-uid",
|
||||
spiffe_id="spiffe://ddupan.top/ci/org/repo/test",
|
||||
)
|
||||
assert entry["spec"]["parentID"].endswith("/sandbox-kata/pod-uid")
|
||||
assert entry["spec"]["parentID"].endswith("/sandbox-kata/pod/pod-uid")
|
||||
assert entry["spec"]["selectors"] == ["unix:uid:2000"]
|
||||
|
||||
Reference in New Issue
Block a user