From 7cc2761cf8587b036284897dcd11320c89a47986 Mon Sep 17 00:00:00 2001 From: Karuppiah Natarajan Date: Sun, 9 Feb 2020 14:52:03 +0530 Subject: [PATCH] change import references to flanksource/konfigadm repository this changes all the references from github.com/moshloop/konfigadm to github.com/flanksource/konfigadm in all go files and in go.mod too --- cmd/apply.go | 2 +- cmd/cloud-init.go | 2 +- cmd/common.go | 6 +++--- cmd/image_aliases.go | 4 ++-- cmd/images.go | 8 ++++---- cmd/verify.go | 2 +- go.mod | 2 +- main.go | 2 +- pkg/apps/cleanup.go | 6 +++--- pkg/apps/cni.go | 2 +- pkg/apps/cri.go | 6 +++--- pkg/apps/kubernetes.go | 2 +- pkg/apps/kubernetes_test.go | 6 +++--- pkg/build/driver.go | 4 ++-- pkg/build/libguestfs.go | 4 ++-- pkg/build/ova/ova.go | 2 +- pkg/build/ova/upload.go | 2 +- pkg/build/qemu.go | 4 ++-- pkg/build/scratch.go | 2 +- pkg/cloud-init/iso.go | 2 +- pkg/phases.go | 6 +++--- pkg/phases/apt.go | 4 ++-- pkg/phases/commands.go | 2 +- pkg/phases/commands_test.go | 2 +- pkg/phases/containers.go | 2 +- pkg/phases/containers_test.go | 4 ++-- pkg/phases/context.go | 4 ++-- pkg/phases/context_test.go | 2 +- pkg/phases/debian.go | 4 ++-- pkg/phases/dnf.go | 4 ++-- pkg/phases/environment.go | 4 ++-- pkg/phases/files.go | 2 +- pkg/phases/files_test.go | 4 ++-- pkg/phases/os.go | 2 +- pkg/phases/packages.go | 4 ++-- pkg/phases/packages_test.go | 2 +- pkg/phases/redhat.go | 4 ++-- pkg/phases/services.go | 4 ++-- pkg/phases/sysctl.go | 4 ++-- pkg/phases/sysctl_test.go | 2 +- pkg/phases/yum.go | 4 ++-- pkg/types/config.go | 2 +- pkg/types/systemd.go | 2 +- pkg/types/types.go | 4 ++-- test/merge_test.go | 4 ++-- 45 files changed, 76 insertions(+), 76 deletions(-) diff --git a/cmd/apply.go b/cmd/apply.go index bfe122e..632ddb6 100644 --- a/cmd/apply.go +++ b/cmd/apply.go @@ -5,7 +5,7 @@ import ( "os" "strconv" - "github.com/moshloop/konfigadm/pkg/utils" + "github.com/flanksource/konfigadm/pkg/utils" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) diff --git a/cmd/cloud-init.go b/cmd/cloud-init.go index a05e677..74acb49 100644 --- a/cmd/cloud-init.go +++ b/cmd/cloud-init.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - cloudinit "github.com/moshloop/konfigadm/pkg/cloud-init" + cloudinit "github.com/flanksource/konfigadm/pkg/cloud-init" "github.com/spf13/cobra" ) diff --git a/cmd/common.go b/cmd/common.go index 974ba96..fc0416d 100644 --- a/cmd/common.go +++ b/cmd/common.go @@ -3,9 +3,9 @@ package cmd import ( "os" - _ "github.com/moshloop/konfigadm/pkg" - "github.com/moshloop/konfigadm/pkg/phases" - "github.com/moshloop/konfigadm/pkg/types" + _ "github.com/flanksource/konfigadm/pkg" + "github.com/flanksource/konfigadm/pkg/phases" + "github.com/flanksource/konfigadm/pkg/types" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) diff --git a/cmd/image_aliases.go b/cmd/image_aliases.go index 6cc41d3..7cd31c3 100644 --- a/cmd/image_aliases.go +++ b/cmd/image_aliases.go @@ -1,8 +1,8 @@ package cmd import ( - "github.com/moshloop/konfigadm/pkg/types" - "github.com/moshloop/konfigadm/pkg/utils" + "github.com/flanksource/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/utils" ) var images = map[string]Image{ diff --git a/cmd/images.go b/cmd/images.go index ce3d959..bc0442a 100644 --- a/cmd/images.go +++ b/cmd/images.go @@ -6,12 +6,12 @@ import ( "path" "strings" - "github.com/moshloop/konfigadm/pkg/build/ova" - "github.com/moshloop/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/build/ova" + "github.com/flanksource/konfigadm/pkg/types" - . "github.com/moshloop/konfigadm/pkg/build" + . "github.com/flanksource/konfigadm/pkg/build" - "github.com/moshloop/konfigadm/pkg/utils" + "github.com/flanksource/konfigadm/pkg/utils" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" diff --git a/cmd/verify.go b/cmd/verify.go index d980e98..718cb1a 100644 --- a/cmd/verify.go +++ b/cmd/verify.go @@ -3,7 +3,7 @@ package cmd import ( "os" - "github.com/moshloop/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/types" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) diff --git a/go.mod b/go.mod index 7512da9..c01b4b0 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/moshloop/konfigadm +module github.com/flanksource/konfigadm require ( github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 // indirect diff --git a/main.go b/main.go index 10e80cf..7fef316 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/moshloop/konfigadm/cmd" + "github.com/flanksource/konfigadm/cmd" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) diff --git a/pkg/apps/cleanup.go b/pkg/apps/cleanup.go index 8b550a4..42cb0ce 100644 --- a/pkg/apps/cleanup.go +++ b/pkg/apps/cleanup.go @@ -1,9 +1,9 @@ package apps import ( - "github.com/moshloop/konfigadm/pkg/build" - "github.com/moshloop/konfigadm/pkg/phases" - . "github.com/moshloop/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/build" + "github.com/flanksource/konfigadm/pkg/phases" + . "github.com/flanksource/konfigadm/pkg/types" ) var Cleanup Phase = cleanup{} diff --git a/pkg/apps/cni.go b/pkg/apps/cni.go index c6c0e93..92f85fe 100644 --- a/pkg/apps/cni.go +++ b/pkg/apps/cni.go @@ -1,7 +1,7 @@ package apps import ( - . "github.com/moshloop/konfigadm/pkg/types" + . "github.com/flanksource/konfigadm/pkg/types" ) var CNI Phase = cni{} diff --git a/pkg/apps/cri.go b/pkg/apps/cri.go index a18cf17..e1ae877 100644 --- a/pkg/apps/cri.go +++ b/pkg/apps/cri.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/moshloop/konfigadm/pkg/phases" - . "github.com/moshloop/konfigadm/pkg/types" - "github.com/moshloop/konfigadm/pkg/utils" + "github.com/flanksource/konfigadm/pkg/phases" + . "github.com/flanksource/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/utils" ) var CRI Phase = cri{} diff --git a/pkg/apps/kubernetes.go b/pkg/apps/kubernetes.go index a488631..032b262 100644 --- a/pkg/apps/kubernetes.go +++ b/pkg/apps/kubernetes.go @@ -3,7 +3,7 @@ package apps import ( "strings" - . "github.com/moshloop/konfigadm/pkg/types" + . "github.com/flanksource/konfigadm/pkg/types" ) var Kubernetes Phase = kubernetes{} diff --git a/pkg/apps/kubernetes_test.go b/pkg/apps/kubernetes_test.go index 01e70be..a157bfc 100644 --- a/pkg/apps/kubernetes_test.go +++ b/pkg/apps/kubernetes_test.go @@ -1,10 +1,10 @@ package apps_test import ( + _ "github.com/flanksource/konfigadm/pkg" + . "github.com/flanksource/konfigadm/pkg/types" + . "github.com/onsi/gomega" "testing" - _ "github.com/moshloop/konfigadm/pkg" - . "github.com/moshloop/konfigadm/pkg/types" - ."github.com/onsi/gomega" ) func TestMarkPackages(t *testing.T) { diff --git a/pkg/build/driver.go b/pkg/build/driver.go index bf7944c..7957557 100644 --- a/pkg/build/driver.go +++ b/pkg/build/driver.go @@ -3,8 +3,8 @@ package build import ( "strings" - cloudinit "github.com/moshloop/konfigadm/pkg/cloud-init" - "github.com/moshloop/konfigadm/pkg/types" + cloudinit "github.com/flanksource/konfigadm/pkg/cloud-init" + "github.com/flanksource/konfigadm/pkg/types" ) type Driver interface { diff --git a/pkg/build/libguestfs.go b/pkg/build/libguestfs.go index 77a120f..856a773 100644 --- a/pkg/build/libguestfs.go +++ b/pkg/build/libguestfs.go @@ -6,9 +6,9 @@ import ( "os" "path" + "github.com/flanksource/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/utils" "github.com/mitchellh/colorstring" - "github.com/moshloop/konfigadm/pkg/types" - "github.com/moshloop/konfigadm/pkg/utils" log "github.com/sirupsen/logrus" "gopkg.in/yaml.v3" ) diff --git a/pkg/build/ova/ova.go b/pkg/build/ova/ova.go index 27d6e21..b08852f 100644 --- a/pkg/build/ova/ova.go +++ b/pkg/build/ova/ova.go @@ -11,7 +11,7 @@ import ( log "github.com/sirupsen/logrus" - "github.com/moshloop/konfigadm/pkg/utils" + "github.com/flanksource/konfigadm/pkg/utils" ) var ( diff --git a/pkg/build/ova/upload.go b/pkg/build/ova/upload.go index 4f037dc..e6cb8dd 100644 --- a/pkg/build/ova/upload.go +++ b/pkg/build/ova/upload.go @@ -6,7 +6,7 @@ import ( log "github.com/sirupsen/logrus" "github.com/spf13/cobra" - "github.com/moshloop/konfigadm/pkg/utils" + "github.com/flanksource/konfigadm/pkg/utils" ) var ( diff --git a/pkg/build/qemu.go b/pkg/build/qemu.go index c4684b6..fa99a34 100644 --- a/pkg/build/qemu.go +++ b/pkg/build/qemu.go @@ -6,8 +6,8 @@ import ( "github.com/mitchellh/colorstring" log "github.com/sirupsen/logrus" - "github.com/moshloop/konfigadm/pkg/types" - "github.com/moshloop/konfigadm/pkg/utils" + "github.com/flanksource/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/utils" ) type Qemu struct{} diff --git a/pkg/build/scratch.go b/pkg/build/scratch.go index 8655259..27f8906 100644 --- a/pkg/build/scratch.go +++ b/pkg/build/scratch.go @@ -5,7 +5,7 @@ import ( "os" "runtime" - "github.com/moshloop/konfigadm/pkg/utils" + "github.com/flanksource/konfigadm/pkg/utils" log "github.com/sirupsen/logrus" ) diff --git a/pkg/cloud-init/iso.go b/pkg/cloud-init/iso.go index dd1272d..500c65d 100644 --- a/pkg/cloud-init/iso.go +++ b/pkg/cloud-init/iso.go @@ -8,7 +8,7 @@ import ( "path" "strings" - "github.com/moshloop/konfigadm/pkg/utils" + "github.com/flanksource/konfigadm/pkg/utils" ) //CreateISO creates a new ISO with the user/meta data and returns a path to the iso diff --git a/pkg/phases.go b/pkg/phases.go index 955e324..77fa757 100644 --- a/pkg/phases.go +++ b/pkg/phases.go @@ -1,9 +1,9 @@ package pkg import ( - "github.com/moshloop/konfigadm/pkg/apps" - "github.com/moshloop/konfigadm/pkg/phases" - "github.com/moshloop/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/apps" + "github.com/flanksource/konfigadm/pkg/phases" + "github.com/flanksource/konfigadm/pkg/types" ) func init() { diff --git a/pkg/phases/apt.go b/pkg/phases/apt.go index 0843ee7..e556ca7 100644 --- a/pkg/phases/apt.go +++ b/pkg/phases/apt.go @@ -6,8 +6,8 @@ import ( "path/filepath" "strings" - . "github.com/moshloop/konfigadm/pkg/types" - "github.com/moshloop/konfigadm/pkg/utils" + . "github.com/flanksource/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/utils" log "github.com/sirupsen/logrus" ) diff --git a/pkg/phases/commands.go b/pkg/phases/commands.go index 43f90cd..1e43658 100644 --- a/pkg/phases/commands.go +++ b/pkg/phases/commands.go @@ -1,7 +1,7 @@ package phases import ( - . "github.com/moshloop/konfigadm/pkg/types" + . "github.com/flanksource/konfigadm/pkg/types" ) var CommandsPhase AllPhases = command{} diff --git a/pkg/phases/commands_test.go b/pkg/phases/commands_test.go index 9e43233..d48cb9c 100644 --- a/pkg/phases/commands_test.go +++ b/pkg/phases/commands_test.go @@ -3,7 +3,7 @@ package phases_test import ( "testing" - . "github.com/moshloop/konfigadm/pkg/types" + . "github.com/flanksource/konfigadm/pkg/types" "github.com/onsi/gomega" ) diff --git a/pkg/phases/containers.go b/pkg/phases/containers.go index bf012d3..3ba4b01 100644 --- a/pkg/phases/containers.go +++ b/pkg/phases/containers.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - . "github.com/moshloop/konfigadm/pkg/types" + . "github.com/flanksource/konfigadm/pkg/types" ) var Containers Phase = containers{} diff --git a/pkg/phases/containers_test.go b/pkg/phases/containers_test.go index 4da60bf..b4926ba 100644 --- a/pkg/phases/containers_test.go +++ b/pkg/phases/containers_test.go @@ -2,8 +2,8 @@ package phases_test import ( "testing" - _ "github.com/moshloop/konfigadm/pkg" - . "github.com/moshloop/konfigadm/pkg/types" + _ "github.com/flanksource/konfigadm/pkg" + . "github.com/flanksource/konfigadm/pkg/types" "github.com/onsi/gomega" ) diff --git a/pkg/phases/context.go b/pkg/phases/context.go index 4ebddc4..d0ad82a 100644 --- a/pkg/phases/context.go +++ b/pkg/phases/context.go @@ -7,8 +7,8 @@ import ( "github.com/flosch/pongo2" log "github.com/sirupsen/logrus" - . "github.com/moshloop/konfigadm/pkg/types" - . "github.com/moshloop/konfigadm/pkg/utils" + . "github.com/flanksource/konfigadm/pkg/types" + . "github.com/flanksource/konfigadm/pkg/utils" ) var Context Phase = context{} diff --git a/pkg/phases/context_test.go b/pkg/phases/context_test.go index 72b508c..ce6c6bd 100644 --- a/pkg/phases/context_test.go +++ b/pkg/phases/context_test.go @@ -5,7 +5,7 @@ import ( "github.com/onsi/gomega" - . "github.com/moshloop/konfigadm/pkg/types" + . "github.com/flanksource/konfigadm/pkg/types" ) func TestArgs(t *testing.T) { diff --git a/pkg/phases/debian.go b/pkg/phases/debian.go index 4d51bd2..2b20f4b 100644 --- a/pkg/phases/debian.go +++ b/pkg/phases/debian.go @@ -3,8 +3,8 @@ package phases import ( "strings" - . "github.com/moshloop/konfigadm/pkg/types" - "github.com/moshloop/konfigadm/pkg/utils" + . "github.com/flanksource/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/utils" ) var ( diff --git a/pkg/phases/dnf.go b/pkg/phases/dnf.go index ab1f67a..aa70984 100644 --- a/pkg/phases/dnf.go +++ b/pkg/phases/dnf.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - . "github.com/moshloop/konfigadm/pkg/types" - "github.com/moshloop/konfigadm/pkg/utils" + . "github.com/flanksource/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/utils" log "github.com/sirupsen/logrus" ) diff --git a/pkg/phases/environment.go b/pkg/phases/environment.go index 43fddbf..3cc79cc 100644 --- a/pkg/phases/environment.go +++ b/pkg/phases/environment.go @@ -1,8 +1,8 @@ package phases import ( - . "github.com/moshloop/konfigadm/pkg/types" - "github.com/moshloop/konfigadm/pkg/utils" + . "github.com/flanksource/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/utils" ) var Environment Phase = environment{} diff --git a/pkg/phases/files.go b/pkg/phases/files.go index eb95c4b..5adb15f 100644 --- a/pkg/phases/files.go +++ b/pkg/phases/files.go @@ -4,7 +4,7 @@ import ( "io/ioutil" "os" - . "github.com/moshloop/konfigadm/pkg/types" + . "github.com/flanksource/konfigadm/pkg/types" log "github.com/sirupsen/logrus" ) diff --git a/pkg/phases/files_test.go b/pkg/phases/files_test.go index a7e2905..6bf9cb8 100644 --- a/pkg/phases/files_test.go +++ b/pkg/phases/files_test.go @@ -1,10 +1,10 @@ package phases_test import ( + . "github.com/flanksource/konfigadm/pkg/types" + "github.com/onsi/gomega" "io/ioutil" "testing" - . "github.com/moshloop/konfigadm/pkg/types" - "github.com/onsi/gomega" ) func TestCopy(t *testing.T) { diff --git a/pkg/phases/os.go b/pkg/phases/os.go index ffb4f0c..9ede6c7 100644 --- a/pkg/phases/os.go +++ b/pkg/phases/os.go @@ -3,7 +3,7 @@ package phases import ( "fmt" - . "github.com/moshloop/konfigadm/pkg/types" + . "github.com/flanksource/konfigadm/pkg/types" ) //OS provides an abstraction over different operating systems diff --git a/pkg/phases/packages.go b/pkg/phases/packages.go index d6312a1..9309fae 100644 --- a/pkg/phases/packages.go +++ b/pkg/phases/packages.go @@ -6,8 +6,8 @@ import ( log "github.com/sirupsen/logrus" - . "github.com/moshloop/konfigadm/pkg/types" - "github.com/moshloop/konfigadm/pkg/utils" + . "github.com/flanksource/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/utils" ) var Packages AllPhases = packages{} diff --git a/pkg/phases/packages_test.go b/pkg/phases/packages_test.go index a7fbb7d..f0b9464 100644 --- a/pkg/phases/packages_test.go +++ b/pkg/phases/packages_test.go @@ -3,7 +3,7 @@ package phases_test import ( "testing" - . "github.com/moshloop/konfigadm/pkg/types" + . "github.com/flanksource/konfigadm/pkg/types" ) func init() { diff --git a/pkg/phases/redhat.go b/pkg/phases/redhat.go index 57e541b..cec724c 100644 --- a/pkg/phases/redhat.go +++ b/pkg/phases/redhat.go @@ -3,8 +3,8 @@ package phases import ( "strings" - . "github.com/moshloop/konfigadm/pkg/types" - "github.com/moshloop/konfigadm/pkg/utils" + . "github.com/flanksource/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/utils" ) var ( diff --git a/pkg/phases/services.go b/pkg/phases/services.go index f212976..e5a023a 100644 --- a/pkg/phases/services.go +++ b/pkg/phases/services.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - . "github.com/moshloop/konfigadm/pkg/types" - "github.com/moshloop/konfigadm/pkg/utils" + . "github.com/flanksource/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/utils" ) var Services Phase = services{} diff --git a/pkg/phases/sysctl.go b/pkg/phases/sysctl.go index e567cd2..9982df9 100644 --- a/pkg/phases/sysctl.go +++ b/pkg/phases/sysctl.go @@ -5,9 +5,9 @@ import ( "os" "strings" - . "github.com/moshloop/konfigadm/pkg/types" + . "github.com/flanksource/konfigadm/pkg/types" - . "github.com/moshloop/konfigadm/pkg/utils" + . "github.com/flanksource/konfigadm/pkg/utils" ) var Sysctl Phase = sysctl{} diff --git a/pkg/phases/sysctl_test.go b/pkg/phases/sysctl_test.go index 12a90ce..46c40fb 100644 --- a/pkg/phases/sysctl_test.go +++ b/pkg/phases/sysctl_test.go @@ -3,7 +3,7 @@ package phases_test import ( "testing" - . "github.com/moshloop/konfigadm/pkg/types" + . "github.com/flanksource/konfigadm/pkg/types" "github.com/onsi/gomega" ) diff --git a/pkg/phases/yum.go b/pkg/phases/yum.go index 89a37e0..6f446a9 100644 --- a/pkg/phases/yum.go +++ b/pkg/phases/yum.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - . "github.com/moshloop/konfigadm/pkg/types" - "github.com/moshloop/konfigadm/pkg/utils" + . "github.com/flanksource/konfigadm/pkg/types" + "github.com/flanksource/konfigadm/pkg/utils" log "github.com/sirupsen/logrus" ) diff --git a/pkg/types/config.go b/pkg/types/config.go index a1653a1..da7b3ca 100644 --- a/pkg/types/config.go +++ b/pkg/types/config.go @@ -7,7 +7,7 @@ import ( "reflect" "strings" - cloudinit "github.com/moshloop/konfigadm/pkg/cloud-init" + cloudinit "github.com/flanksource/konfigadm/pkg/cloud-init" log "github.com/sirupsen/logrus" "go.uber.org/dig" yaml "gopkg.in/yaml.v3" diff --git a/pkg/types/systemd.go b/pkg/types/systemd.go index db6421f..c1a51a6 100644 --- a/pkg/types/systemd.go +++ b/pkg/types/systemd.go @@ -1,7 +1,7 @@ package types import ( - . "github.com/moshloop/konfigadm/pkg/utils" + . "github.com/flanksource/konfigadm/pkg/utils" ) //Service is a systemd service to be installed and started diff --git a/pkg/types/types.go b/pkg/types/types.go index 8146a94..95c4833 100644 --- a/pkg/types/types.go +++ b/pkg/types/types.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - cloudinit "github.com/moshloop/konfigadm/pkg/cloud-init" - "github.com/moshloop/konfigadm/pkg/utils" + cloudinit "github.com/flanksource/konfigadm/pkg/cloud-init" + "github.com/flanksource/konfigadm/pkg/utils" ) var ( diff --git a/test/merge_test.go b/test/merge_test.go index c65a89c..00deba7 100644 --- a/test/merge_test.go +++ b/test/merge_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - _ "github.com/moshloop/konfigadm/pkg" - "github.com/moshloop/konfigadm/pkg/types" + _ "github.com/flanksource/konfigadm/pkg" + "github.com/flanksource/konfigadm/pkg/types" "github.com/onsi/gomega" )