-
Notifications
You must be signed in to change notification settings - Fork 33
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor tweak suggestions
templates/k8s/cakeshop.yaml.erb
Outdated
cp /etc/cakeshop/cakeshop-nodes.json /cakeshop/cakeshop-nodes.json; | ||
<%- @nodes.each do |node| -%> | ||
<%= set_node_template_vars(node) -%> | ||
sed -i \"s/<%= @Service_Prefix %>_SERVICE_HOST/$<%= @Service_Prefix %>_SERVICE_HOST/g\" /cakeshop/cakeshop-nodes.json; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor tweak:
Moving <%= set_node_template_vars(node) -%>
next to <%- @nodes.each do |node| -%>
will make the output in out/07-cakeshop.yaml
line up.
<%- @nodes.each do |node| -%><%= set_node_template_vars(node) -%>
sed -i \"s/<%= @Service_Prefix -%>_SERVICE_HOST/$<%= @Service_Prefix -%>_SERVICE_HOST/g\" /cakeshop/cakeshop-nodes.json;
<%- end -%>
@@ -0,0 +1,20 @@ | |||
<%- | |||
def set_node_template_vars(values) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can delete the function definition set_node_template_vars(values)
here and add @Service_Prefix
to qubernetes
https://github.com/ConsenSys/qubernetes/blob/master/qubernetes#L22
templates/k8s/cakeshop.yaml.erb
Outdated
@@ -1,3 +1,11 @@ | |||
<%- | |||
def set_node_template_vars(values) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can delete the function definition set_node_template_vars(values)
here and add @Service_Prefix
to qubernetes
https://github.com/ConsenSys/qubernetes/blob/master/qubernetes#L22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
-create cakeshop initial nodes file so running nodes are already added to cakeshop