Skip to content

Conversation

@ewoutp
Copy link
Contributor

@ewoutp ewoutp commented Jun 7, 2018

This PR ensures that PersistentVolume's are created such that PVC's for the same deployment name & role are never created on the same node (in case of production environment)

@ewoutp ewoutp self-assigned this Jun 7, 2018
// createNodeClientMap creates a map from node name to API.
// Clients that do not respond properly on a GetNodeInfo request are
// ignored.
func createNodeClientMap(ctx context.Context, clients []provisioner.API) map[string]provisioner.API {

Choose a reason for hiding this comment

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

should I be harassing you about these functions being nicely isolated and yet have no unit tests to demonstrate they work?

Copy link
Contributor Author

@ewoutp ewoutp Jun 8, 2018

Choose a reason for hiding this comment

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

Yes .... will need to make some mocks to do so.
Will do so in a separate PR

@ewoutp ewoutp merged commit c68289f into master Jun 8, 2018
@ewoutp ewoutp deleted the bugfix/enforce-anti-affinity branch June 8, 2018 05:24
@ewoutp ewoutp removed the 4 - Review label Jun 8, 2018
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.

3 participants