Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Extract constants to help us replacing KubectlImage/KubectlCommand fr…
Browse files Browse the repository at this point in the history
…om community ones to official ones once the fix for kubernetes/kubernetes#24088 is pushed to quay
  • Loading branch information
cw-kuoka committed May 11, 2016
1 parent ae43f64 commit 3171bd6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
10 changes: 6 additions & 4 deletions multi-node/aws/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,18 @@ import (
)

const (
credentialsDir = "credentials"
userDataDir = "userdata"
credentialsDir = "credentials"
userDataDir = "userdata"
defaultKubectlImage = "mumoshu/kubectl:v1.2.2"
defaultKubectlCommand = "kubectl"
)

func newDefaultCluster() *Cluster {
experimental := Experimental{
NodeDrainer{
Enabled: false,
KubectlImage: "mumoshu/kubectl:v1.2.2",
KubectlCommand: "kubectl",
KubectlImage: defaultKubectlImage,
KubectlCommand: defaultKubectlCommand,
},
}

Expand Down
16 changes: 8 additions & 8 deletions multi-node/aws/pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ func TestNodeDrainerConfig(t *testing.T) {
`,
nodeDrainer: NodeDrainer{
Enabled: false,
KubectlImage: "mumoshu/kubectl:v1.2.2",
KubectlCommand: "kubectl",
KubectlImage: defaultKubectlImage,
KubectlCommand: defaultKubectlCommand,
},
},
{
Expand All @@ -338,8 +338,8 @@ experimental:
`,
nodeDrainer: NodeDrainer{
Enabled: false,
KubectlImage: "mumoshu/kubectl:v1.2.2",
KubectlCommand: "kubectl",
KubectlImage: defaultKubectlImage,
KubectlCommand: defaultKubectlCommand,
},
},
{
Expand All @@ -350,8 +350,8 @@ experimental:
`,
nodeDrainer: NodeDrainer{
Enabled: true,
KubectlImage: "mumoshu/kubectl:v1.2.2",
KubectlCommand: "kubectl",
KubectlImage: defaultKubectlImage,
KubectlCommand: defaultKubectlCommand,
},
},
{
Expand All @@ -378,8 +378,8 @@ nodeDrainer:
`,
nodeDrainer: NodeDrainer{
Enabled: false,
KubectlImage: "mumoshu/kubectl:v1.2.2",
KubectlCommand: "kubectl",
KubectlImage: defaultKubectlImage,
KubectlCommand: defaultKubectlCommand,
},
},
}
Expand Down

0 comments on commit 3171bd6

Please sign in to comment.