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

feat: pull and push from oci registry #483

Merged
merged 16 commits into from
Mar 27, 2024
Merged

Conversation

RipulHandoo
Copy link
Contributor

Description

This PR fixes #

  1. Adds feature to pull image's from public OCI registries.

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Ripul Handoo <ripulhandoo1234@gmail.com>
Copy link

welcome bot commented Mar 18, 2024

Yay, your first pull request! 👍 A contributor will be by to give feedback soon. In the meantime, please review the Layer5 Community Welcome Guide and sure to join the community Slack.
Be sure to double-check that you have signed your commits. Here are instructions for making signing an implicit activity while peforming a commit.

@RipulHandoo RipulHandoo requested a review from MUzairS15 March 18, 2024 16:26

_ , err = oras.Copy(ctx, repo, imageTag, fs, imageTag, oras.DefaultCopyOptions)
if err != nil {
return ErrGettingImage(err)
Copy link
Member

Choose a reason for hiding this comment

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

The suggested remediation and probable cause for this error code are pretty terribly written.

func ErrGettingImage(err error) error {

Signed-off-by: Ripul Handoo <ripulhandoo1234@gmail.com>
Signed-off-by: Ripul Handoo <ripulhandoo1234@gmail.com>
@RipulHandoo RipulHandoo requested a review from MUzairS15 March 20, 2024 06:02
Signed-off-by: Ripul Handoo <ripulhandoo1234@gmail.com>
Signed-off-by: Ripul Handoo <ripulhandoo1234@gmail.com>
@RipulHandoo RipulHandoo force-pushed the RipulHandoo/pushAndPull branch from 7b6b3f3 to 786029e Compare March 21, 2024 10:36
Copy link

@MUzairS15 MUzairS15 left a comment

Choose a reason for hiding this comment

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

Except for the description of the errors, the rest LGTM.

Signed-off-by: Ripul Handoo <ripulhandoo1234@gmail.com>
Signed-off-by: Ripul Handoo <ripulhandoo1234@gmail.com>
@RipulHandoo RipulHandoo force-pushed the RipulHandoo/pushAndPull branch from 8b38d71 to 78259d6 Compare March 23, 2024 18:28
@leecalcote
Copy link
Member

Lint checks failing, @RipulHandoo. Please fix.

Signed-off-by: Ripul Handoo <ripulhandoo1234@gmail.com>
@RipulHandoo RipulHandoo force-pushed the RipulHandoo/pushAndPull branch from 463b931 to dd397e7 Compare March 24, 2024 05:06
Signed-off-by: Ripul Handoo <ripulhandoo1234@gmail.com>
Signed-off-by: Ripul Handoo <ripulhandoo1234@gmail.com>
@RipulHandoo
Copy link
Contributor Author

Lint checks are failing, @RipulHandoo. Please fix.

I believe there might be an issue with the lint check. I addressed the previous error related to the err variable shadowing, but it's still failing. This seems to be the case for other PRs in the repository as well.

@leecalcote
Copy link
Member

leecalcote commented Mar 27, 2024

@RipulHandoo, you're saying the the lint check test is invalid? That the tool doesn't work?

Or that it's configuration is out of date - - which might be the case.

Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
@leecalcote
Copy link
Member

@RipulHandoo this might help - #486

…lint

[Chore] Workflow action update for golangci-lint to 4.0
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
Mohd Uzair added 3 commits March 27, 2024 13:46
Signed-off-by: MUzairS15 <muzair.shaikh810@gmail.com>
Signed-off-by: MUzairS15 <muzair.shaikh810@gmail.com>
@MUzairS15
Copy link

@RipulHandoo Be sure to run gofmt, I have pushed the commit, but make sure to do it yourself.

@MUzairS15 MUzairS15 merged commit e96d72e into master Mar 27, 2024
4 checks passed
@MUzairS15 MUzairS15 deleted the RipulHandoo/pushAndPull branch March 27, 2024 08:37
Copy link

welcome bot commented Mar 27, 2024

Thanks for your contribution to Meshery! 🎉

Shows a black logo in light color mode and a white one in dark color mode.

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.

3 participants