Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Commit

Permalink
Added new style params to flanneld template
Browse files Browse the repository at this point in the history
The names of the params that pass into the flanneld have changed. This
change adds the new parameters and keeps the old ones as well as they do
not collide.
  • Loading branch information
ashcrow authored and mbarnes committed Jan 28, 2017
1 parent da1b24e commit cce65b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/commissaire_service/data/templates/flanneld
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{%- set OPTIONS="" %}

{%- if commissaire_etcd_server_url is defined %}
# Old style options
FLANNEL_ETCD="{{ commissaire_etcd_server_url }}"
FLANNEL_ETCD_KEY="{{ commissaire_flannel_key }}"
# New style options
FLANNEL_ETCD_ENDPOINTS="{{ commissaire_etcd_server_url }}"
FLANNEL_ETCD_PREFIX="{{ commissaire_flannel_key }}"
{%- elif commissaire_flanneld_server is defined %}
{#- commissaire_flanneld_server indicates a client/server model #}
{%- set OPTIONS=OPTIONS ~ "--remote=" ~ commissaire_flanneld_server ~ " " %}
Expand Down

0 comments on commit cce65b2

Please sign in to comment.