-
Notifications
You must be signed in to change notification settings - Fork 329
Server install: Nomad service discovery #3500
Conversation
0975d23
to
cc407d1
Compare
cc407d1
to
3b7ed16
Compare
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.
Haven't tried the full install path for these yet, but I have a few minor code comments! Changes make sense to me otherwise 👍🏻
43444e2
to
9829fb8
Compare
3b7ed16
to
f158d5d
Compare
3fbc16c
to
5ca33df
Compare
0a3218a
to
410f082
Compare
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.
🔍 Looks good to me code wise 👍🏻
@@ -286,19 +255,18 @@ func (i *NomadInstaller) Install( | |||
s.Update("Waypoint server ready") | |||
s.Done() | |||
|
|||
if i.config.consulService { | |||
s = sg.Add("The CLI has been configured to automatically install a Consul service for\n" + | |||
if i.config.serviceProvider == "consul" && i.config.consulService { |
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.
I recall from a code review meeting that this was supposed to be an "or" instead of an "and"?
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.
@xiaolin-ninja since the default values are "consul" and true
for serviceProvider
and consulService
, respectively, we want this to be "and" because if the user sets something other than "consul" for serviceProvider
, or sets consulService
to false, we then do not want to create the job with a Consul service.
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.
Please do not merge this until a patch for #3601 is merged and released
You might need to rebase off |
…onsul as a service provider.
…nfo on Nomad install.
…e old and new flags to configure service discovery.
…installs and upgrades.
… and prefer Consul tag flags for backwards compatibility.
This prompt is added so that a user doesn't inadvertently remove service discovery from their Waypoint installation.
dcf17fc
to
888d138
Compare
@briancain so rebased! 😄 |
This PR updates the server installation for Nomad to support service discovery for Nomad or Consul by specifying the service discovery provider as a flag for the
waypoint install
command.Closes #3376.
NOTE: The old config,
-nomad-consul-service
, is still supported with this PR update, but it should be phased out eventually. The new-nomad-service-provider
config supports pre- and post-1.3.0 Waypoint installs to Nomad.