mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
Merge pull request #113185 from everpeace/update-agnhost-e2e-image-for-supplementalgroups
test/images/agnhost: Adds a test user and group in the image for a E2E test case of SupplementalGroups with pre-defined group in the image
This commit is contained in:
commit
548d135ea6
@ -55,5 +55,13 @@ ADD agnhost agnhost
|
||||
# entrypoint is used by the containers.
|
||||
RUN ln -s agnhost agnhost-2
|
||||
|
||||
# this user and group is used in a E2E test case of
|
||||
# SupplementalGroups with pre-defined group in the image
|
||||
# - user-defined-in-image(uid=1000)
|
||||
# - user-defined-in-image belongs to group-defined-in-image(gid=50000)
|
||||
RUN adduser -u 1000 -D user-defined-in-image && \
|
||||
addgroup -g 50000 group-defined-in-image && \
|
||||
addgroup user-defined-in-image group-defined-in-image
|
||||
|
||||
ENTRYPOINT ["/agnhost"]
|
||||
CMD ["pause"]
|
||||
|
@ -1 +1 @@
|
||||
2.42
|
||||
2.43
|
||||
|
Loading…
Reference in New Issue
Block a user