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

feat(docker): migrate to kork-credentials #5593

Merged
merged 2 commits into from
Dec 14, 2021

Conversation

nemesis-cruz-ar
Copy link
Contributor

@nemesis-cruz-ar nemesis-cruz-ar commented Dec 8, 2021

Implementing kork-credentials for docker registry accounts similar to k8s, cloudfoundry, aws, and ecs accounts.
This is the implementation of https://github.com/spinnaker/governance/blob/master/rfc/account-management.md for docker registry provider.

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>
Copy link
Contributor

@german-muzquiz german-muzquiz left a comment

Choose a reason for hiding this comment

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

Thanks for adding kork credentials to docker provider! The changes look good, I only have minor comments.

I think the most important test is that for the same docker configuration, clouddriver behaves the same before and after this change, that is:

  • Given two docker accounts with cacheThreads: 2:
    • 4 docker agents should be created that run periodically (you can verify that those docker agents are running because every 30 seconds or so they should print logs like .d.r.p.a.DockerRegistryImageCachingAgent : Caching 7231 tagged images in {account}/DockerRegistryImageCachingAgent[1/2]
    • 2 credentials of type dockerRegistry should be returned from /credentials

@nemesis-cruz-ar
Copy link
Contributor Author

demo for 2 accounts and 2 cache threads per account and credentials endpoint
multiple_accounts

demo for deploying to cloudfoundry using a docker registry account
deploy2CF

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>
Copy link
Contributor

@german-muzquiz german-muzquiz left a comment

Choose a reason for hiding this comment

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

Nice demo videos!

@german-muzquiz german-muzquiz added the ready to merge Approved and ready for a merge label Dec 14, 2021
@mergify mergify bot merged commit 3f32ee6 into spinnaker:master Dec 14, 2021
@mergify mergify bot added the auto merged Merged automatically by a bot label Dec 14, 2021
@german-muzquiz german-muzquiz deleted the feat/docker-kork-credentials branch December 14, 2021 16:02
kirangodishala pushed a commit to OpsMx/clouddriver that referenced this pull request Sep 26, 2022
* feat(docker): migrate to kork-credentials

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>

* feat(docker): addressing pull request comments

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>
yugaa22 pushed a commit to OpsMx/clouddriver that referenced this pull request May 31, 2023
* feat(docker): migrate to kork-credentials

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>

* feat(docker): addressing pull request comments

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>
yugaa22 pushed a commit to OpsMx/clouddriver that referenced this pull request May 31, 2023
* feat(docker): migrate to kork-credentials

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>

* feat(docker): addressing pull request comments

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>
yugaa22 pushed a commit to OpsMx/clouddriver that referenced this pull request Sep 6, 2023
* feat(docker): migrate to kork-credentials

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>

* feat(docker): addressing pull request comments

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>
opsmxuser pushed a commit to OpsMx/clouddriver that referenced this pull request Sep 6, 2023
* feat(docker): migrate to kork-credentials

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>

* feat(docker): addressing pull request comments

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>

Co-authored-by: Sergio Quintero <sergio.quintero@armory.io>
Co-authored-by: Nemesis Osorio <nemesis211_6@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for a merge target-release/1.28
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants