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:
Kubernetes Prow Robot 2022-11-02 03:58:47 -07:00 committed by GitHub
commit 548d135ea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -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"]

View File

@ -1 +1 @@
2.42
2.43