Skip to content

Commit

Permalink
Fix up changed changed .Run signature in felix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdee committed Jul 12, 2018
1 parent c1f22e0 commit c5a7c16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/testutils/policy_controller_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (

func RunPolicyController(etcdIP, kconfigfile string) *containers.Container {
return containers.Run("calico-policy-controller",
containers.RunOpts{AutoRemove: true},
"--privileged",
"-e", fmt.Sprintf("ETCD_ENDPOINTS=http://%s:2379", etcdIP),
"-e", "ENABLED_CONTROLLERS=workloadendpoint,namespace,policy,node,serviceaccount",
Expand Down
3 changes: 3 additions & 0 deletions tests/testutils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ current-context: test-context`

func RunK8sApiserver(etcdIp string) *containers.Container {
return containers.Run("st-apiserver",
containers.RunOpts{AutoRemove: true},
"-v", os.Getenv("PRIVATE_KEY")+":/private.key",
fmt.Sprintf("%s", os.Getenv("HYPERKUBE_IMAGE")),
"/hyperkube", "apiserver",
Expand All @@ -67,6 +68,7 @@ func RunK8sApiserver(etcdIp string) *containers.Container {

func RunK8sControllerManager(apiserverIp string) *containers.Container {
c := containers.Run("st-controller-manager",
containers.RunOpts{AutoRemove: true},
"-v", os.Getenv("PRIVATE_KEY")+":/private.key",
fmt.Sprintf("%s", os.Getenv("HYPERKUBE_IMAGE")),
"/hyperkube", "controller-manager",
Expand All @@ -82,6 +84,7 @@ func RunK8sControllerManager(apiserverIp string) *containers.Container {

func RunEtcd() *containers.Container {
return containers.Run("etcd-fv",
containers.RunOpts{AutoRemove: true},
fmt.Sprintf("%s", os.Getenv("ETCD_IMAGE")),
"etcd",
"--advertise-client-urls", "http://127.0.0.1:2379",
Expand Down

0 comments on commit c5a7c16

Please sign in to comment.