Skip to content

Commit 6a7310a

Browse files
authored
Merge pull request #17 from mkimuram/issue/16
Add --namespace argument to deploy populator in another namespace
2 parents e9508a3 + 77d7b6b commit 6a7310a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/hello-populator/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131
)
3232

3333
const (
34-
namespace = "hello"
3534
prefix = "hello.k8s.io"
3635
mountPath = "/mnt"
3736
devicePath = "/dev/block"
@@ -48,6 +47,7 @@ func main() {
4847
kubeconfig string
4948
imageName string
5049
showVersion bool
50+
namespace string
5151
)
5252
// Main arg
5353
flag.StringVar(&mode, "mode", "", "Mode to run in (controller, populate)")
@@ -59,6 +59,7 @@ func main() {
5959
flag.StringVar(&masterURL, "master", "", "The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.")
6060
flag.StringVar(&imageName, "image-name", "", "Image to use for populating")
6161
flag.BoolVar(&showVersion, "version", false, "display the version string")
62+
flag.StringVar(&namespace, "namespace", "hello", "Namespace to deploy controller")
6263
flag.Parse()
6364

6465
if showVersion {

0 commit comments

Comments
 (0)