-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
chore: temporary dirs are created under PWD #5824
base: master
Are you sure you want to change the base?
Conversation
|
Welcome @david-barbion! |
Hi @david-barbion. 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-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: david-barbion The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Git can be configured per directory using the includeIf statement in ~/.gitconfig. This allows per-customer (if you have many clients for whom you work) ssh key. Up to now, kustomize builds its yaml in /tmp/kustomize- prefixed directory. Per say, no .gitconfig on that directory. This patch instructs kustomize to use $PWD/kustomize- prefixed directory.
a83988e
to
2c1fd98
Compare
/assign @koba1t |
In my understanding, a function of remote manifests pull with Could you please elaborate on what this PR is trying to solve? BTW, This change would be difficult to merge as is because it would be breaking change the existing user's environment. |
Hi @koba1t , Actually, I have to manage many git identities (one for each customer for whom I work). That means: a different git ssh key, email, ... To achieve this, I use the includeIf statement that permits to set a different ssh key, different email per directory:
and here the file
The way kustomize clones a git is done in a /tmp (or /private location for MacOs). See the last includeIf in the first code block. I have to switch the path depending where I'm currently working. This PR is mainly for my convenience and totally understand if it could be not be accepted as is. Maybe by adding a command line flag which indicates where to set temp dir. During my investigation, I stumbled upon TMPDIR which os.MkdirTemp() uses to set the root temp dir. But that needs to set an envvar... |
Git can be configured per directory using the includeIf statement in ~/.gitconfig. This allows per-customer (if you have many clients for whom you work) ssh key.
Up to now, kustomize builds its yaml in /tmp/kustomize- prefixed directory. Per say, no .gitconfig on that directory.
This patch instructs kustomize to use $PWD/kustomize- prefixed directory.