Skip to content

add support to override UID for container#2017

Merged
jjbustamante merged 3 commits intobuildpacks:mainfrom
Parthiba-Hazra:override
Jan 19, 2024
Merged

add support to override UID for container#2017
jjbustamante merged 3 commits intobuildpacks:mainfrom
Parthiba-Hazra:override

Conversation

@Parthiba-Hazra
Copy link
Copy Markdown
Contributor

Here in the pr I simply add a flag --uid to override uid for container and keep the implementation same as gid, as a new contributor to buildpack project I might be missing some points .. A swift review or guidance would greatly assist me in diving into this project.

Resolves #1347

Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>
@Parthiba-Hazra Parthiba-Hazra requested review from a team as code owners December 28, 2023 17:16
@github-actions github-actions Bot added this to the 0.33.0 milestone Dec 28, 2023
@github-actions github-actions Bot added the type/enhancement Issue that requests a new feature or improvement. label Dec 28, 2023
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 28, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (60922df) 79.50% compared to head (a230a9a) 79.49%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2017      +/-   ##
==========================================
- Coverage   79.50%   79.49%   -0.01%     
==========================================
  Files         175      175              
  Lines       13114    13135      +21     
==========================================
+ Hits        10425    10440      +15     
- Misses       2022     2026       +4     
- Partials      667      669       +2     
Flag Coverage Δ
os_linux 78.41% <71.43%> (-0.01%) ⬇️
os_macos 76.23% <71.43%> (-<0.01%) ⬇️
os_windows 78.87% <71.43%> (-0.01%) ⬇️
unit 79.49% <71.43%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@natalieparellano
Copy link
Copy Markdown
Member

@Parthiba-Hazra - thanks a lot for this. Is it possible to add a test in lifecycle_execution_test.go? If you search for override GID you will find the ones for the group ID.

Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>
@github-actions github-actions Bot added the type/chore Issue that requests non-user facing changes. label Jan 9, 2024
@github-actions github-actions Bot removed the type/chore Issue that requests non-user facing changes. label Jan 19, 2024
Copy link
Copy Markdown
Member

@jjbustamante jjbustamante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Parthiba-Hazra great work! thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/enhancement Issue that requests a new feature or improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Override UID for container

3 participants