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

added etcdctl options to resource #3

Merged
merged 2 commits into from
Sep 1, 2016

Conversation

willejs
Copy link
Contributor

@willejs willejs commented Jul 21, 2016

I have added an option to add additional options to the etcdctl command when configuring flannel.

@willejs
Copy link
Contributor Author

willejs commented Jul 24, 2016

@aespinosa can you review please?

@aespinosa
Copy link
Owner

can you add unit tests like the ones in https://github.com/aespinosa/cookbook-flannel/tree/master/test/unit?

def etcdctl_command
"#{etcdctl_bin} set #{etcd_prefix} '#{configuration.to_json}'"
"#{etcdctl_bin}#{etcdctl_opts} set #{etcd_prefix} '#{configuration.to_json}'"
Copy link
Owner

Choose a reason for hiding this comment

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

does having two spaces when etcdctl_options is nil break the configuration? can lines 81-88 be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@aespinosa It probably wont break it, if you prefer that i could do it, i thought this was more elegant, but really its just more code?

Copy link
Owner

Choose a reason for hiding this comment

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

yes please. i prefer less code for now.

@aespinosa aespinosa merged commit 85a3c3c into aespinosa:master Sep 1, 2016
@aespinosa
Copy link
Owner

Added tests and addressed my comments

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