Skip to content

test: verify openshell.ai/owner label propagation via ComputeDriver#14

Merged
pdettori merged 1 commit into
mvpfrom
test/owner-label-propagation
Jun 16, 2026
Merged

test: verify openshell.ai/owner label propagation via ComputeDriver#14
pdettori merged 1 commit into
mvpfrom
test/owner-label-propagation

Conversation

@pdettori

Copy link
Copy Markdown
Member

Summary

  • Adds unit tests confirming the openshell.ai/owner label propagates from gateway template labels through to both the Sandbox CR and pod template spec
  • Verifies driver's mergeMaps approach does not overwrite the owner label (since the driver's hardcoded label set does not include it)
  • Confirms owner and tenant labels coexist when Tenant config is set

Context

Part of per-user sandbox ownership (kagenti/kagenti#1976, Task B).

The gateway (v0.0.56-rc.2) stamps openshell.ai/owner = <identity.subject> onto sandbox create requests. This PR confirms the compute driver faithfully propagates that label without interference.

Test plan

  • go test ./internal/driver/ -run "TestOwnerLabel" -v — all 4 tests pass
  • Tests cover: CR labels, pod template labels, no-overwrite guarantee, tenant coexistence

Assisted-By: Claude Code

Adds unit tests confirming the ComputeDriver's mergeMaps approach
correctly propagates the gateway-stamped openshell.ai/owner label:

- Sandbox CR receives owner label from template labels
- Pod template spec receives owner label alongside driver labels
- Driver's hardcoded labels do not overwrite the owner label
- Owner and tenant labels coexist when Tenant config is set

Part of per-user sandbox ownership (kagenti/kagenti#1976, Task B).

Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Paolo Dettori <dettori@us.ibm.com>
@pdettori pdettori merged commit cafdc2c into mvp Jun 16, 2026
4 checks passed
@pdettori pdettori deleted the test/owner-label-propagation branch June 16, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant