-
Notifications
You must be signed in to change notification settings - Fork 1.4k
⚠️ clusterctlv2: add file system backend implementations for provider's repository #1963
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
⚠️ clusterctlv2: add file system backend implementations for provider's repository #1963
Conversation
Welcome @Arvinderpal! |
Hi @Arvinderpal. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@Arvinderpal thanks for this PR! |
@Arvinderpal, as anticipated #1978 implements the change of the Repository interface. |
/ok-to-test |
@fabriziopandini is this needed for v0.3.0? I'm trying to wrangle PRs-vs-milestones and want to make sure I put it in the right place. Thanks! |
This needs to incorporate the recent change to the Repository interface, which I think is pretty straightforward and I can do that asap. However, the PR still needs a code review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Arvinderpal
The PR is definitely on the right track, pending the change on the interface.
It would be also great if we can simplify the URL syntax and make it more flexible and at the same time more consistent with other clusterctl features.
I also added some nits on test messages for consistency with the rest of the codebase
@ncdc It would be great to get this into the milestone so we can provide a more articulated solution for the air-gapped scenario
cmd/clusterctl/pkg/client/repository/repository_local_unix_test.go
Outdated
Show resolved
Hide resolved
cmd/clusterctl/pkg/client/repository/repository_local_unix_test.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fabriziopandini Thanks for the feedback. I have incorporated all the suggested changes. Please do another pass.
cmd/clusterctl/pkg/client/repository/repository_local_unix_test.go
Outdated
Show resolved
Hide resolved
cmd/clusterctl/pkg/client/repository/repository_local_unix_test.go
Outdated
Show resolved
Hide resolved
39b7f93
to
ae46ed3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Arvinderpal thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fabriziopandini Addressed all your comments. Please have another look. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Arvinderpal thanks
One last mini nit from my side + some CI checks error to be fixed
/hold cancel
@ncdc @vincepri this PR add an important piece for the air-gapped support in clusterctl. PTAL
cmd/clusterctl/pkg/client/repository/repository_local_unix_test.go
Outdated
Show resolved
Hide resolved
5bcd109
to
71ed84b
Compare
BTW, |
The master branch doesn't have this problem (consistent failures). Please try rebasing to see if that fixes your issue. I think your controller-runtime PR is 👍, but our tests should be passing, and if they're consistently failing with this PR, then it's likely localized to your branch. |
cmd/clusterctl/pkg/client/repository/repository_local_unix_test.go
Outdated
Show resolved
Hide resolved
cmd/clusterctl/pkg/client/repository/repository_local_unix_test.go
Outdated
Show resolved
Hide resolved
cmd/clusterctl/pkg/client/repository/repository_local_unix_test.go
Outdated
Show resolved
Hide resolved
FYI the commits shouldn't include references to issues or usernames |
The test failures were because you were deleting /tmp and not the tempdir you just created. My latest review comments should resolve the issues. |
71ed84b
to
bd75f0f
Compare
@ncdc Hmm...I really don't see where I'm deleting all of /tmp. Can you tell me exactly where you saw this? I see that /tmp is just fine when I run my tests locally and only the tmpDir is removed. |
You were deleting filepath.Dir(tmpDir). That resolves to /tmp |
bd75f0f
to
a114a97
Compare
Squashed all the commits into one and removed username reference from message. If there are no final concerns, please go ahead and merge this. |
cmd/clusterctl/pkg/client/repository/repository_local_unix_test.go
Outdated
Show resolved
Hide resolved
a114a97
to
b5b9f79
Compare
/approve @fabriziopandini over to you for lgtm when you're ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Arvinderpal thanks!
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Arvinderpal, fabriziopandini, ncdc 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 |
What this PR does / why we need it:
This PR adds a file system backend implementations for provider's repository.
Which issue(s) this PR fixes
Rif #1729
/assign @fabriziopandini
/cc @detiber @ncdc @vincepri @jiatongw