-
Notifications
You must be signed in to change notification settings - Fork 1
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
Support --credentials
#7
Conversation
@@ -115,6 +120,37 @@ async def set_deployment_id(self, storage_id: UUID, deployment_id: UUID): | |||
json={"deployment_id": str(deployment_id)}, | |||
) | |||
|
|||
async def create_credentials_secret(self, name: str, credentials: str): | |||
try: |
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.
I probably am going to see if I can make a single endpoint that just works this way, there is some the back and forth here is noticeable. In the worst case scenario it's 4 extra calls because you've never add credentials for this repo.
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.
Nice, looks good.
Support a
--credentials
option on deployment. This will create a secret block if one does not exist using the repo's name and owner. If one does it exists, it will update it with the newly passed credentials.Example Usage:
This doesn't AUTOMAGICALLY use credentials for that repo if it exists and you don't provide them. That's a future story.
CLOSES ENG-1232