Skip to content

fix(k8s): use UID 1001 to align with upstream#28

Merged
genisd merged 2 commits intogynzyfrom
chore/align-uid-1001-with-upstream
Apr 21, 2026
Merged

fix(k8s): use UID 1001 to align with upstream#28
genisd merged 2 commits intogynzyfrom
chore/align-uid-1001-with-upstream

Conversation

@genisd
Copy link
Copy Markdown
Member

@genisd genisd commented Apr 21, 2026

Summary

  • Aligns gynzy branch with upstream's UID 1001 change for the agent user
  • Ubuntu 24.04 ships with a built-in ubuntu user at UID 1000, so upstream moved to 1001 to avoid needing userdel
  • Reduces diff noise for future merges

Changes

  • images/base.Dockerfile: agent user now UID/GID 1001 (removes userdel ubuntu workaround)
  • k8s-workload-service.ts: pod securityContext uses 1001 for fsGroup/runAsUser/runAsGroup
  • k8s-workload-service.ts: initContainer chown uses 1001:1001

Test plan

  • Rebuild agent images: ./images/build.sh
  • Deploy to local cluster and verify agent pods start correctly
  • Verify PVC mounts are writable by agent user

genisd and others added 2 commits April 21, 2026 14:24
Ubuntu 24.04 ships with a built-in 'ubuntu' user at UID 1000. Upstream
moved to UID 1001 to avoid needing to delete this user. Aligning our
branch with this change simplifies future merges.

Changes:
- Dockerfile: agent user now UID/GID 1001 (no userdel needed)
- k8s-workload-service: pod securityContext uses 1001
- initContainer chown uses 1001:1001
@genisd genisd merged commit 756c080 into gynzy Apr 21, 2026
15 checks passed
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.

2 participants