Skip to content

Conversation

amisevsk
Copy link
Collaborator

@amisevsk amisevsk commented Jun 2, 2023

What does this PR do?

Cherry-pick changes from #1115 to 0.21.x branch

What issues does this PR fix or reference?

#1114 in 0.21.x

Is it tested? How?

See original PR discussion.

PR Checklist

  • E2E tests pass (when PR is ready, comment /test v8-devworkspace-operator-e2e, v8-che-happy-path to trigger)
    • v8-devworkspace-operator-e2e: DevWorkspace e2e test
    • v8-che-happy-path: Happy path for verification integration with Che

To avoid issues with self-signed certificates on git repositories, avoid
use of go-git (which would require configuring additional CA bundles)
and instead delegate to the git binary, which respects additional
bundles automatically.

The main cause for failure is go-git attempting to list references in a
remote, which can fail due to untrusted certificates. Instead, we rely
on the git binary to determine if a checkoutFrom.revision is a
local/remote branch, tag, or hash.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
(cherry picked from commit d3897be)
@amisevsk amisevsk requested a review from ibuziuk as a code owner June 2, 2023 15:21
@openshift-ci
Copy link

openshift-ci bot commented Jun 2, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: amisevsk

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

@amisevsk amisevsk merged commit 1bfcb6c into devfile:0.21.x Jun 2, 2023
@openshift-ci openshift-ci bot added the approved label Jun 2, 2023
@amisevsk amisevsk deleted the cherry-pick-1115 branch June 2, 2023 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant