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

Move credentials after build dependencies, controlled by calibanconfig #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sritchie
Copy link
Collaborator

Dependencies are much more expensive to change than credentials. This PR moves the credential injection after dependency fetching.

This is a decent idea, I think, BUT it has a problem. If you have private dependencies in a google Source Cloud Repository, you need the credentials to come before the pip install so that git can use gcloud for authentication.

@ajslone , I'm going to vote that we:

  • make this change here, but only after
  • we add a setting in .calibanconfig.json that allows you to move this earlier if you need it there.

I am a little worried at configuration options starting to increase. What do you think?

Change-Id: Ic514cf705942e98eadb63caca626a2df5e5fd2fb
@sritchie sritchie requested a review from ajslone June 16, 2020 22:08
@codecov
Copy link

codecov bot commented Jun 16, 2020

Codecov Report

Merging #10 into master will decrease coverage by 0.09%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
- Coverage   43.73%   43.64%   -0.10%     
==========================================
  Files          20       20              
  Lines        3114     3114              
==========================================
- Hits         1362     1359       -3     
- Misses       1752     1755       +3     
Impacted Files Coverage Δ
caliban/docker.py 25.32% <0.00%> (ø)
caliban/gke/utils.py 73.38% <0.00%> (-1.15%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4fbfe5f...dfe6948. Read the comment docs.

Copy link
Collaborator

@ajslone ajslone left a comment

Choose a reason for hiding this comment

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

This seems like the right thing to do, but I hear your concerns over over-configurability and its impact on usability. I'd say that as long as there are rational defaults, and there is some way to keep a persistent configuration then this should be ok.

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.

None yet

2 participants