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

Commit da9abf2

Browse files
committed
Check for service IPs on masters only.
1 parent aad45a5 commit da9abf2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/root.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ func runChecks(cmd *cobra.Command, args []string) {
144144
Events: make([]EventData, 0),
145145
}
146146

147-
if len(viper.GetString("etcd.ips")) == 0 || len(viper.GetString("registry.ip")) == 0 || len(viper.GetString("router.ips")) == 0 {
148-
log.Fatal("Can't read service IPs from configuration file.")
147+
if viper.GetString("node.type") == "master" {
148+
if len(viper.GetString("etcd.ips")) == 0 || len(viper.GetString("registry.ip")) == 0 || len(viper.GetString("router.ips")) == 0 {
149+
log.Fatal("Can't read service IPs from configuration file.")
150+
}
149151
}
150152

151153
/////////////////

0 commit comments

Comments
 (0)