diff --git a/examples/bootstrap-with-deployment/go.mod b/examples/bootstrap-with-deployment/go.mod index 3a3464da..3b35aacb 100644 --- a/examples/bootstrap-with-deployment/go.mod +++ b/examples/bootstrap-with-deployment/go.mod @@ -2,7 +2,7 @@ module github.com/loft-sh/vcluster-mydeployment-example go 1.17 -require github.com/loft-sh/vcluster-sdk v0.2.0 +require github.com/loft-sh/vcluster-sdk v0.3.0 require ( github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect diff --git a/examples/bootstrap-with-deployment/go.sum b/examples/bootstrap-with-deployment/go.sum index 2cc59f38..f0f5906c 100644 --- a/examples/bootstrap-with-deployment/go.sum +++ b/examples/bootstrap-with-deployment/go.sum @@ -373,8 +373,8 @@ github.com/kubernetes-csi/external-snapshotter/client/v4 v4.2.0/go.mod h1:YBCo4D github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0= github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= -github.com/loft-sh/vcluster-sdk v0.2.0 h1:d1uyWMZVcfFso7umN1W+ghLohv8LPLUbO8dSMgeRoVo= -github.com/loft-sh/vcluster-sdk v0.2.0/go.mod h1:HdQ75vqJuqiHiCtX+bmRAN9ZrCFimeYfQ5vKX1hEx2o= +github.com/loft-sh/vcluster-sdk v0.3.0 h1:/934jIw+kfpXS7ujX6pt4pDi06MiWyKY7S+Q7kI37Z4= +github.com/loft-sh/vcluster-sdk v0.3.0/go.mod h1:HdQ75vqJuqiHiCtX+bmRAN9ZrCFimeYfQ5vKX1hEx2o= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= diff --git a/examples/bootstrap-with-deployment/main.go b/examples/bootstrap-with-deployment/main.go index 38347960..c4191697 100644 --- a/examples/bootstrap-with-deployment/main.go +++ b/examples/bootstrap-with-deployment/main.go @@ -6,7 +6,7 @@ import ( ) func main() { - ctx := plugin.MustInit("bootstrap-with-deployment") + ctx := plugin.MustInit() plugin.MustRegister(syncers.NewMydeploymentSyncer(ctx)) plugin.MustStart() } diff --git a/examples/crd-sync/go.mod b/examples/crd-sync/go.mod index ab3e2b89..64339c7a 100644 --- a/examples/crd-sync/go.mod +++ b/examples/crd-sync/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/ghodss/yaml v1.0.0 - github.com/loft-sh/vcluster-sdk v0.2.0 + github.com/loft-sh/vcluster-sdk v0.3.0 k8s.io/apiextensions-apiserver v0.24.0 k8s.io/apimachinery v0.24.0 sigs.k8s.io/controller-runtime v0.12.1 diff --git a/examples/crd-sync/go.sum b/examples/crd-sync/go.sum index fff8613f..5a6f684a 100644 --- a/examples/crd-sync/go.sum +++ b/examples/crd-sync/go.sum @@ -381,8 +381,8 @@ github.com/kubernetes-csi/external-snapshotter/client/v4 v4.2.0/go.mod h1:YBCo4D github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0= github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= -github.com/loft-sh/vcluster-sdk v0.2.0 h1:d1uyWMZVcfFso7umN1W+ghLohv8LPLUbO8dSMgeRoVo= -github.com/loft-sh/vcluster-sdk v0.2.0/go.mod h1:HdQ75vqJuqiHiCtX+bmRAN9ZrCFimeYfQ5vKX1hEx2o= +github.com/loft-sh/vcluster-sdk v0.3.0 h1:/934jIw+kfpXS7ujX6pt4pDi06MiWyKY7S+Q7kI37Z4= +github.com/loft-sh/vcluster-sdk v0.3.0/go.mod h1:HdQ75vqJuqiHiCtX+bmRAN9ZrCFimeYfQ5vKX1hEx2o= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= diff --git a/examples/crd-sync/main.go b/examples/crd-sync/main.go index 966d5153..1f23f4a0 100644 --- a/examples/crd-sync/main.go +++ b/examples/crd-sync/main.go @@ -6,7 +6,7 @@ import ( ) func main() { - ctx := plugin.MustInit("crd-sync") + ctx := plugin.MustInit() plugin.MustRegister(syncers.NewCarSyncer(ctx)) plugin.MustStart() } diff --git a/examples/hooks/go.mod b/examples/hooks/go.mod index c687a45f..ca3c63d6 100644 --- a/examples/hooks/go.mod +++ b/examples/hooks/go.mod @@ -3,7 +3,7 @@ module github.com/loft-sh/vcluster-pod-hooks go 1.17 require ( - github.com/loft-sh/vcluster-sdk v0.2.0 + github.com/loft-sh/vcluster-sdk v0.3.0 github.com/pkg/errors v0.9.1 k8s.io/api v0.24.0 k8s.io/apimachinery v0.24.0 diff --git a/examples/hooks/go.sum b/examples/hooks/go.sum index 08323052..9d5807d0 100644 --- a/examples/hooks/go.sum +++ b/examples/hooks/go.sum @@ -372,8 +372,8 @@ github.com/kubernetes-csi/external-snapshotter/client/v4 v4.2.0/go.mod h1:YBCo4D github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0= github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= -github.com/loft-sh/vcluster-sdk v0.2.0 h1:d1uyWMZVcfFso7umN1W+ghLohv8LPLUbO8dSMgeRoVo= -github.com/loft-sh/vcluster-sdk v0.2.0/go.mod h1:HdQ75vqJuqiHiCtX+bmRAN9ZrCFimeYfQ5vKX1hEx2o= +github.com/loft-sh/vcluster-sdk v0.3.0 h1:/934jIw+kfpXS7ujX6pt4pDi06MiWyKY7S+Q7kI37Z4= +github.com/loft-sh/vcluster-sdk v0.3.0/go.mod h1:HdQ75vqJuqiHiCtX+bmRAN9ZrCFimeYfQ5vKX1hEx2o= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= diff --git a/examples/hooks/main.go b/examples/hooks/main.go index 7806538f..e3dcdc45 100644 --- a/examples/hooks/main.go +++ b/examples/hooks/main.go @@ -6,7 +6,7 @@ import ( ) func main() { - _ = plugin.MustInit("hooks") + _ = plugin.MustInit() plugin.MustRegister(hooks.NewPodHook()) plugin.MustRegister(hooks.NewServiceHook()) plugin.MustRegister(hooks.NewSecretHook()) diff --git a/examples/pull-secret-sync/go.mod b/examples/pull-secret-sync/go.mod index 478a4779..80bb4205 100644 --- a/examples/pull-secret-sync/go.mod +++ b/examples/pull-secret-sync/go.mod @@ -3,7 +3,7 @@ module github.com/loft-sh/vcluster-pull-secret-sync go 1.17 require ( - github.com/loft-sh/vcluster-sdk v0.2.0 + github.com/loft-sh/vcluster-sdk v0.3.0 k8s.io/api v0.24.0 k8s.io/apimachinery v0.24.0 sigs.k8s.io/controller-runtime v0.12.1 diff --git a/examples/pull-secret-sync/go.sum b/examples/pull-secret-sync/go.sum index 2cc59f38..f0f5906c 100644 --- a/examples/pull-secret-sync/go.sum +++ b/examples/pull-secret-sync/go.sum @@ -373,8 +373,8 @@ github.com/kubernetes-csi/external-snapshotter/client/v4 v4.2.0/go.mod h1:YBCo4D github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0= github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= -github.com/loft-sh/vcluster-sdk v0.2.0 h1:d1uyWMZVcfFso7umN1W+ghLohv8LPLUbO8dSMgeRoVo= -github.com/loft-sh/vcluster-sdk v0.2.0/go.mod h1:HdQ75vqJuqiHiCtX+bmRAN9ZrCFimeYfQ5vKX1hEx2o= +github.com/loft-sh/vcluster-sdk v0.3.0 h1:/934jIw+kfpXS7ujX6pt4pDi06MiWyKY7S+Q7kI37Z4= +github.com/loft-sh/vcluster-sdk v0.3.0/go.mod h1:HdQ75vqJuqiHiCtX+bmRAN9ZrCFimeYfQ5vKX1hEx2o= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= diff --git a/examples/pull-secret-sync/main.go b/examples/pull-secret-sync/main.go index 16da616f..5fae0231 100644 --- a/examples/pull-secret-sync/main.go +++ b/examples/pull-secret-sync/main.go @@ -1,7 +1,6 @@ package main import ( - "github.com/loft-sh/vcluster-pull-secret-sync/constants" "os" "github.com/loft-sh/vcluster-pull-secret-sync/syncers" @@ -20,7 +19,7 @@ func main() { destinationNamespace = DefaultDestinationNamespace } - ctx := plugin.MustInit(constants.PluginName) + ctx := plugin.MustInit() plugin.MustRegister(syncers.NewPullSecretSyncer(ctx, destinationNamespace)) plugin.MustStart() }