Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] Move image to internal #5261

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

varshaprasad96
Copy link
Member

This PR is an effort towards reducing the public surface of APIs. It move image/ to internal/image

Signed-off-by: Varsha Prasad Narsing [email protected]
(cherry picked from commit 1f5890709fdc17de6f44f42b5138dd0f7e64bc74)

This PR is an effort towards reducing the public surface
of APIs. It move image/ to internal/image

Signed-off-by: Varsha Prasad Narsing <[email protected]>
(cherry picked from commit 1f5890709fdc17de6f44f42b5138dd0f7e64bc74)
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 9, 2023
@koba1t
Copy link
Member

koba1t commented Aug 17, 2023

/assign

@koba1t
Copy link
Member

koba1t commented Aug 23, 2023

@varshaprasad96

This PR looks almost good!

But I think it looks like imageTagUpdater struct is only called in the imagetag package, So Could we move this struct to an internal package?
If you have any other opinions, please tell me!

@varshaprasad96
Copy link
Member Author

@koba1t I was looking into it. imageTagUpdater is being used in Filter (

SetValue: imageTagUpdater{
) which is a public API - more as a helper. Since the imageTagUpdater is itself not exported, we need not worry about its public support. It can be used only inside filters pkg/ as we need it in future in case we want to expand. Which is why I'm hesitant on moving it away from imagetag pkg, to have all the related code in one place. What do you think?

@koba1t
Copy link
Member

koba1t commented Sep 13, 2023

imageTagUpdater is being used in Filter

Sorry, I couldn't find it.
I agree with your concerns and I think you don't have to move the imageTagUpdater struct.
Thanks for checking the details!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 13, 2023
@koba1t
Copy link
Member

koba1t commented Sep 13, 2023

/cc @annasong20 @natasha41575

@natasha41575
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: natasha41575, varshaprasad96

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 13, 2023
@k8s-ci-robot k8s-ci-robot merged commit 56d37ac into kubernetes-sigs:master Sep 13, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Development

Successfully merging this pull request may close these issues.

4 participants