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

Commit

Permalink
Merge pull request #408 from chmouel/nip
Browse files Browse the repository at this point in the history
Set default domain to nip.io
  • Loading branch information
jstrachan authored Jun 28, 2017
2 parents 2818917 + b83e96f commit 3ef7078
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cmds/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ func deploy(f *cmdutil.Factory, d DefaultFabric8Deployment) {
util.Fatalf("%s", err)
}

// default xip domain if local deployment incase users deploy ingress controller or router
// default nip domain if local deployment incase users deploy ingress controller or router
if mini && typeOfMaster == util.OpenShift {
domain = ip + ".xip.io"
domain = ip + ".nip.io"
}

// default to the server from the current context
Expand Down
11 changes: 6 additions & 5 deletions cmds/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,17 @@ import (
"io/ioutil"
"net/http"

"net"
"net/url"
"strings"

"github.com/fabric8io/gofabric8/client"
"github.com/fabric8io/gofabric8/util"
oclient "github.com/openshift/origin/pkg/client"
"github.com/spf13/cobra"
kapi "k8s.io/kubernetes/pkg/api"
k8sclient "k8s.io/kubernetes/pkg/client/unversioned"
cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
"net"
"net/url"
"strings"
)

const (
Expand Down Expand Up @@ -83,9 +84,9 @@ func NewCmdUpgrade(f *cmdutil.Factory) *cobra.Command {
util.Failuref("error checking if minikube or minishift %v", err)
}

// default xip domain if local deployment incase users deploy ingress controller or router
// default nip domain if local deployment incase users deploy ingress controller or router
if mini && typeOfMaster == util.OpenShift {
domain = ip + ".xip.io"
domain = ip + ".nip.io"
}
if len(apiserver) == 0 {
apiserver = u.Host
Expand Down

0 comments on commit 3ef7078

Please sign in to comment.