Skip to content

Conversation

@ironcladlou
Copy link
Contributor

Use custom narrowly scoped interfaces for client access from the
RollingUpdater and Resizer. This allows for more flexible downstream
integration and unit testing without imposing a burden to implement
the entire client.Interface for just a handful of methods.

Use custom narrowly scoped interfaces for client access from the
RollingUpdater and Resizer. This allows for more flexible downstream
integration and unit testing without imposing a burden to implement
the entire client.Interface for just a handful of methods.
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

Copy link
Member

Choose a reason for hiding this comment

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

FTR I think this is a pattern we should apply more.

Edit: specifically defining local-ish interfaces that implement JUST what we need in the local module.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed, let's drop the hammer on anyone who even looks at *client.Client funny

Copy link
Contributor

Choose a reason for hiding this comment

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

🔨

@ironcladlou
Copy link
Contributor Author

@thockin @pmorie @smarterclayton

bd7b719 introduces some constructors which allow us to keep the real* types package private. A definite improvement, IMO.

@thockin
Copy link
Member

thockin commented Apr 16, 2015

I see how it works. You drive-by some comments and BAM, you get assigned the code review. That'll teach me.

LGTM

thockin added a commit that referenced this pull request Apr 16, 2015
Use narrowly scoped interfaces for client access
@thockin thockin merged commit 5e30997 into kubernetes:master Apr 16, 2015
@smarterclayton
Copy link
Contributor

You must be new here.

On Apr 15, 2015, at 8:01 PM, Tim Hockin [email protected] wrote:

I see how it works. You drive-by some comments and BAM, you get assigned the code review. That'll teach me.

LGTM


Reply to this email directly or view it on GitHub.

This was referenced Apr 16, 2015
@ironcladlou ironcladlou deleted the rolling-update-refactor branch April 27, 2015 13:10
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.

5 participants