mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
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:
parent
0a689af469
commit
5beae0c4dc
@ -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
|
||||
# - image-user(uid=1000)
|
||||
# - image-user belongs to group-defined-in-image(gid=50000)
|
||||
RUN adduser -u 1000 -D image-user && \
|
||||
addgroup -g 50000 group-defined-in-image && \
|
||||
addgroup image-user group-defined-in-image
|
||||
|
||||
ENTRYPOINT ["/agnhost"]
|
||||
CMD ["pause"]
|
||||
|
@ -1 +1 @@
|
||||
2.42
|
||||
2.43
|
||||
|
Loading…
Reference in New Issue
Block a user