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

Force volumes to unique nodes for production environments #162

Merged
merged 3 commits into from
Jun 8, 2018

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.

2 participants