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

Add registry type and url to worker payload for ECR dispatching #3967

Merged
merged 1 commit into from Nov 17, 2017

Conversation

elliott-davis
Copy link
Contributor

@elliott-davis elliott-davis commented Oct 31, 2017

tenor-90448144

Closes: #3743

Signed-off-by: Travis Elliott Davis edavis@chef.io

@thesentinels
Copy link
Contributor

Thanks for the pull request! Here is what will happen next:

  1. Your PR will be reviewed by the maintainers
  2. If everything looks good, one of them will approve it, and your PR will be merged.

Thank you for contributing!

@elliott-davis
Copy link
Contributor Author

I have no way of testing this locally until we get the workers fixed up in local dev

};
let custom_tag = get_optional_args(&opts, String::from("custom_tag"));
let registry_url = get_optional_args(&creds, String::from("registry_url"));
let registry_type = get_optional_args(&opts, String::from("integration"));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if this needs to come from opts or creds. You're welcome future me.

let is_string = format!("{} value is a string", arg);
match opts.get(arg) {
Some(key) => {
let key = key.as_str().expect(&is_string);
Copy link
Contributor

Choose a reason for hiding this comment

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

You might want to return a Result<Option<String>> here if there's a possibility that the given value isn't a string; calling expect will panic.

Alternatively, you might log the error and just return None here.

Enable ECR exports in the UI

Signed-off-by: Travis Elliott Davis <edavis@chef.io>
@chefsalim
Copy link
Contributor

tenor-156882762

@elliott-davis
Copy link
Contributor Author

@thesentinels approve

@thesentinels
Copy link
Contributor

🤘 I am testing your branch against master before merging it. We do this to ensure that the master branch is never failing tests.

@thesentinels
Copy link
Contributor

:neckbeard: Travis CI has started testing this PR.

@thesentinels
Copy link
Contributor

💖 Travis CI reports this PR passed.

It always makes me feel nice when humans approve of one anothers work. I'm merging this PR now.

I just want you and the contributor to answer me one question:

gif-keyboard-3280869874741411265

@thesentinels thesentinels merged commit 75089e9 into master Nov 17, 2017
@thesentinels thesentinels deleted the elliott/ecr_worker branch November 17, 2017 17:50
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

4 participants