Skip to content

config: use authPath struct consistently#1765

Merged
rhatdan merged 2 commits intocontainers:mainfrom
cgwalters:add-system-path-prep
Dec 20, 2022
Merged

config: use authPath struct consistently#1765
rhatdan merged 2 commits intocontainers:mainfrom
cgwalters:add-system-path-prep

Conversation

@cgwalters
Copy link
Copy Markdown
Contributor

@cgwalters cgwalters commented Dec 15, 2022

config: use authPath struct consistently

Instead of packing and unpacking it into two variables in
various places. Prep for adding a third member of this struct
as part of #1746

Signed-off-by: Colin Walters walters@verbum.org


config: Make parsing function a method on authFile

Just a general cleanup.


Comment thread pkg/docker/config/config.go
Copy link
Copy Markdown
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

Thanks!

LGTM, just a few possible cleanups to ease future maintenance.

Comment thread pkg/docker/config/config.go Outdated
Comment thread pkg/docker/config/config.go Outdated
Comment thread pkg/docker/config/config.go Outdated
Comment thread pkg/docker/config/config_test.go Outdated
Comment thread pkg/docker/config/config.go
Copy link
Copy Markdown
Member

@TomSweeneyRedHat TomSweeneyRedHat left a comment

Choose a reason for hiding this comment

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

LGTM
once @mtrmac comments are addressed.

Instead of packing and unpacking it into two variables in
various places.  Prep for adding a third member of this struct
as part of containers#1746

Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters force-pushed the add-system-path-prep branch from 12a3809 to a0f60f6 Compare December 20, 2022 12:59
Just a general cleanup.

Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters force-pushed the add-system-path-prep branch from a0f60f6 to 7920ffb Compare December 20, 2022 13:00
@cgwalters
Copy link
Copy Markdown
Contributor Author

Thanks, addressed those comments, and also added a further cleanup commit.

@rhatdan rhatdan merged commit debf9d8 into containers:main Dec 20, 2022
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.

4 participants