Skip to content

Commit

Permalink
Update warning strings for installer
Browse files Browse the repository at this point in the history
  • Loading branch information
bobby569 committed Jun 28, 2018
1 parent cc391bb commit a0805a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions cli/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ func discoverInstallationEnvironment() error {
// Default deployment image to what etcd was built with
if etcdImage == "" {
etcdImage = tridentconfig.BuildEtcdImage
} else if etcdImage != tridentconfig.BuildEtcdImage {
log.Warning("The specified etcd image is different than the version Trident is tested with.")
} else if !strings.Contains(etcdImage, tridentconfig.BuildEtcdVersion) {
log.Warningf("Trident was qualified with etcd %s. You appear to be using a different version.", tridentconfig.BuildEtcdVersion)
}

// Ensure we're on Linux
Expand Down
5 changes: 1 addition & 4 deletions persistent_store/etcdv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,7 @@ func (p *EtcdClientV2) checkEtcdVersion() {
if comparison, err := buildEtcdVersion.Compare(version.Server); err != nil {
log.Errorf("Could not parse etcd version '%s': %v", version.Server, err)
} else if comparison != 0 {
log.WithFields(log.Fields{
"currentEtcdVersion": version.Server,
"preferredEtcdVersion": config.BuildEtcdVersion,
}).Warning("The detected etcd version is different than the version Trident is tested with.")
log.Warningf("Trident was qualified with etcd %s. You appear to be using a different version.", config.BuildEtcdVersion)
} else {
log.WithFields(log.Fields{
"etcdVersion": version.Server,
Expand Down
5 changes: 1 addition & 4 deletions persistent_store/etcdv3.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,7 @@ func (p *EtcdClientV3) checkEtcdVersion() {
if comparison, err := buildEtcdVersion.Compare(status.Version); err != nil {
log.Errorf("Could not parse etcd version '%s': %v", status.Version, err)
} else if comparison != 0 {
log.WithFields(log.Fields{
"currentEtcdVersion": status.Version,
"preferredEtcdVersion": config.BuildEtcdVersion,
}).Warning("The detected etcd version is different than the version Trident is tested with.")
log.Warningf("Trident was qualified with etcd %s. You appear to be using a different version.", config.BuildEtcdVersion)
} else {
log.WithFields(log.Fields{
"etcdVersion": status.Version,
Expand Down

0 comments on commit a0805a4

Please sign in to comment.