summaryrefslogtreecommitdiffstats
path: root/src/k8splugin/cmd/main.go
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2019-01-25 16:57:58 -0800
committerVictor Morales <victor.morales@intel.com>2019-01-25 16:59:59 -0800
commit468e208fbe3bcf2524d3aa8ceaabc4324f242b4b (patch)
tree2570d7f77a79aa71feacfedde5a2a858ee06b21f /src/k8splugin/cmd/main.go
parent083465d10c8fdeaffa89aa7daa93def3eca77df1 (diff)
Move api.go functions
CheckEnvVariables, CheckDatabaseConnection, LoadPlugins and CheckInitialSettings functions are utility functions which are not related with the API. These functions need to be moved to utils.go file. Change-Id: Ie6dfbafe8909962fba31534916a7e0f07ded116b Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
Diffstat (limited to 'src/k8splugin/cmd/main.go')
-rw-r--r--src/k8splugin/cmd/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/k8splugin/cmd/main.go b/src/k8splugin/cmd/main.go
index ee676549..c07446a7 100644
--- a/src/k8splugin/cmd/main.go
+++ b/src/k8splugin/cmd/main.go
@@ -26,6 +26,7 @@ import (
"k8s.io/client-go/util/homedir"
"k8splugin/api"
+ utils "k8splugin/internal"
)
func main() {
@@ -37,7 +38,7 @@ func main() {
}
flag.Parse()
- err := api.CheckInitialSettings()
+ err := utils.CheckInitialSettings()
if err != nil {
log.Fatal(err)
}