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

[bug] fix git safe dir error #807

Merged
merged 1 commit into from
Apr 18, 2022
Merged

Conversation

Congrool
Copy link
Member

Signed-off-by: Congrool [email protected]

What type of PR is this?

/kind bug

What this PR does / why we need it:

Refer to actions/checkout#760, concept of safe directory was instroduced to git in https://github.blog/2022-04-12-git-security-vulnerability-announced/

Currently e2e-test in github actions fails for it:

+++ git rev-parse HEAD
fatal: unsafe repository ('/opt/src' is owned by someone else)
To add an exception for this directory, call:

	git config --global --add safe.directory /opt/src

As its output advise, add an exception for dir /opt/src before calling git rev-parese HEAD.

It seems that other repo under openyurtio also encountered the same problem, like openyurtio/raven-controller-manager#10

Special notes for your reviewer:

Does this PR introduce a user-facing change?


other Note

@openyurt-bot
Copy link
Collaborator

@Congrool: GitHub didn't allow me to assign the following users: your_reviewer.

Note that only openyurtio members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

Signed-off-by: Congrool [email protected]

What type of PR is this?

/kind bug

What this PR does / why we need it:

Refer to actions/checkout#760, concept of safe directory was instroduced to git in https://github.blog/2022-04-12-git-security-vulnerability-announced/

Currently e2e-test in github actions fails for it:

+++ git rev-parse HEAD
fatal: unsafe repository ('/opt/src' is owned by someone else)
To add an exception for this directory, call:

  git config --global --add safe.directory /opt/src

As its output advise, add an exception for dir /opt/src before calling git rev-parese HEAD.

It seems that other repo under openyurtio also encountered the same problem, like openyurtio/raven-controller-manager#10

Special notes for your reviewer:

Does this PR introduce a user-facing change?


other Note

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.

@openyurt-bot openyurt-bot added the kind/bug kind/bug label Apr 17, 2022
@openyurt-bot openyurt-bot requested review from Fei-Guo and kadisi April 17, 2022 14:40
@openyurt-bot openyurt-bot added the size/S size/S 10-29 label Apr 17, 2022
Signed-off-by: Congrool <[email protected]>
@openyurt-bot openyurt-bot added the approved approved label Apr 18, 2022
@rambohe-ch
Copy link
Member

/lgtm
/approve

@openyurt-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Congrool, rambohe-ch

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

@openyurt-bot openyurt-bot merged commit 12028e8 into openyurtio:master Apr 18, 2022
JameKeal pushed a commit to JameKeal/openyurt that referenced this pull request May 16, 2022
openyurt-bot pushed a commit that referenced this pull request May 16, 2022
* add yurt-app-manager yurtappdaemon/yurtingress deploy and revert

* Revert "add yurt-app-manager yurtappdaemon/yurtingress deploy and revert"

This reverts commit ba28364.

* fix git safe dir error (#807)

Signed-off-by: Congrool <[email protected]>

* 【Optimize】unified image pull policy (#805)

* add yurt-app-manager yurtappdaemon/yurtingress deploy and revert

* Revert "add yurt-app-manager yurtappdaemon/yurtingress deploy and revert"

This reverts commit ba28364.

* unified image pull policy

* 【Optimize】optimize kubernetes util function (#808)

* add yurt-app-manager yurtappdaemon/yurtingress deploy and revert

* Revert "add yurt-app-manager yurtappdaemon/yurtingress deploy and revert"

This reverts commit ba28364.

* optimize kubernetes util func

* 【FIX】fix cloud node was heterogeneous (#806)

* add yurt-app-manager yurtappdaemon/yurtingress deploy and revert

* Revert "add yurt-app-manager yurtappdaemon/yurtingress deploy and revert"

This reverts commit ba28364.

* fix bug: when cloud node was heterogeneous, this parameter will be error

* cleanup: io/ioutil (#813)

Signed-off-by: cndoit18 <[email protected]>

* use constants instead the string (#814)

* ingress: update edge ingress proposal to add enhancement (#816)

* finish ut of sa token replacement (#787)

* finish ut of sa token replacement
add tenant sa token subsitute

* add tenant sa token subsitute

* add enable-node-pool parameter for yurthub in order to disable nodepools list/watch in filters when testing. (#822)

* Remove convert and revert command (#826)

Signed-off-by: lonelyCZ <[email protected]>

* uniform processCreateErr func to deal the resource create

Co-authored-by: Yifei Zhang <[email protected]>
Co-authored-by: cndoit18 <[email protected]>
Co-authored-by: pengbinbin1 <[email protected]>
Co-authored-by: zzguang <[email protected]>
Co-authored-by: MrGirl <[email protected]>
Co-authored-by: rambohe <[email protected]>
Co-authored-by: Zhe Cheng <[email protected]>
JameKeal pushed a commit to JameKeal/openyurt that referenced this pull request May 16, 2022
JameKeal pushed a commit to JameKeal/openyurt that referenced this pull request May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved approved kind/bug kind/bug lgtm lgtm size/S size/S 10-29
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants