From 7cc3228474dcc80448d09cd6741d4f3837f18bdf Mon Sep 17 00:00:00 2001 From: Taylor Bot Date: Fri, 23 Aug 2024 11:22:33 +0300 Subject: [PATCH] Release v4.0.0 (#1414) * Release v4.0.0 * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: Marian Steinbach --- CHANGELOG.md | 19 +++++++++++--- cmd/config_test.go | 4 +-- cmd/get/apps/command.go | 6 ++--- cmd/get/apps/printer.go | 4 +-- cmd/get/apps/runner.go | 6 ++--- cmd/get/capi/command.go | 2 +- cmd/get/capi/runner.go | 2 +- cmd/get/catalogs/command.go | 6 ++--- cmd/get/catalogs/printer.go | 4 +-- cmd/get/catalogs/runner.go | 6 ++--- cmd/get/clusters/command.go | 6 ++--- cmd/get/clusters/printer.go | 8 +++--- cmd/get/clusters/printer_test.go | 8 +++--- cmd/get/clusters/provider/aws.go | 6 ++--- cmd/get/clusters/provider/azure.go | 6 ++--- cmd/get/clusters/provider/common.go | 4 +-- cmd/get/clusters/provider/openstack.go | 4 +-- cmd/get/clusters/runner.go | 6 ++--- cmd/get/clusters/runner_test.go | 14 +++++----- cmd/get/command.go | 16 ++++++------ cmd/get/nodepools/command.go | 6 ++--- cmd/get/nodepools/printer.go | 10 +++---- cmd/get/nodepools/printer_test.go | 8 +++--- cmd/get/nodepools/provider/aws.go | 8 +++--- cmd/get/nodepools/provider/azure.go | 8 +++--- cmd/get/nodepools/provider/capa.go | 8 +++--- cmd/get/nodepools/provider/capi_md.go | 8 +++--- cmd/get/nodepools/runner.go | 6 ++--- cmd/get/nodepools/runner_test.go | 14 +++++----- cmd/get/orgs/command.go | 6 ++--- cmd/get/orgs/printer.go | 4 +-- cmd/get/orgs/printer_test.go | 6 ++--- cmd/get/orgs/runner.go | 6 ++--- cmd/get/orgs/runner_test.go | 12 ++++----- cmd/get/releases/command.go | 6 ++--- cmd/get/releases/printer.go | 4 +-- cmd/get/releases/runner.go | 6 ++--- cmd/get/runner.go | 2 +- cmd/gitops/add/app/runner.go | 8 +++--- cmd/gitops/add/automatic-updates/runner.go | 6 ++--- cmd/gitops/add/base/command.go | 2 +- cmd/gitops/add/base/flag.go | 2 +- cmd/gitops/add/base/runner.go | 26 +++++++++---------- cmd/gitops/add/command.go | 14 +++++----- cmd/gitops/add/encryption/runner.go | 10 +++---- cmd/gitops/add/management-cluster/runner.go | 8 +++--- cmd/gitops/add/organization/runner.go | 6 ++--- cmd/gitops/add/workload-cluster/runner.go | 8 +++--- cmd/gitops/command.go | 4 +-- cmd/gitops/initialize/runner.go | 4 +-- cmd/login/auth.go | 6 ++--- cmd/login/aws.go | 2 +- cmd/login/clientcert.go | 14 +++++----- cmd/login/clientcert_test.go | 2 +- cmd/login/command.go | 6 ++--- cmd/login/login.go | 4 +-- cmd/login/oidc.go | 8 +++--- cmd/login/runner.go | 4 +-- cmd/login/runner_config_modify_test.go | 4 +-- cmd/login/runner_test.go | 8 +++--- cmd/login/wc.go | 12 ++++----- cmd/login/wc_test.go | 10 +++---- cmd/root.go | 16 ++++++------ cmd/runner.go | 6 ++--- cmd/selfupdate/runner.go | 4 +-- cmd/template/app/flag.go | 4 +-- cmd/template/app/runner.go | 8 +++--- cmd/template/catalog/runner.go | 4 +-- cmd/template/cluster/command.go | 8 +++--- cmd/template/cluster/common/common.go | 2 +- cmd/template/cluster/flags/flag.go | 6 ++--- cmd/template/cluster/provider/aws.go | 6 ++--- cmd/template/cluster/provider/azure.go | 6 ++--- cmd/template/cluster/provider/capa.go | 10 +++---- cmd/template/cluster/provider/capg.go | 8 +++--- cmd/template/cluster/provider/capo.go | 8 +++--- cmd/template/cluster/provider/capv.go | 8 +++--- cmd/template/cluster/provider/capz.go | 8 +++--- cmd/template/cluster/provider/eks.go | 10 +++---- .../cluster/provider/templates/aws/cluster.go | 2 +- cmd/template/cluster/runner.go | 12 ++++----- cmd/template/cluster/runner_test.go | 10 +++---- cmd/template/command.go | 14 +++++----- cmd/template/networkpool/provider/common.go | 4 +-- cmd/template/networkpool/runner.go | 4 +-- cmd/template/nodepool/command.go | 2 +- cmd/template/nodepool/flag.go | 2 +- cmd/template/nodepool/provider/aws.go | 4 +-- cmd/template/nodepool/provider/azure.go | 4 +-- .../provider/templates/aws/nodepool.go | 2 +- cmd/template/nodepool/runner.go | 6 ++--- cmd/template/nodepool/runner_test.go | 2 +- cmd/template/organization/runner.go | 2 +- cmd/template/organization/runner_test.go | 2 +- cmd/template/runner.go | 2 +- cmd/update/app/command.go | 6 ++--- cmd/update/app/runner.go | 4 +-- cmd/update/app/runner_test.go | 10 +++---- cmd/update/cluster/command.go | 6 ++--- cmd/update/cluster/runner.go | 6 ++--- cmd/update/cluster/runner_test.go | 12 ++++----- cmd/update/command.go | 6 ++--- cmd/update/runner.go | 2 +- cmd/validate/apps/command.go | 6 ++--- cmd/validate/apps/printer.go | 6 ++--- cmd/validate/apps/report_printer.go | 4 +-- cmd/validate/apps/runner.go | 4 +-- cmd/validate/command.go | 4 +-- cmd/validate/runner.go | 2 +- go.mod | 2 +- internal/gitops/filesystem/creator/types.go | 2 +- .../flux-kustomization/kustomization.go | 2 +- .../filesystem/modifier/secret/secret.go | 2 +- .../sigs-kustomization/kustomization.go | 2 +- .../gitops/filesystem/modifier/sops/sops.go | 2 +- internal/gitops/structure/app/app.go | 12 ++++----- internal/gitops/structure/app/app_test.go | 2 +- .../structure/app/templates/template.go | 2 +- internal/gitops/structure/base/base.go | 8 +++--- internal/gitops/structure/base/base_test.go | 2 +- .../structure/base/templates/template.go | 2 +- internal/gitops/structure/common/common.go | 2 +- internal/gitops/structure/common/types.go | 2 +- .../gitops/structure/encryption/encryption.go | 14 +++++----- .../structure/management-cluster/cluster.go | 14 +++++----- .../management-cluster/cluster_test.go | 4 +-- .../management-cluster/templates/template.go | 2 +- .../structure/organization/organization.go | 8 +++--- .../organization/organization_test.go | 2 +- .../organization/templates/template.go | 2 +- internal/gitops/structure/root/root.go | 8 +++--- .../structure/root/templates/template.go | 2 +- .../structure/updates/templates/template.go | 2 +- internal/gitops/structure/updates/updates.go | 14 +++++----- .../gitops/structure/updates/updates_test.go | 2 +- .../structure/workload-cluster/cluster.go | 14 +++++----- .../workload-cluster/cluster_test.go | 2 +- .../workload-cluster/templates/template.go | 2 +- internal/key/key.go | 2 +- main.go | 4 +-- pkg/app/service.go | 6 ++--- pkg/app/validate.go | 8 +++--- pkg/commonconfig/commonconfig.go | 6 ++--- pkg/commonconfig/commonconfig_test.go | 2 +- pkg/data/domain/app/service.go | 2 +- pkg/data/domain/cluster/common.go | 2 +- pkg/data/domain/nodepool/common.go | 2 +- pkg/errorprinter/errorprinter_test.go | 2 +- pkg/graphql/client_test.go | 2 +- pkg/installation/info.go | 2 +- pkg/installation/info_test.go | 2 +- pkg/installation/installation.go | 2 +- pkg/labels/labels.go | 2 +- pkg/middleware/renewtoken/renewtoken.go | 6 ++--- pkg/middleware/renewtoken/renewtoken_test.go | 4 +-- pkg/oidc/device_auth.go | 2 +- pkg/output/nameprinter_test.go | 2 +- pkg/project/project.go | 2 +- pkg/template/app/app.go | 2 +- pkg/template/app/app_test.go | 2 +- test/kubeclient/kubeclient.go | 2 +- test/oidc/mock-oidc-server.go | 2 +- 162 files changed, 468 insertions(+), 455 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 524d66651..70ae5b37f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,13 +7,25 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s ## [Unreleased] +## [4.0.0] - 2024-08-22 + +### Changed + +- The way to specify a release in `kubectl gs gitops add workload-cluster` has changed. The flag `--cluster-release` has been replaced by `--release`. + +### Removed + +- `kubectl gs gitops add workload-cluster`: + - The flag `--default-apps-user-config` has been removed + - The flag `--default-apps-release` has been removed + - The flag `--cluster-release` has been removed + ## [3.2.0] - 2024-08-12 -## Changed +### Changed - Use more portable, Bash specific shebang for GitOps pre-commit script template - Schedule cluster upgrades for CAPI clusters. -- The way to specify a release in `kubectl gs gitops add workload-cluster` has changed. The flags `--default-apps-release` and `--cluster-release` have been replaced by `--release`. - Print Release information in `get cluster` command. ## [3.1.0] - 2024-07-23 @@ -1512,7 +1524,8 @@ This release supports rendering for CRs: - `AppCatalog` - `App` -[Unreleased]: https://github.com/giantswarm/kubectl-gs/compare/v3.2.0...HEAD +[Unreleased]: https://github.com/giantswarm/kubectl-gs/compare/v4.0.0...HEAD +[4.0.0]: https://github.com/giantswarm/kubectl-gs/compare/v3.2.0...v4.0.0 [3.2.0]: https://github.com/giantswarm/kubectl-gs/compare/v3.1.0...v3.2.0 [3.1.0]: https://github.com/giantswarm/kubectl-gs/compare/v3.0.0...v3.1.0 [3.0.0]: https://github.com/giantswarm/kubectl-gs/compare/v2.57.0...v3.0.0 diff --git a/cmd/config_test.go b/cmd/config_test.go index 4200ab362..b7f482b3d 100644 --- a/cmd/config_test.go +++ b/cmd/config_test.go @@ -12,8 +12,8 @@ import ( "k8s.io/cli-runtime/pkg/genericclioptions" "k8s.io/client-go/tools/clientcmd" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/test/kubeconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/test/kubeconfig" ) const ( diff --git a/cmd/get/apps/command.go b/cmd/get/apps/command.go index bbf91eead..0a14d58e2 100644 --- a/cmd/get/apps/command.go +++ b/cmd/get/apps/command.go @@ -10,9 +10,9 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware/renewtoken" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware/renewtoken" ) const ( diff --git a/cmd/get/apps/printer.go b/cmd/get/apps/printer.go index 58a7d9e4f..40138abc7 100644 --- a/cmd/get/apps/printer.go +++ b/cmd/get/apps/printer.go @@ -8,8 +8,8 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/cli-runtime/pkg/printers" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/app" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/app" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) func (r *runner) printOutput(appResource app.Resource) error { diff --git a/cmd/get/apps/runner.go b/cmd/get/apps/runner.go index 666b71657..2b1839f76 100644 --- a/cmd/get/apps/runner.go +++ b/cmd/get/apps/runner.go @@ -11,9 +11,9 @@ import ( "github.com/spf13/cobra" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/app" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/app" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) type runner struct { diff --git a/cmd/get/capi/command.go b/cmd/get/capi/command.go index c4384bd95..071bad74b 100644 --- a/cmd/get/capi/command.go +++ b/cmd/get/capi/command.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) const ( diff --git a/cmd/get/capi/runner.go b/cmd/get/capi/runner.go index d2158ea68..65519e119 100644 --- a/cmd/get/capi/runner.go +++ b/cmd/get/capi/runner.go @@ -16,7 +16,7 @@ import ( "k8s.io/cli-runtime/pkg/printers" "sigs.k8s.io/controller-runtime/pkg/client" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) const ( diff --git a/cmd/get/catalogs/command.go b/cmd/get/catalogs/command.go index 7f63c10c0..7a898d3c0 100644 --- a/cmd/get/catalogs/command.go +++ b/cmd/get/catalogs/command.go @@ -10,9 +10,9 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware/renewtoken" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware/renewtoken" ) const ( diff --git a/cmd/get/catalogs/printer.go b/cmd/get/catalogs/printer.go index 0ea3b2c1d..9e4a5ddeb 100644 --- a/cmd/get/catalogs/printer.go +++ b/cmd/get/catalogs/printer.go @@ -10,8 +10,8 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/cli-runtime/pkg/printers" - catalogdata "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/catalog" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + catalogdata "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/catalog" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) func (r *runner) printOutput(catalogResource catalogdata.Resource, maxColWidth uint) error { diff --git a/cmd/get/catalogs/runner.go b/cmd/get/catalogs/runner.go index 460ba6140..fc8ccc161 100644 --- a/cmd/get/catalogs/runner.go +++ b/cmd/get/catalogs/runner.go @@ -13,9 +13,9 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - catalogdata "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/catalog" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + catalogdata "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/catalog" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) type runner struct { diff --git a/cmd/get/clusters/command.go b/cmd/get/clusters/command.go index 62823e6e9..0c0c405a3 100644 --- a/cmd/get/clusters/command.go +++ b/cmd/get/clusters/command.go @@ -10,9 +10,9 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware/renewtoken" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware/renewtoken" ) const ( diff --git a/cmd/get/clusters/printer.go b/cmd/get/clusters/printer.go index d6c6420ed..0af3ff89a 100644 --- a/cmd/get/clusters/printer.go +++ b/cmd/get/clusters/printer.go @@ -7,10 +7,10 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/cli-runtime/pkg/printers" - "github.com/giantswarm/kubectl-gs/v4/cmd/get/clusters/provider" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/cluster" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/cmd/get/clusters/provider" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/cluster" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) func (r *runner) printOutput(clusterResource cluster.Resource) error { diff --git a/cmd/get/clusters/printer_test.go b/cmd/get/clusters/printer_test.go index 88ac5577a..21136bc56 100644 --- a/cmd/get/clusters/printer_test.go +++ b/cmd/get/clusters/printer_test.go @@ -17,10 +17,10 @@ import ( "github.com/giantswarm/k8smetadata/pkg/label" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/cluster" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" - "github.com/giantswarm/kubectl-gs/v4/test/goldenfile" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/cluster" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/test/goldenfile" ) var update = goflag.Bool("update", false, "update .golden reference test files") diff --git a/cmd/get/clusters/provider/aws.go b/cmd/get/clusters/provider/aws.go index 24b21f5ec..875effecb 100644 --- a/cmd/get/clusters/provider/aws.go +++ b/cmd/get/clusters/provider/aws.go @@ -5,9 +5,9 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" - "github.com/giantswarm/kubectl-gs/v4/internal/label" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/cluster" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/internal/label" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/cluster" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) func GetAWSTable(clusterResource cluster.Resource) *metav1.Table { diff --git a/cmd/get/clusters/provider/azure.go b/cmd/get/clusters/provider/azure.go index 43600c396..0731d056d 100644 --- a/cmd/get/clusters/provider/azure.go +++ b/cmd/get/clusters/provider/azure.go @@ -4,9 +4,9 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" - "github.com/giantswarm/kubectl-gs/v4/internal/label" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/cluster" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/internal/label" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/cluster" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) func GetAzureTable(clusterResource cluster.Resource) *metav1.Table { diff --git a/cmd/get/clusters/provider/common.go b/cmd/get/clusters/provider/common.go index a9041dd79..614e78fe6 100644 --- a/cmd/get/clusters/provider/common.go +++ b/cmd/get/clusters/provider/common.go @@ -6,14 +6,14 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" "github.com/giantswarm/k8smetadata/pkg/annotation" "github.com/giantswarm/k8smetadata/pkg/label" capi "sigs.k8s.io/cluster-api/api/v1beta1" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/cluster" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/cluster" ) const ( diff --git a/cmd/get/clusters/provider/openstack.go b/cmd/get/clusters/provider/openstack.go index 66af9531a..746f46946 100644 --- a/cmd/get/clusters/provider/openstack.go +++ b/cmd/get/clusters/provider/openstack.go @@ -4,8 +4,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/cluster" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/cluster" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) func GetOpenStackTable(clusterResource cluster.Resource) *metav1.Table { diff --git a/cmd/get/clusters/runner.go b/cmd/get/clusters/runner.go index 81ac68b68..592155956 100644 --- a/cmd/get/clusters/runner.go +++ b/cmd/get/clusters/runner.go @@ -11,9 +11,9 @@ import ( "github.com/spf13/cobra" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/cluster" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/cluster" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) type runner struct { diff --git a/cmd/get/clusters/runner_test.go b/cmd/get/clusters/runner_test.go index 63052d9bc..45776c71c 100644 --- a/cmd/get/clusters/runner_test.go +++ b/cmd/get/clusters/runner_test.go @@ -15,13 +15,13 @@ import ( "k8s.io/cli-runtime/pkg/genericclioptions" "sigs.k8s.io/controller-runtime/pkg/client/fake" //nolint:staticcheck - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/cluster" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" - "github.com/giantswarm/kubectl-gs/v4/pkg/scheme" - "github.com/giantswarm/kubectl-gs/v4/test/goldenfile" - "github.com/giantswarm/kubectl-gs/v4/test/kubeconfig" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/cluster" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/scheme" + "github.com/giantswarm/kubectl-gs/v5/test/goldenfile" + "github.com/giantswarm/kubectl-gs/v5/test/kubeconfig" ) // Test_run uses golden files. diff --git a/cmd/get/command.go b/cmd/get/command.go index e3cddf449..358df14ea 100644 --- a/cmd/get/command.go +++ b/cmd/get/command.go @@ -10,14 +10,14 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/cmd/get/apps" - "github.com/giantswarm/kubectl-gs/v4/cmd/get/capi" - "github.com/giantswarm/kubectl-gs/v4/cmd/get/catalogs" - "github.com/giantswarm/kubectl-gs/v4/cmd/get/clusters" - "github.com/giantswarm/kubectl-gs/v4/cmd/get/nodepools" - "github.com/giantswarm/kubectl-gs/v4/cmd/get/orgs" - "github.com/giantswarm/kubectl-gs/v4/cmd/get/releases" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/cmd/get/apps" + "github.com/giantswarm/kubectl-gs/v5/cmd/get/capi" + "github.com/giantswarm/kubectl-gs/v5/cmd/get/catalogs" + "github.com/giantswarm/kubectl-gs/v5/cmd/get/clusters" + "github.com/giantswarm/kubectl-gs/v5/cmd/get/nodepools" + "github.com/giantswarm/kubectl-gs/v5/cmd/get/orgs" + "github.com/giantswarm/kubectl-gs/v5/cmd/get/releases" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) const ( diff --git a/cmd/get/nodepools/command.go b/cmd/get/nodepools/command.go index 004c8e403..c3a64856e 100644 --- a/cmd/get/nodepools/command.go +++ b/cmd/get/nodepools/command.go @@ -10,9 +10,9 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware/renewtoken" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware/renewtoken" ) const ( diff --git a/cmd/get/nodepools/printer.go b/cmd/get/nodepools/printer.go index e55b50367..6315450f6 100644 --- a/cmd/get/nodepools/printer.go +++ b/cmd/get/nodepools/printer.go @@ -7,11 +7,11 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/cli-runtime/pkg/printers" - "github.com/giantswarm/kubectl-gs/v4/cmd/get/nodepools/provider" - "github.com/giantswarm/kubectl-gs/v4/internal/feature" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/nodepool" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/cmd/get/nodepools/provider" + "github.com/giantswarm/kubectl-gs/v5/internal/feature" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/nodepool" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) type PrintOptions struct { diff --git a/cmd/get/nodepools/printer_test.go b/cmd/get/nodepools/printer_test.go index 16e8ffee8..6af466393 100644 --- a/cmd/get/nodepools/printer_test.go +++ b/cmd/get/nodepools/printer_test.go @@ -19,10 +19,10 @@ import ( capi "sigs.k8s.io/cluster-api/api/v1beta1" capiexp "sigs.k8s.io/cluster-api/exp/api/v1beta1" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/nodepool" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" - "github.com/giantswarm/kubectl-gs/v4/test/goldenfile" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/nodepool" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/test/goldenfile" ) var update = goflag.Bool("update", false, "update .golden reference test files") diff --git a/cmd/get/nodepools/provider/aws.go b/cmd/get/nodepools/provider/aws.go index c2d366023..81194ac53 100644 --- a/cmd/get/nodepools/provider/aws.go +++ b/cmd/get/nodepools/provider/aws.go @@ -8,10 +8,10 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" - "github.com/giantswarm/kubectl-gs/v4/internal/feature" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/nodepool" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/internal/feature" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/nodepool" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) func GetAWSTable(npResource nodepool.Resource, capabilities *feature.Service) *metav1.Table { diff --git a/cmd/get/nodepools/provider/azure.go b/cmd/get/nodepools/provider/azure.go index b78a4e043..259ca7086 100644 --- a/cmd/get/nodepools/provider/azure.go +++ b/cmd/get/nodepools/provider/azure.go @@ -9,10 +9,10 @@ import ( "k8s.io/apimachinery/pkg/runtime" capi "sigs.k8s.io/cluster-api/api/v1beta1" - "github.com/giantswarm/kubectl-gs/v4/internal/feature" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/nodepool" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/internal/feature" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/nodepool" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) func GetAzureTable(npResource nodepool.Resource, capabilities *feature.Service) *metav1.Table { diff --git a/cmd/get/nodepools/provider/capa.go b/cmd/get/nodepools/provider/capa.go index 727538af6..0430c98d2 100644 --- a/cmd/get/nodepools/provider/capa.go +++ b/cmd/get/nodepools/provider/capa.go @@ -8,10 +8,10 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" - "github.com/giantswarm/kubectl-gs/v4/internal/feature" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/nodepool" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/internal/feature" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/nodepool" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) func GetCAPATable(npResource nodepool.Resource, capabilities *feature.Service) *metav1.Table { diff --git a/cmd/get/nodepools/provider/capi_md.go b/cmd/get/nodepools/provider/capi_md.go index 0649b5efe..25022ef51 100644 --- a/cmd/get/nodepools/provider/capi_md.go +++ b/cmd/get/nodepools/provider/capi_md.go @@ -7,10 +7,10 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" - "github.com/giantswarm/kubectl-gs/v4/internal/feature" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/nodepool" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/internal/feature" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/nodepool" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) func GetCAPITable(npResource nodepool.Resource, capabilities *feature.Service) *metav1.Table { diff --git a/cmd/get/nodepools/runner.go b/cmd/get/nodepools/runner.go index 52de9b174..7dbe9a655 100644 --- a/cmd/get/nodepools/runner.go +++ b/cmd/get/nodepools/runner.go @@ -11,9 +11,9 @@ import ( "github.com/spf13/cobra" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/nodepool" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/nodepool" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) type runner struct { diff --git a/cmd/get/nodepools/runner_test.go b/cmd/get/nodepools/runner_test.go index 5934d4af2..61894d04e 100644 --- a/cmd/get/nodepools/runner_test.go +++ b/cmd/get/nodepools/runner_test.go @@ -14,13 +14,13 @@ import ( "k8s.io/cli-runtime/pkg/genericclioptions" "sigs.k8s.io/controller-runtime/pkg/client/fake" //nolint:staticcheck - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/nodepool" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" - "github.com/giantswarm/kubectl-gs/v4/pkg/scheme" - "github.com/giantswarm/kubectl-gs/v4/test/goldenfile" - "github.com/giantswarm/kubectl-gs/v4/test/kubeconfig" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/nodepool" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/scheme" + "github.com/giantswarm/kubectl-gs/v5/test/goldenfile" + "github.com/giantswarm/kubectl-gs/v5/test/kubeconfig" ) // Test_run uses golden files. diff --git a/cmd/get/orgs/command.go b/cmd/get/orgs/command.go index 267529bf6..682f082d2 100644 --- a/cmd/get/orgs/command.go +++ b/cmd/get/orgs/command.go @@ -7,15 +7,15 @@ import ( "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" "github.com/giantswarm/microerror" "github.com/giantswarm/micrologger" "github.com/spf13/afero" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware/renewtoken" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware/renewtoken" ) const ( diff --git a/cmd/get/orgs/printer.go b/cmd/get/orgs/printer.go index ce9900a44..ae8843243 100644 --- a/cmd/get/orgs/printer.go +++ b/cmd/get/orgs/printer.go @@ -7,13 +7,13 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" "github.com/giantswarm/microerror" "k8s.io/apimachinery/pkg/runtime" "k8s.io/cli-runtime/pkg/printers" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/organization" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/organization" ) type PrintOptions struct { diff --git a/cmd/get/orgs/printer_test.go b/cmd/get/orgs/printer_test.go index d2a59d579..e4cc5e934 100644 --- a/cmd/get/orgs/printer_test.go +++ b/cmd/get/orgs/printer_test.go @@ -11,9 +11,9 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/organization" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" - "github.com/giantswarm/kubectl-gs/v4/test/goldenfile" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/organization" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/test/goldenfile" ) func Test_printOutput(t *testing.T) { diff --git a/cmd/get/orgs/runner.go b/cmd/get/orgs/runner.go index 783c3d322..52a6a0a43 100644 --- a/cmd/get/orgs/runner.go +++ b/cmd/get/orgs/runner.go @@ -10,9 +10,9 @@ import ( "github.com/spf13/afero" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/organization" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/organization" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) type runner struct { diff --git a/cmd/get/orgs/runner_test.go b/cmd/get/orgs/runner_test.go index 0c5359a9d..4de3ae539 100644 --- a/cmd/get/orgs/runner_test.go +++ b/cmd/get/orgs/runner_test.go @@ -12,12 +12,12 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/organization" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" - "github.com/giantswarm/kubectl-gs/v4/test/goldenfile" - "github.com/giantswarm/kubectl-gs/v4/test/kubeclient" - "github.com/giantswarm/kubectl-gs/v4/test/kubeconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/organization" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/test/goldenfile" + "github.com/giantswarm/kubectl-gs/v5/test/kubeclient" + "github.com/giantswarm/kubectl-gs/v5/test/kubeconfig" ) func Test_run(t *testing.T) { diff --git a/cmd/get/releases/command.go b/cmd/get/releases/command.go index f570203cc..86a34e923 100644 --- a/cmd/get/releases/command.go +++ b/cmd/get/releases/command.go @@ -10,9 +10,9 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware/renewtoken" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware/renewtoken" ) const ( diff --git a/cmd/get/releases/printer.go b/cmd/get/releases/printer.go index c323adac8..f8c29ccba 100644 --- a/cmd/get/releases/printer.go +++ b/cmd/get/releases/printer.go @@ -11,8 +11,8 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/cli-runtime/pkg/printers" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/release" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/release" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) const ( diff --git a/cmd/get/releases/runner.go b/cmd/get/releases/runner.go index fee51175b..4fa7fad04 100644 --- a/cmd/get/releases/runner.go +++ b/cmd/get/releases/runner.go @@ -11,9 +11,9 @@ import ( "github.com/spf13/cobra" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/release" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/release" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) type runner struct { diff --git a/cmd/get/runner.go b/cmd/get/runner.go index fdd821860..ae09278c1 100644 --- a/cmd/get/runner.go +++ b/cmd/get/runner.go @@ -8,7 +8,7 @@ import ( "github.com/giantswarm/micrologger" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) type runner struct { diff --git a/cmd/gitops/add/app/runner.go b/cmd/gitops/add/app/runner.go index 7398f88ac..82c9b93b8 100644 --- a/cmd/gitops/add/app/runner.go +++ b/cmd/gitops/add/app/runner.go @@ -12,10 +12,10 @@ import ( "github.com/spf13/cobra" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - structure "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/app" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" - commonkey "github.com/giantswarm/kubectl-gs/v4/internal/key" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + structure "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/app" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" + commonkey "github.com/giantswarm/kubectl-gs/v5/internal/key" ) type runner struct { diff --git a/cmd/gitops/add/automatic-updates/runner.go b/cmd/gitops/add/automatic-updates/runner.go index 4f1a39f61..371320d95 100644 --- a/cmd/gitops/add/automatic-updates/runner.go +++ b/cmd/gitops/add/automatic-updates/runner.go @@ -10,9 +10,9 @@ import ( "github.com/giantswarm/micrologger" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" - structure "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/updates" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" + structure "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/updates" ) type runner struct { diff --git a/cmd/gitops/add/base/command.go b/cmd/gitops/add/base/command.go index 8d7845a85..0ca5f674f 100644 --- a/cmd/gitops/add/base/command.go +++ b/cmd/gitops/add/base/command.go @@ -10,7 +10,7 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) const ( diff --git a/cmd/gitops/add/base/flag.go b/cmd/gitops/add/base/flag.go index 38fb8d3e1..ea480337c 100644 --- a/cmd/gitops/add/base/flag.go +++ b/cmd/gitops/add/base/flag.go @@ -7,7 +7,7 @@ import ( "github.com/giantswarm/microerror" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/internal/key" + "github.com/giantswarm/kubectl-gs/v5/internal/key" ) const ( diff --git a/cmd/gitops/add/base/runner.go b/cmd/gitops/add/base/runner.go index e8bdca8ed..f92d3c032 100644 --- a/cmd/gitops/add/base/runner.go +++ b/cmd/gitops/add/base/runner.go @@ -5,26 +5,26 @@ import ( "io" "strconv" - templateapp "github.com/giantswarm/kubectl-gs/v4/pkg/template/app" + templateapp "github.com/giantswarm/kubectl-gs/v5/pkg/template/app" - clustercommon "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/common" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/provider/templates/capv" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/provider/templates/capz" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/provider/templates/openstack" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/base" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" - "github.com/giantswarm/kubectl-gs/v4/internal/key" + clustercommon "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/common" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/provider/templates/capv" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/provider/templates/capz" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/provider/templates/openstack" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/base" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/key" - providers "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/provider" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/provider/templates/capa" - capg "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/provider/templates/gcp" + providers "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/provider" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/provider/templates/capa" + capg "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/provider/templates/gcp" "github.com/giantswarm/microerror" "github.com/giantswarm/micrologger" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) type runner struct { diff --git a/cmd/gitops/add/command.go b/cmd/gitops/add/command.go index 788dabac3..4b3c7d7e2 100644 --- a/cmd/gitops/add/command.go +++ b/cmd/gitops/add/command.go @@ -11,13 +11,13 @@ import ( "k8s.io/cli-runtime/pkg/genericclioptions" - app "github.com/giantswarm/kubectl-gs/v4/cmd/gitops/add/app" - autoup "github.com/giantswarm/kubectl-gs/v4/cmd/gitops/add/automatic-updates" - base "github.com/giantswarm/kubectl-gs/v4/cmd/gitops/add/base" - enc "github.com/giantswarm/kubectl-gs/v4/cmd/gitops/add/encryption" - mc "github.com/giantswarm/kubectl-gs/v4/cmd/gitops/add/management-cluster" - org "github.com/giantswarm/kubectl-gs/v4/cmd/gitops/add/organization" - wc "github.com/giantswarm/kubectl-gs/v4/cmd/gitops/add/workload-cluster" + app "github.com/giantswarm/kubectl-gs/v5/cmd/gitops/add/app" + autoup "github.com/giantswarm/kubectl-gs/v5/cmd/gitops/add/automatic-updates" + base "github.com/giantswarm/kubectl-gs/v5/cmd/gitops/add/base" + enc "github.com/giantswarm/kubectl-gs/v5/cmd/gitops/add/encryption" + mc "github.com/giantswarm/kubectl-gs/v5/cmd/gitops/add/management-cluster" + org "github.com/giantswarm/kubectl-gs/v5/cmd/gitops/add/organization" + wc "github.com/giantswarm/kubectl-gs/v5/cmd/gitops/add/workload-cluster" ) const ( diff --git a/cmd/gitops/add/encryption/runner.go b/cmd/gitops/add/encryption/runner.go index 7aed7ed7a..96d74884a 100644 --- a/cmd/gitops/add/encryption/runner.go +++ b/cmd/gitops/add/encryption/runner.go @@ -10,11 +10,11 @@ import ( "github.com/giantswarm/micrologger" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/encryption" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/key" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" - structure "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/encryption" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/encryption" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/key" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" + structure "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/encryption" ) type runner struct { diff --git a/cmd/gitops/add/management-cluster/runner.go b/cmd/gitops/add/management-cluster/runner.go index c813db0e0..a2f52fcd5 100644 --- a/cmd/gitops/add/management-cluster/runner.go +++ b/cmd/gitops/add/management-cluster/runner.go @@ -10,10 +10,10 @@ import ( "github.com/giantswarm/micrologger" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/encryption" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" - structure "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/management-cluster" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/encryption" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" + structure "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/management-cluster" ) const ( diff --git a/cmd/gitops/add/organization/runner.go b/cmd/gitops/add/organization/runner.go index ffc52b42a..58e6fd171 100644 --- a/cmd/gitops/add/organization/runner.go +++ b/cmd/gitops/add/organization/runner.go @@ -9,9 +9,9 @@ import ( "github.com/giantswarm/micrologger" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" - structure "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/organization" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" + structure "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/organization" ) type runner struct { diff --git a/cmd/gitops/add/workload-cluster/runner.go b/cmd/gitops/add/workload-cluster/runner.go index 6491d8f79..4e4703a41 100644 --- a/cmd/gitops/add/workload-cluster/runner.go +++ b/cmd/gitops/add/workload-cluster/runner.go @@ -11,10 +11,10 @@ import ( "github.com/spf13/afero" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" - structure "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/workload-cluster" - commonkey "github.com/giantswarm/kubectl-gs/v4/internal/key" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" + structure "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/workload-cluster" + commonkey "github.com/giantswarm/kubectl-gs/v5/internal/key" ) type runner struct { diff --git a/cmd/gitops/command.go b/cmd/gitops/command.go index e3f5d421a..7cf7a0533 100644 --- a/cmd/gitops/command.go +++ b/cmd/gitops/command.go @@ -11,8 +11,8 @@ import ( "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/cmd/gitops/add" - "github.com/giantswarm/kubectl-gs/v4/cmd/gitops/initialize" + "github.com/giantswarm/kubectl-gs/v5/cmd/gitops/add" + "github.com/giantswarm/kubectl-gs/v5/cmd/gitops/initialize" ) const ( diff --git a/cmd/gitops/initialize/runner.go b/cmd/gitops/initialize/runner.go index 2cccfab27..c648eaea0 100644 --- a/cmd/gitops/initialize/runner.go +++ b/cmd/gitops/initialize/runner.go @@ -9,8 +9,8 @@ import ( "github.com/giantswarm/micrologger" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - structure "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/root" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + structure "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/root" ) type runner struct { diff --git a/cmd/login/auth.go b/cmd/login/auth.go index 8116a4c7c..a0981c57d 100644 --- a/cmd/login/auth.go +++ b/cmd/login/auth.go @@ -13,9 +13,9 @@ import ( "k8s.io/client-go/tools/clientcmd" clientcmdapi "k8s.io/client-go/tools/clientcmd/api" - "github.com/giantswarm/kubectl-gs/v4/pkg/installation" - "github.com/giantswarm/kubectl-gs/v4/pkg/kubeconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/oidc" + "github.com/giantswarm/kubectl-gs/v5/pkg/installation" + "github.com/giantswarm/kubectl-gs/v5/pkg/kubeconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/oidc" ) type authInfo struct { diff --git a/cmd/login/aws.go b/cmd/login/aws.go index 9a90bd718..367e68f95 100644 --- a/cmd/login/aws.go +++ b/cmd/login/aws.go @@ -14,7 +14,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/yaml" - "github.com/giantswarm/kubectl-gs/v4/pkg/kubeconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/kubeconfig" ) type eksClusterConfig struct { diff --git a/cmd/login/clientcert.go b/cmd/login/clientcert.go index b00b4f521..921cef4f2 100644 --- a/cmd/login/clientcert.go +++ b/cmd/login/clientcert.go @@ -26,13 +26,13 @@ import ( "k8s.io/client-go/tools/clientcmd" clientcmdapi "k8s.io/client-go/tools/clientcmd/api" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - kgslabel "github.com/giantswarm/kubectl-gs/v4/internal/label" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/clientcert" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/cluster" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/organization" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/release" - "github.com/giantswarm/kubectl-gs/v4/pkg/kubeconfig" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + kgslabel "github.com/giantswarm/kubectl-gs/v5/internal/label" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/clientcert" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/cluster" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/organization" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/release" + "github.com/giantswarm/kubectl-gs/v5/pkg/kubeconfig" ) const ( diff --git a/cmd/login/clientcert_test.go b/cmd/login/clientcert_test.go index 9c0fad642..c2afffcdb 100644 --- a/cmd/login/clientcert_test.go +++ b/cmd/login/clientcert_test.go @@ -12,7 +12,7 @@ import ( clientcmdapi "k8s.io/client-go/tools/clientcmd/api" "k8s.io/utils/ptr" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) func Test_ClientCert_SelfContainedFiles(t *testing.T) { diff --git a/cmd/login/command.go b/cmd/login/command.go index fbee1b0e8..d9ed25206 100644 --- a/cmd/login/command.go +++ b/cmd/login/command.go @@ -10,9 +10,9 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware/renewtoken" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware/renewtoken" ) const ( diff --git a/cmd/login/login.go b/cmd/login/login.go index dea168c81..376cf7b6a 100644 --- a/cmd/login/login.go +++ b/cmd/login/login.go @@ -10,8 +10,8 @@ import ( "github.com/giantswarm/microerror" "k8s.io/client-go/tools/clientcmd" - "github.com/giantswarm/kubectl-gs/v4/pkg/installation" - "github.com/giantswarm/kubectl-gs/v4/pkg/kubeconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/installation" + "github.com/giantswarm/kubectl-gs/v5/pkg/kubeconfig" ) func (r *runner) findContext(ctx context.Context, installationIdentifier string) (bool, error) { diff --git a/cmd/login/oidc.go b/cmd/login/oidc.go index 22519d8c7..34118a81f 100644 --- a/cmd/login/oidc.go +++ b/cmd/login/oidc.go @@ -14,10 +14,10 @@ import ( "github.com/skratchdot/open-golang/open" clientcmdapi "k8s.io/client-go/tools/clientcmd/api" - "github.com/giantswarm/kubectl-gs/v4/cmd/login/template" - "github.com/giantswarm/kubectl-gs/v4/pkg/callbackserver" - "github.com/giantswarm/kubectl-gs/v4/pkg/installation" - "github.com/giantswarm/kubectl-gs/v4/pkg/oidc" + "github.com/giantswarm/kubectl-gs/v5/cmd/login/template" + "github.com/giantswarm/kubectl-gs/v5/pkg/callbackserver" + "github.com/giantswarm/kubectl-gs/v5/pkg/installation" + "github.com/giantswarm/kubectl-gs/v5/pkg/oidc" ) const ( diff --git a/cmd/login/runner.go b/cmd/login/runner.go index ef246f348..998b10da7 100644 --- a/cmd/login/runner.go +++ b/cmd/login/runner.go @@ -12,8 +12,8 @@ import ( "github.com/spf13/afero" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/kubeconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/kubeconfig" ) type runner struct { diff --git a/cmd/login/runner_config_modify_test.go b/cmd/login/runner_config_modify_test.go index cc80c3b90..eac04e816 100644 --- a/cmd/login/runner_config_modify_test.go +++ b/cmd/login/runner_config_modify_test.go @@ -33,8 +33,8 @@ import ( "k8s.io/utils/ptr" "sigs.k8s.io/cluster-api/api/v1beta1" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - testoidc "github.com/giantswarm/kubectl-gs/v4/test/oidc" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + testoidc "github.com/giantswarm/kubectl-gs/v5/test/oidc" ) func TestKubeConfigModification(t *testing.T) { diff --git a/cmd/login/runner_test.go b/cmd/login/runner_test.go index 8bada2fbf..e5d5f01a8 100644 --- a/cmd/login/runner_test.go +++ b/cmd/login/runner_test.go @@ -19,10 +19,10 @@ import ( "k8s.io/client-go/tools/clientcmd" clientcmdapi "k8s.io/client-go/tools/clientcmd/api" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/installation" - "github.com/giantswarm/kubectl-gs/v4/test/kubeconfig" - testoidc "github.com/giantswarm/kubectl-gs/v4/test/oidc" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/installation" + "github.com/giantswarm/kubectl-gs/v5/test/kubeconfig" + testoidc "github.com/giantswarm/kubectl-gs/v5/test/oidc" ) func TestLogin(t *testing.T) { diff --git a/cmd/login/wc.go b/cmd/login/wc.go index f93a9975c..d21ec38b3 100644 --- a/cmd/login/wc.go +++ b/cmd/login/wc.go @@ -14,12 +14,12 @@ import ( "k8s.io/client-go/tools/clientcmd" capi "sigs.k8s.io/cluster-api/api/v1beta1" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/clientcert" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/cluster" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/organization" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/release" - "github.com/giantswarm/kubectl-gs/v4/pkg/kubeconfig" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/clientcert" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/cluster" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/organization" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/release" + "github.com/giantswarm/kubectl-gs/v5/pkg/kubeconfig" ) const ( diff --git a/cmd/login/wc_test.go b/cmd/login/wc_test.go index d640683d0..a41f4b952 100644 --- a/cmd/login/wc_test.go +++ b/cmd/login/wc_test.go @@ -34,11 +34,11 @@ import ( capi "sigs.k8s.io/cluster-api/api/v1beta1" //nolint:staticcheck - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/internal/label" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/test/kubeclient" - testoidc "github.com/giantswarm/kubectl-gs/v4/test/oidc" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/internal/label" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/test/kubeclient" + testoidc "github.com/giantswarm/kubectl-gs/v5/test/oidc" ) func TestWCClientCert(t *testing.T) { diff --git a/cmd/root.go b/cmd/root.go index c83b29a3c..94fa82e41 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -10,14 +10,14 @@ import ( "github.com/spf13/afero" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/cmd/get" - "github.com/giantswarm/kubectl-gs/v4/cmd/gitops" - "github.com/giantswarm/kubectl-gs/v4/cmd/login" - "github.com/giantswarm/kubectl-gs/v4/cmd/selfupdate" - "github.com/giantswarm/kubectl-gs/v4/cmd/template" - "github.com/giantswarm/kubectl-gs/v4/cmd/update" - "github.com/giantswarm/kubectl-gs/v4/cmd/validate" - "github.com/giantswarm/kubectl-gs/v4/pkg/project" + "github.com/giantswarm/kubectl-gs/v5/cmd/get" + "github.com/giantswarm/kubectl-gs/v5/cmd/gitops" + "github.com/giantswarm/kubectl-gs/v5/cmd/login" + "github.com/giantswarm/kubectl-gs/v5/cmd/selfupdate" + "github.com/giantswarm/kubectl-gs/v5/cmd/template" + "github.com/giantswarm/kubectl-gs/v5/cmd/update" + "github.com/giantswarm/kubectl-gs/v5/cmd/validate" + "github.com/giantswarm/kubectl-gs/v5/pkg/project" ) const ( diff --git a/cmd/runner.go b/cmd/runner.go index 1af463a6c..9ac64cc66 100644 --- a/cmd/runner.go +++ b/cmd/runner.go @@ -10,9 +10,9 @@ import ( "github.com/giantswarm/micrologger" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/project" - "github.com/giantswarm/kubectl-gs/v4/pkg/selfupdate" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/project" + "github.com/giantswarm/kubectl-gs/v5/pkg/selfupdate" ) type runner struct { diff --git a/cmd/selfupdate/runner.go b/cmd/selfupdate/runner.go index f59b11b24..0c66468ac 100644 --- a/cmd/selfupdate/runner.go +++ b/cmd/selfupdate/runner.go @@ -10,9 +10,9 @@ import ( "github.com/giantswarm/micrologger" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/pkg/selfupdate" + "github.com/giantswarm/kubectl-gs/v5/pkg/selfupdate" - "github.com/giantswarm/kubectl-gs/v4/pkg/project" + "github.com/giantswarm/kubectl-gs/v5/pkg/project" ) type runner struct { diff --git a/cmd/template/app/flag.go b/cmd/template/app/flag.go index 381bb1df0..b7698e8b0 100644 --- a/cmd/template/app/flag.go +++ b/cmd/template/app/flag.go @@ -8,8 +8,8 @@ import ( "github.com/giantswarm/microerror" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/pkg/annotations" - "github.com/giantswarm/kubectl-gs/v4/pkg/labels" + "github.com/giantswarm/kubectl-gs/v5/pkg/annotations" + "github.com/giantswarm/kubectl-gs/v5/pkg/labels" ) const ( diff --git a/cmd/template/app/runner.go b/cmd/template/app/runner.go index cd6d37f27..b69e5be9e 100644 --- a/cmd/template/app/runner.go +++ b/cmd/template/app/runner.go @@ -15,10 +15,10 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/yaml" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/annotations" - "github.com/giantswarm/kubectl-gs/v4/pkg/labels" - templateapp "github.com/giantswarm/kubectl-gs/v4/pkg/template/app" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/annotations" + "github.com/giantswarm/kubectl-gs/v5/pkg/labels" + templateapp "github.com/giantswarm/kubectl-gs/v5/pkg/template/app" ) type runner struct { diff --git a/cmd/template/catalog/runner.go b/cmd/template/catalog/runner.go index 5e1b6972c..ce9be3fb9 100644 --- a/cmd/template/catalog/runner.go +++ b/cmd/template/catalog/runner.go @@ -12,8 +12,8 @@ import ( "github.com/spf13/cobra" "sigs.k8s.io/yaml" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - templatecatalog "github.com/giantswarm/kubectl-gs/v4/pkg/template/catalog" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + templatecatalog "github.com/giantswarm/kubectl-gs/v5/pkg/template/catalog" ) type runner struct { diff --git a/cmd/template/cluster/command.go b/cmd/template/cluster/command.go index 115565396..ab4b3d1de 100644 --- a/cmd/template/cluster/command.go +++ b/cmd/template/cluster/command.go @@ -9,10 +9,10 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/flags" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware/renewtoken" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/flags" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware/renewtoken" ) const ( diff --git a/cmd/template/cluster/common/common.go b/cmd/template/cluster/common/common.go index 5b2db2e05..5c7496342 100644 --- a/cmd/template/cluster/common/common.go +++ b/cmd/template/cluster/common/common.go @@ -18,7 +18,7 @@ import ( capi "sigs.k8s.io/cluster-api/api/v1beta1" "sigs.k8s.io/controller-runtime/pkg/client" - "github.com/giantswarm/kubectl-gs/v4/pkg/app" + "github.com/giantswarm/kubectl-gs/v5/pkg/app" ) var invalidFlagError = µerror.Error{ diff --git a/cmd/template/cluster/flags/flag.go b/cmd/template/cluster/flags/flag.go index 3437a0447..16f348d2c 100644 --- a/cmd/template/cluster/flags/flag.go +++ b/cmd/template/cluster/flags/flag.go @@ -11,9 +11,9 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/common" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/labels" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/common" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/labels" ) const ( diff --git a/cmd/template/cluster/provider/aws.go b/cmd/template/cluster/provider/aws.go index e2747ab79..9fe070d84 100644 --- a/cmd/template/cluster/provider/aws.go +++ b/cmd/template/cluster/provider/aws.go @@ -10,9 +10,9 @@ import ( "github.com/giantswarm/microerror" "sigs.k8s.io/yaml" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/common" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/provider/templates/aws" - "github.com/giantswarm/kubectl-gs/v4/internal/key" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/common" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/provider/templates/aws" + "github.com/giantswarm/kubectl-gs/v5/internal/key" ) func WriteAWSTemplate(ctx context.Context, client k8sclient.Interface, out io.Writer, config common.ClusterConfig) error { diff --git a/cmd/template/cluster/provider/azure.go b/cmd/template/cluster/provider/azure.go index 189a3f793..a877d65d5 100644 --- a/cmd/template/cluster/provider/azure.go +++ b/cmd/template/cluster/provider/azure.go @@ -18,9 +18,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/yaml" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/common" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/scheme" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/common" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/scheme" ) const ( diff --git a/cmd/template/cluster/provider/capa.go b/cmd/template/cluster/provider/capa.go index c1b9a47b3..f8eae9648 100644 --- a/cmd/template/cluster/provider/capa.go +++ b/cmd/template/cluster/provider/capa.go @@ -20,11 +20,11 @@ import ( gsannotation "github.com/giantswarm/k8smetadata/pkg/annotation" k8smetadata "github.com/giantswarm/k8smetadata/pkg/label" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/common" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/flags" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/provider/templates/capa" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - templateapp "github.com/giantswarm/kubectl-gs/v4/pkg/template/app" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/common" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/flags" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/provider/templates/capa" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + templateapp "github.com/giantswarm/kubectl-gs/v5/pkg/template/app" ) const ( diff --git a/cmd/template/cluster/provider/capg.go b/cmd/template/cluster/provider/capg.go index 23f7e4426..03b396f3c 100644 --- a/cmd/template/cluster/provider/capg.go +++ b/cmd/template/cluster/provider/capg.go @@ -11,10 +11,10 @@ import ( "github.com/giantswarm/microerror" "sigs.k8s.io/yaml" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/common" - capg "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/provider/templates/gcp" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - templateapp "github.com/giantswarm/kubectl-gs/v4/pkg/template/app" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/common" + capg "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/provider/templates/gcp" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + templateapp "github.com/giantswarm/kubectl-gs/v5/pkg/template/app" ) const ( diff --git a/cmd/template/cluster/provider/capo.go b/cmd/template/cluster/provider/capo.go index ef56b6cc2..0f25afa5b 100644 --- a/cmd/template/cluster/provider/capo.go +++ b/cmd/template/cluster/provider/capo.go @@ -11,10 +11,10 @@ import ( "github.com/giantswarm/microerror" "sigs.k8s.io/yaml" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/common" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/provider/templates/openstack" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - templateapp "github.com/giantswarm/kubectl-gs/v4/pkg/template/app" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/common" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/provider/templates/openstack" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + templateapp "github.com/giantswarm/kubectl-gs/v5/pkg/template/app" ) func WriteOpenStackTemplate(ctx context.Context, k8sClient k8sclient.Interface, output io.Writer, config common.ClusterConfig) error { diff --git a/cmd/template/cluster/provider/capv.go b/cmd/template/cluster/provider/capv.go index d8fd7c130..e2fed3e03 100644 --- a/cmd/template/cluster/provider/capv.go +++ b/cmd/template/cluster/provider/capv.go @@ -14,10 +14,10 @@ import ( applicationv1alpha1 "github.com/giantswarm/apiextensions-application/api/v1alpha1" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/common" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/provider/templates/capv" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - templateapp "github.com/giantswarm/kubectl-gs/v4/pkg/template/app" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/common" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/provider/templates/capv" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + templateapp "github.com/giantswarm/kubectl-gs/v5/pkg/template/app" ) const ( diff --git a/cmd/template/cluster/provider/capz.go b/cmd/template/cluster/provider/capz.go index 9b28c5134..50a79fd71 100644 --- a/cmd/template/cluster/provider/capz.go +++ b/cmd/template/cluster/provider/capz.go @@ -11,10 +11,10 @@ import ( k8smetadata "github.com/giantswarm/k8smetadata/pkg/label" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/common" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/provider/templates/capz" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - templateapp "github.com/giantswarm/kubectl-gs/v4/pkg/template/app" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/common" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/provider/templates/capz" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + templateapp "github.com/giantswarm/kubectl-gs/v5/pkg/template/app" ) const ( diff --git a/cmd/template/cluster/provider/eks.go b/cmd/template/cluster/provider/eks.go index 000cc59c1..ef25089b9 100644 --- a/cmd/template/cluster/provider/eks.go +++ b/cmd/template/cluster/provider/eks.go @@ -12,11 +12,11 @@ import ( k8smetadata "github.com/giantswarm/k8smetadata/pkg/label" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/common" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/provider/templates/capa" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/provider/templates/eks" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - templateapp "github.com/giantswarm/kubectl-gs/v4/pkg/template/app" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/common" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/provider/templates/capa" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/provider/templates/eks" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + templateapp "github.com/giantswarm/kubectl-gs/v5/pkg/template/app" ) const ( diff --git a/cmd/template/cluster/provider/templates/aws/cluster.go b/cmd/template/cluster/provider/templates/aws/cluster.go index 6203875cb..6d61cb99d 100644 --- a/cmd/template/cluster/provider/templates/aws/cluster.go +++ b/cmd/template/cluster/provider/templates/aws/cluster.go @@ -9,7 +9,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" capi "sigs.k8s.io/cluster-api/api/v1beta1" - "github.com/giantswarm/kubectl-gs/v4/internal/key" + "github.com/giantswarm/kubectl-gs/v5/internal/key" ) const ( diff --git a/cmd/template/cluster/runner.go b/cmd/template/cluster/runner.go index d976a66db..4365b5b4c 100644 --- a/cmd/template/cluster/runner.go +++ b/cmd/template/cluster/runner.go @@ -14,12 +14,12 @@ import ( "github.com/spf13/cobra" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/common" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/flags" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/provider" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/labels" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/common" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/flags" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/provider" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/labels" ) type runner struct { diff --git a/cmd/template/cluster/runner_test.go b/cmd/template/cluster/runner_test.go index 7107316f4..374a1cbe3 100644 --- a/cmd/template/cluster/runner_test.go +++ b/cmd/template/cluster/runner_test.go @@ -14,11 +14,11 @@ import ( capainfrav1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2" //nolint:staticcheck - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/common" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/flags" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" - "github.com/giantswarm/kubectl-gs/v4/test/goldenfile" - "github.com/giantswarm/kubectl-gs/v4/test/kubeclient" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/common" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/flags" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/test/goldenfile" + "github.com/giantswarm/kubectl-gs/v5/test/kubeclient" ) var update = goflag.Bool("update", false, "update .golden reference test files") diff --git a/cmd/template/command.go b/cmd/template/command.go index 37420d046..221cf0ba6 100644 --- a/cmd/template/command.go +++ b/cmd/template/command.go @@ -9,13 +9,13 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/app" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/catalog" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/networkpool" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/nodepool" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/organization" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/app" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/catalog" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/networkpool" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/nodepool" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/organization" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) const ( diff --git a/cmd/template/networkpool/provider/common.go b/cmd/template/networkpool/provider/common.go index 5a0ec47ec..92cb43a52 100644 --- a/cmd/template/networkpool/provider/common.go +++ b/cmd/template/networkpool/provider/common.go @@ -7,8 +7,8 @@ import ( "github.com/giantswarm/microerror" "sigs.k8s.io/yaml" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/cluster/util" - "github.com/giantswarm/kubectl-gs/v4/internal/key" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/cluster/util" + "github.com/giantswarm/kubectl-gs/v5/internal/key" ) type NetworkPoolCRsConfig struct { diff --git a/cmd/template/networkpool/runner.go b/cmd/template/networkpool/runner.go index 3a8155e07..d0d362b02 100644 --- a/cmd/template/networkpool/runner.go +++ b/cmd/template/networkpool/runner.go @@ -9,8 +9,8 @@ import ( "github.com/giantswarm/micrologger" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/networkpool/provider" - "github.com/giantswarm/kubectl-gs/v4/internal/key" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/networkpool/provider" + "github.com/giantswarm/kubectl-gs/v5/internal/key" ) const ( diff --git a/cmd/template/nodepool/command.go b/cmd/template/nodepool/command.go index 62ef41b8f..b9286dfd4 100644 --- a/cmd/template/nodepool/command.go +++ b/cmd/template/nodepool/command.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) const ( diff --git a/cmd/template/nodepool/flag.go b/cmd/template/nodepool/flag.go index fedc8272e..1329b63a7 100644 --- a/cmd/template/nodepool/flag.go +++ b/cmd/template/nodepool/flag.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/internal/key" + "github.com/giantswarm/kubectl-gs/v5/internal/key" ) const ( diff --git a/cmd/template/nodepool/provider/aws.go b/cmd/template/nodepool/provider/aws.go index bf4e994dd..b7f9effca 100644 --- a/cmd/template/nodepool/provider/aws.go +++ b/cmd/template/nodepool/provider/aws.go @@ -11,8 +11,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/yaml" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/nodepool/provider/templates/aws" - "github.com/giantswarm/kubectl-gs/v4/internal/key" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/nodepool/provider/templates/aws" + "github.com/giantswarm/kubectl-gs/v5/internal/key" ) func WriteAWSTemplate(ctx context.Context, client k8sclient.Interface, out io.Writer, config NodePoolCRsConfig) error { diff --git a/cmd/template/nodepool/provider/azure.go b/cmd/template/nodepool/provider/azure.go index 5636dfb8f..2b451a751 100644 --- a/cmd/template/nodepool/provider/azure.go +++ b/cmd/template/nodepool/provider/azure.go @@ -22,8 +22,8 @@ import ( "k8s.io/client-go/tools/reference" "sigs.k8s.io/yaml" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/scheme" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/scheme" ) func WriteAzureTemplate(ctx context.Context, client k8sclient.Interface, out io.Writer, config NodePoolCRsConfig) error { diff --git a/cmd/template/nodepool/provider/templates/aws/nodepool.go b/cmd/template/nodepool/provider/templates/aws/nodepool.go index 47053174e..de02353e9 100644 --- a/cmd/template/nodepool/provider/templates/aws/nodepool.go +++ b/cmd/template/nodepool/provider/templates/aws/nodepool.go @@ -9,7 +9,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" capi "sigs.k8s.io/cluster-api/api/v1beta1" - "github.com/giantswarm/kubectl-gs/v4/internal/key" + "github.com/giantswarm/kubectl-gs/v5/internal/key" ) const ( diff --git a/cmd/template/nodepool/runner.go b/cmd/template/nodepool/runner.go index cbad85658..6de87286f 100644 --- a/cmd/template/nodepool/runner.go +++ b/cmd/template/nodepool/runner.go @@ -10,9 +10,9 @@ import ( "github.com/giantswarm/micrologger" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/cmd/template/nodepool/provider" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/cmd/template/nodepool/provider" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) const ( diff --git a/cmd/template/nodepool/runner_test.go b/cmd/template/nodepool/runner_test.go index 4fdb1878a..a2252718d 100644 --- a/cmd/template/nodepool/runner_test.go +++ b/cmd/template/nodepool/runner_test.go @@ -8,7 +8,7 @@ import ( "github.com/pkg/errors" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" ) func Test_run(t *testing.T) { diff --git a/cmd/template/organization/runner.go b/cmd/template/organization/runner.go index 26310b5c9..f222833ba 100644 --- a/cmd/template/organization/runner.go +++ b/cmd/template/organization/runner.go @@ -10,7 +10,7 @@ import ( "github.com/spf13/cobra" "sigs.k8s.io/yaml" - template "github.com/giantswarm/kubectl-gs/v4/pkg/template/organization" + template "github.com/giantswarm/kubectl-gs/v5/pkg/template/organization" ) type runner struct { diff --git a/cmd/template/organization/runner_test.go b/cmd/template/organization/runner_test.go index e2d6362d6..b51375c3e 100644 --- a/cmd/template/organization/runner_test.go +++ b/cmd/template/organization/runner_test.go @@ -8,7 +8,7 @@ import ( "github.com/google/go-cmp/cmp" "github.com/pkg/errors" - "github.com/giantswarm/kubectl-gs/v4/test/goldenfile" + "github.com/giantswarm/kubectl-gs/v5/test/goldenfile" ) var update = goflag.Bool("update", false, "update .golden reference test files") diff --git a/cmd/template/runner.go b/cmd/template/runner.go index 1fd00a306..169be2c3f 100644 --- a/cmd/template/runner.go +++ b/cmd/template/runner.go @@ -8,7 +8,7 @@ import ( "github.com/giantswarm/micrologger" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) type runner struct { diff --git a/cmd/update/app/command.go b/cmd/update/app/command.go index 10511f68c..d63feb4a1 100644 --- a/cmd/update/app/command.go +++ b/cmd/update/app/command.go @@ -10,9 +10,9 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware/renewtoken" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware/renewtoken" ) const ( diff --git a/cmd/update/app/runner.go b/cmd/update/app/runner.go index ae89d020a..819f7ecb5 100644 --- a/cmd/update/app/runner.go +++ b/cmd/update/app/runner.go @@ -10,8 +10,8 @@ import ( "github.com/giantswarm/micrologger" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/app" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/app" ) type runner struct { diff --git a/cmd/update/app/runner_test.go b/cmd/update/app/runner_test.go index a4e57ca85..d3cdc688f 100644 --- a/cmd/update/app/runner_test.go +++ b/cmd/update/app/runner_test.go @@ -20,11 +20,11 @@ import ( "k8s.io/cli-runtime/pkg/genericclioptions" "sigs.k8s.io/controller-runtime/pkg/client/fake" //nolint:staticcheck - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/app" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" - "github.com/giantswarm/kubectl-gs/v4/pkg/scheme" - "github.com/giantswarm/kubectl-gs/v4/test/kubeconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/app" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/scheme" + "github.com/giantswarm/kubectl-gs/v5/test/kubeconfig" ) const ( diff --git a/cmd/update/cluster/command.go b/cmd/update/cluster/command.go index 9af7cd92a..b0e9f1231 100644 --- a/cmd/update/cluster/command.go +++ b/cmd/update/cluster/command.go @@ -10,9 +10,9 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware/renewtoken" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware/renewtoken" ) const ( diff --git a/cmd/update/cluster/runner.go b/cmd/update/cluster/runner.go index 7a41e070c..26175dd0b 100644 --- a/cmd/update/cluster/runner.go +++ b/cmd/update/cluster/runner.go @@ -14,9 +14,9 @@ import ( corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/types" - "github.com/giantswarm/kubectl-gs/v4/internal/label" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/cluster" + "github.com/giantswarm/kubectl-gs/v5/internal/label" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/cluster" ) type runner struct { diff --git a/cmd/update/cluster/runner_test.go b/cmd/update/cluster/runner_test.go index 43229e12c..126377dcb 100644 --- a/cmd/update/cluster/runner_test.go +++ b/cmd/update/cluster/runner_test.go @@ -15,12 +15,12 @@ import ( capi "sigs.k8s.io/cluster-api/api/v1beta1" "sigs.k8s.io/controller-runtime/pkg/client/fake" //nolint:staticcheck - "github.com/giantswarm/kubectl-gs/v4/internal/label" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/cluster" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" - "github.com/giantswarm/kubectl-gs/v4/pkg/scheme" - "github.com/giantswarm/kubectl-gs/v4/test/kubeconfig" + "github.com/giantswarm/kubectl-gs/v5/internal/label" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/cluster" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/scheme" + "github.com/giantswarm/kubectl-gs/v5/test/kubeconfig" ) func Test_run(t *testing.T) { diff --git a/cmd/update/command.go b/cmd/update/command.go index 6ba990e0c..14c3c952f 100644 --- a/cmd/update/command.go +++ b/cmd/update/command.go @@ -9,9 +9,9 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/cmd/update/app" - "github.com/giantswarm/kubectl-gs/v4/cmd/update/cluster" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/cmd/update/app" + "github.com/giantswarm/kubectl-gs/v5/cmd/update/cluster" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) const ( diff --git a/cmd/update/runner.go b/cmd/update/runner.go index 2f9c5d1fb..d81f233b5 100644 --- a/cmd/update/runner.go +++ b/cmd/update/runner.go @@ -8,7 +8,7 @@ import ( "github.com/giantswarm/micrologger" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) type runner struct { diff --git a/cmd/validate/apps/command.go b/cmd/validate/apps/command.go index 31266f20f..e4cdfa3fe 100644 --- a/cmd/validate/apps/command.go +++ b/cmd/validate/apps/command.go @@ -9,9 +9,9 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware/renewtoken" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware/renewtoken" ) var ( diff --git a/cmd/validate/apps/printer.go b/cmd/validate/apps/printer.go index 68a3774c3..e1f442bb9 100644 --- a/cmd/validate/apps/printer.go +++ b/cmd/validate/apps/printer.go @@ -7,9 +7,9 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/cli-runtime/pkg/printers" - "github.com/giantswarm/kubectl-gs/v4/pkg/app" - "github.com/giantswarm/kubectl-gs/v4/pkg/output" - "github.com/giantswarm/kubectl-gs/v4/pkg/pluralize" + "github.com/giantswarm/kubectl-gs/v5/pkg/app" + "github.com/giantswarm/kubectl-gs/v5/pkg/output" + "github.com/giantswarm/kubectl-gs/v5/pkg/pluralize" ) func (r *runner) printOutput(results app.ValidationResults) error { diff --git a/cmd/validate/apps/report_printer.go b/cmd/validate/apps/report_printer.go index 4113c4bed..9843455fa 100644 --- a/cmd/validate/apps/report_printer.go +++ b/cmd/validate/apps/report_printer.go @@ -4,8 +4,8 @@ import ( "fmt" "io" - "github.com/giantswarm/kubectl-gs/v4/pkg/app" - "github.com/giantswarm/kubectl-gs/v4/pkg/pluralize" + "github.com/giantswarm/kubectl-gs/v5/pkg/app" + "github.com/giantswarm/kubectl-gs/v5/pkg/pluralize" ) // PrintReport prints app validation diff --git a/cmd/validate/apps/runner.go b/cmd/validate/apps/runner.go index 7436b9440..05921c2ed 100644 --- a/cmd/validate/apps/runner.go +++ b/cmd/validate/apps/runner.go @@ -10,8 +10,8 @@ import ( "github.com/spf13/cobra" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/giantswarm/kubectl-gs/v4/pkg/app" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/app" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) const ( diff --git a/cmd/validate/command.go b/cmd/validate/command.go index d9950c484..df873d510 100644 --- a/cmd/validate/command.go +++ b/cmd/validate/command.go @@ -9,8 +9,8 @@ import ( "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/cmd/validate/apps" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/cmd/validate/apps" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) const ( diff --git a/cmd/validate/runner.go b/cmd/validate/runner.go index a7464cfcc..3fa924045 100644 --- a/cmd/validate/runner.go +++ b/cmd/validate/runner.go @@ -8,7 +8,7 @@ import ( "github.com/giantswarm/micrologger" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/pkg/commonconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/commonconfig" ) type runner struct { diff --git a/go.mod b/go.mod index 44bb0d8bb..36565aba1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/giantswarm/kubectl-gs/v4 +module github.com/giantswarm/kubectl-gs/v5 go 1.22.0 diff --git a/internal/gitops/filesystem/creator/types.go b/internal/gitops/filesystem/creator/types.go index ae9c0370e..55ff9236e 100644 --- a/internal/gitops/filesystem/creator/types.go +++ b/internal/gitops/filesystem/creator/types.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/afero" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier" ) const ( diff --git a/internal/gitops/filesystem/modifier/flux-kustomization/kustomization.go b/internal/gitops/filesystem/modifier/flux-kustomization/kustomization.go index 74dbd98de..6354ab048 100644 --- a/internal/gitops/filesystem/modifier/flux-kustomization/kustomization.go +++ b/internal/gitops/filesystem/modifier/flux-kustomization/kustomization.go @@ -5,7 +5,7 @@ import ( "github.com/giantswarm/microerror" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier/helper" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier/helper" ) type KustomizationModifier struct { diff --git a/internal/gitops/filesystem/modifier/secret/secret.go b/internal/gitops/filesystem/modifier/secret/secret.go index 82a55c94d..101d7b542 100644 --- a/internal/gitops/filesystem/modifier/secret/secret.go +++ b/internal/gitops/filesystem/modifier/secret/secret.go @@ -5,7 +5,7 @@ import ( "github.com/giantswarm/microerror" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier/helper" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier/helper" ) type SecretModifier struct { diff --git a/internal/gitops/filesystem/modifier/sigs-kustomization/kustomization.go b/internal/gitops/filesystem/modifier/sigs-kustomization/kustomization.go index bb8b234ca..b6ab90682 100644 --- a/internal/gitops/filesystem/modifier/sigs-kustomization/kustomization.go +++ b/internal/gitops/filesystem/modifier/sigs-kustomization/kustomization.go @@ -3,7 +3,7 @@ package sigskus import ( "github.com/giantswarm/microerror" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier/helper" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier/helper" ) type empty struct{} diff --git a/internal/gitops/filesystem/modifier/sops/sops.go b/internal/gitops/filesystem/modifier/sops/sops.go index 55c3fb060..45371ab4e 100644 --- a/internal/gitops/filesystem/modifier/sops/sops.go +++ b/internal/gitops/filesystem/modifier/sops/sops.go @@ -5,7 +5,7 @@ import ( "github.com/giantswarm/microerror" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier/helper" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier/helper" ) const ( diff --git a/internal/gitops/structure/app/app.go b/internal/gitops/structure/app/app.go index b42b07950..1bbc9b55b 100644 --- a/internal/gitops/structure/app/app.go +++ b/internal/gitops/structure/app/app.go @@ -6,12 +6,12 @@ import ( "github.com/giantswarm/microerror" "github.com/spf13/afero" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier" - sigskusmod "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier/sigs-kustomization" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/key" - apptmpl "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/app/templates" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier" + sigskusmod "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier/sigs-kustomization" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/key" + apptmpl "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/app/templates" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) const ( diff --git a/internal/gitops/structure/app/app_test.go b/internal/gitops/structure/app/app_test.go index 8f6d1ccd0..320cbf9fa 100644 --- a/internal/gitops/structure/app/app_test.go +++ b/internal/gitops/structure/app/app_test.go @@ -10,7 +10,7 @@ import ( "github.com/google/go-cmp/cmp" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) type FsObjectExpected struct { diff --git a/internal/gitops/structure/app/templates/template.go b/internal/gitops/structure/app/templates/template.go index a6d59b26f..0539159a1 100644 --- a/internal/gitops/structure/app/templates/template.go +++ b/internal/gitops/structure/app/templates/template.go @@ -3,7 +3,7 @@ package app import ( _ "embed" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) //go:embed appcr.yaml.tmpl diff --git a/internal/gitops/structure/base/base.go b/internal/gitops/structure/base/base.go index 2f39d8763..dfd2aec39 100644 --- a/internal/gitops/structure/base/base.go +++ b/internal/gitops/structure/base/base.go @@ -3,10 +3,10 @@ package base import ( "github.com/giantswarm/microerror" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/key" - base "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/base/templates" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/key" + base "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/base/templates" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) func NewClusterBase(config common.StructureConfig) (*creator.CreatorConfig, error) { diff --git a/internal/gitops/structure/base/base_test.go b/internal/gitops/structure/base/base_test.go index 77768e787..1941bcb87 100644 --- a/internal/gitops/structure/base/base_test.go +++ b/internal/gitops/structure/base/base_test.go @@ -8,7 +8,7 @@ import ( "github.com/google/go-cmp/cmp" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) type FsObjectExpected struct { diff --git a/internal/gitops/structure/base/templates/template.go b/internal/gitops/structure/base/templates/template.go index 172275e21..4d9d73fe2 100644 --- a/internal/gitops/structure/base/templates/template.go +++ b/internal/gitops/structure/base/templates/template.go @@ -3,7 +3,7 @@ package base import ( _ "embed" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) //go:embed kustomization.yaml.tmpl diff --git a/internal/gitops/structure/common/common.go b/internal/gitops/structure/common/common.go index f938653a5..a620489fc 100644 --- a/internal/gitops/structure/common/common.go +++ b/internal/gitops/structure/common/common.go @@ -8,7 +8,7 @@ import ( "github.com/Masterminds/sprig/v3" "github.com/giantswarm/microerror" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" ) // AppendFromTemplate add files from the given template to the diff --git a/internal/gitops/structure/common/types.go b/internal/gitops/structure/common/types.go index 931ed8302..24a3dc468 100644 --- a/internal/gitops/structure/common/types.go +++ b/internal/gitops/structure/common/types.go @@ -5,7 +5,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/encryption" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/encryption" ) type StructureConfig struct { diff --git a/internal/gitops/structure/encryption/encryption.go b/internal/gitops/structure/encryption/encryption.go index 80db298ab..355ba19cb 100644 --- a/internal/gitops/structure/encryption/encryption.go +++ b/internal/gitops/structure/encryption/encryption.go @@ -1,13 +1,13 @@ package encryption import ( - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier" - fluxkusmod "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier/flux-kustomization" - secmod "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier/secret" - sopsmod "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier/sops" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/key" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier" + fluxkusmod "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier/flux-kustomization" + secmod "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier/secret" + sopsmod "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier/sops" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/key" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) const ( diff --git a/internal/gitops/structure/management-cluster/cluster.go b/internal/gitops/structure/management-cluster/cluster.go index cbd5ae0ba..207549336 100644 --- a/internal/gitops/structure/management-cluster/cluster.go +++ b/internal/gitops/structure/management-cluster/cluster.go @@ -5,13 +5,13 @@ import ( "github.com/giantswarm/microerror" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/encryption" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier" - sopsmod "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier/sops" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/key" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" - mctmpl "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/management-cluster/templates" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/encryption" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier" + sopsmod "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier/sops" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/key" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" + mctmpl "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/management-cluster/templates" ) // NewManagementCluster creates a new Management Cluster directory diff --git a/internal/gitops/structure/management-cluster/cluster_test.go b/internal/gitops/structure/management-cluster/cluster_test.go index ade557fb4..adf18ef76 100644 --- a/internal/gitops/structure/management-cluster/cluster_test.go +++ b/internal/gitops/structure/management-cluster/cluster_test.go @@ -8,8 +8,8 @@ import ( "github.com/google/go-cmp/cmp" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/encryption" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/encryption" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) type FsObjectExpected struct { diff --git a/internal/gitops/structure/management-cluster/templates/template.go b/internal/gitops/structure/management-cluster/templates/template.go index 364101d38..7653569e3 100644 --- a/internal/gitops/structure/management-cluster/templates/template.go +++ b/internal/gitops/structure/management-cluster/templates/template.go @@ -3,7 +3,7 @@ package mgmtcluster import ( _ "embed" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) //go:embed management-cluster.yaml.tmpl diff --git a/internal/gitops/structure/organization/organization.go b/internal/gitops/structure/organization/organization.go index 9fc0509c1..6c2014580 100644 --- a/internal/gitops/structure/organization/organization.go +++ b/internal/gitops/structure/organization/organization.go @@ -3,10 +3,10 @@ package organization import ( "github.com/giantswarm/microerror" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/key" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" - orgtmpl "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/organization/templates" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/key" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" + orgtmpl "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/organization/templates" ) // NewOrganization creates a new Organization directory diff --git a/internal/gitops/structure/organization/organization_test.go b/internal/gitops/structure/organization/organization_test.go index e441f9a9f..8f977ca2e 100644 --- a/internal/gitops/structure/organization/organization_test.go +++ b/internal/gitops/structure/organization/organization_test.go @@ -8,7 +8,7 @@ import ( "github.com/google/go-cmp/cmp" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) type FsObjectExpected struct { diff --git a/internal/gitops/structure/organization/templates/template.go b/internal/gitops/structure/organization/templates/template.go index 7e4567996..23e6a2d4d 100644 --- a/internal/gitops/structure/organization/templates/template.go +++ b/internal/gitops/structure/organization/templates/template.go @@ -3,7 +3,7 @@ package organization import ( _ "embed" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) //go:embed organization.yaml.tmpl diff --git a/internal/gitops/structure/root/root.go b/internal/gitops/structure/root/root.go index e39bed37a..a7efd06fe 100644 --- a/internal/gitops/structure/root/root.go +++ b/internal/gitops/structure/root/root.go @@ -3,10 +3,10 @@ package root import ( "github.com/giantswarm/microerror" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/key" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" - roottmpl "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/root/templates" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/key" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" + roottmpl "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/root/templates" ) const ( diff --git a/internal/gitops/structure/root/templates/template.go b/internal/gitops/structure/root/templates/template.go index aa185c4bf..52d79e9dd 100644 --- a/internal/gitops/structure/root/templates/template.go +++ b/internal/gitops/structure/root/templates/template.go @@ -3,7 +3,7 @@ package root import ( _ "embed" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) //go:embed pre-commit.tmpl diff --git a/internal/gitops/structure/updates/templates/template.go b/internal/gitops/structure/updates/templates/template.go index 03df8d0f4..7105126ed 100644 --- a/internal/gitops/structure/updates/templates/template.go +++ b/internal/gitops/structure/updates/templates/template.go @@ -3,7 +3,7 @@ package autoupdate import ( _ "embed" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) //go:embed imagepolicy.yaml.tmpl diff --git a/internal/gitops/structure/updates/updates.go b/internal/gitops/structure/updates/updates.go index a1d92e81d..ff29ba2c0 100644 --- a/internal/gitops/structure/updates/updates.go +++ b/internal/gitops/structure/updates/updates.go @@ -6,13 +6,13 @@ import ( "github.com/giantswarm/microerror" "github.com/spf13/afero" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier" - appmod "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier/app" - sigskusmod "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier/sigs-kustomization" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/key" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" - updatetmpl "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/updates/templates" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier" + appmod "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier/app" + sigskusmod "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier/sigs-kustomization" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/key" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" + updatetmpl "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/updates/templates" ) const ( diff --git a/internal/gitops/structure/updates/updates_test.go b/internal/gitops/structure/updates/updates_test.go index a78608381..9956d4bd5 100644 --- a/internal/gitops/structure/updates/updates_test.go +++ b/internal/gitops/structure/updates/updates_test.go @@ -8,7 +8,7 @@ import ( "github.com/google/go-cmp/cmp" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) type FsObjectExpected struct { diff --git a/internal/gitops/structure/workload-cluster/cluster.go b/internal/gitops/structure/workload-cluster/cluster.go index a90f08294..0a2ebec35 100644 --- a/internal/gitops/structure/workload-cluster/cluster.go +++ b/internal/gitops/structure/workload-cluster/cluster.go @@ -5,13 +5,13 @@ import ( "github.com/giantswarm/microerror" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/creator" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier" - fluxkusmod "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier/flux-kustomization" - sigskusmod "github.com/giantswarm/kubectl-gs/v4/internal/gitops/filesystem/modifier/sigs-kustomization" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/key" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" - wctmpl "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/workload-cluster/templates" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/creator" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier" + fluxkusmod "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier/flux-kustomization" + sigskusmod "github.com/giantswarm/kubectl-gs/v5/internal/gitops/filesystem/modifier/sigs-kustomization" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/key" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" + wctmpl "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/workload-cluster/templates" ) // NewWorkloadCluster creates a new Workload Cluster directory diff --git a/internal/gitops/structure/workload-cluster/cluster_test.go b/internal/gitops/structure/workload-cluster/cluster_test.go index bd3bd596c..c512aaf2d 100644 --- a/internal/gitops/structure/workload-cluster/cluster_test.go +++ b/internal/gitops/structure/workload-cluster/cluster_test.go @@ -8,7 +8,7 @@ import ( "github.com/google/go-cmp/cmp" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) type FsObjectExpected struct { diff --git a/internal/gitops/structure/workload-cluster/templates/template.go b/internal/gitops/structure/workload-cluster/templates/template.go index 2edc94b6e..4758b0d46 100644 --- a/internal/gitops/structure/workload-cluster/templates/template.go +++ b/internal/gitops/structure/workload-cluster/templates/template.go @@ -3,7 +3,7 @@ package workcluster import ( _ "embed" - "github.com/giantswarm/kubectl-gs/v4/internal/gitops/structure/common" + "github.com/giantswarm/kubectl-gs/v5/internal/gitops/structure/common" ) //go:embed apps_kustomization.yaml.tmpl diff --git a/internal/key/key.go b/internal/key/key.go index 38b23b6a6..400f64640 100644 --- a/internal/key/key.go +++ b/internal/key/key.go @@ -19,7 +19,7 @@ import ( runtimeclient "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/yaml" - "github.com/giantswarm/kubectl-gs/v4/pkg/normalize" + "github.com/giantswarm/kubectl-gs/v5/pkg/normalize" ) const ( diff --git a/main.go b/main.go index 45bd9ce15..c097ea622 100644 --- a/main.go +++ b/main.go @@ -12,8 +12,8 @@ import ( "github.com/spf13/afero" "github.com/spf13/cobra" - "github.com/giantswarm/kubectl-gs/v4/cmd" - "github.com/giantswarm/kubectl-gs/v4/pkg/errorprinter" + "github.com/giantswarm/kubectl-gs/v5/cmd" + "github.com/giantswarm/kubectl-gs/v5/pkg/errorprinter" _ "k8s.io/client-go/plugin/pkg/client/auth/oidc" ) diff --git a/pkg/app/service.go b/pkg/app/service.go index 43f41e845..e0e649ea1 100644 --- a/pkg/app/service.go +++ b/pkg/app/service.go @@ -7,9 +7,9 @@ import ( "github.com/giantswarm/micrologger" "sigs.k8s.io/controller-runtime/pkg/client" - appdata "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/app" - catalogdata "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/catalog" - "github.com/giantswarm/kubectl-gs/v4/pkg/helmbinary" + appdata "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/app" + catalogdata "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/catalog" + "github.com/giantswarm/kubectl-gs/v5/pkg/helmbinary" ) var _ Interface = &Service{} diff --git a/pkg/app/validate.go b/pkg/app/validate.go index e0a2d6709..615d72467 100644 --- a/pkg/app/validate.go +++ b/pkg/app/validate.go @@ -12,10 +12,10 @@ import ( "github.com/xeipuuv/gojsonschema" "sigs.k8s.io/yaml" - "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/app" - appdata "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/app" - catalogdata "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/catalog" - "github.com/giantswarm/kubectl-gs/v4/pkg/helmbinary" + "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/app" + appdata "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/app" + catalogdata "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/catalog" + "github.com/giantswarm/kubectl-gs/v5/pkg/helmbinary" ) const ( diff --git a/pkg/commonconfig/commonconfig.go b/pkg/commonconfig/commonconfig.go index 6f6202be7..0f1004992 100644 --- a/pkg/commonconfig/commonconfig.go +++ b/pkg/commonconfig/commonconfig.go @@ -11,9 +11,9 @@ import ( "k8s.io/cli-runtime/pkg/genericclioptions" "k8s.io/client-go/tools/clientcmd" - "github.com/giantswarm/kubectl-gs/v4/internal/key" - "github.com/giantswarm/kubectl-gs/v4/pkg/installation" - "github.com/giantswarm/kubectl-gs/v4/pkg/scheme" + "github.com/giantswarm/kubectl-gs/v5/internal/key" + "github.com/giantswarm/kubectl-gs/v5/pkg/installation" + "github.com/giantswarm/kubectl-gs/v5/pkg/scheme" ) const ( diff --git a/pkg/commonconfig/commonconfig_test.go b/pkg/commonconfig/commonconfig_test.go index 8e01f0063..afe3ddec3 100644 --- a/pkg/commonconfig/commonconfig_test.go +++ b/pkg/commonconfig/commonconfig_test.go @@ -9,7 +9,7 @@ import ( "k8s.io/cli-runtime/pkg/genericclioptions" - "github.com/giantswarm/kubectl-gs/v4/internal/key" + "github.com/giantswarm/kubectl-gs/v5/internal/key" ) func TestCommonConfig_GetProviderFromInstallation(t *testing.T) { diff --git a/pkg/data/domain/app/service.go b/pkg/data/domain/app/service.go index 409b922b7..2f388c18f 100644 --- a/pkg/data/domain/app/service.go +++ b/pkg/data/domain/app/service.go @@ -17,7 +17,7 @@ import ( "k8s.io/apimachinery/pkg/labels" "sigs.k8s.io/controller-runtime/pkg/client" - catalogdata "github.com/giantswarm/kubectl-gs/v4/pkg/data/domain/catalog" + catalogdata "github.com/giantswarm/kubectl-gs/v5/pkg/data/domain/catalog" ) var _ Interface = &Service{} diff --git a/pkg/data/domain/cluster/common.go b/pkg/data/domain/cluster/common.go index 47facc215..a3ae256b9 100644 --- a/pkg/data/domain/cluster/common.go +++ b/pkg/data/domain/cluster/common.go @@ -8,7 +8,7 @@ import ( "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/client" - "github.com/giantswarm/kubectl-gs/v4/internal/key" + "github.com/giantswarm/kubectl-gs/v5/internal/key" ) func (s *Service) Get(ctx context.Context, options GetOptions) (Resource, error) { diff --git a/pkg/data/domain/nodepool/common.go b/pkg/data/domain/nodepool/common.go index 9f575aee9..9f42c1090 100644 --- a/pkg/data/domain/nodepool/common.go +++ b/pkg/data/domain/nodepool/common.go @@ -5,7 +5,7 @@ import ( "github.com/giantswarm/microerror" - "github.com/giantswarm/kubectl-gs/v4/internal/key" + "github.com/giantswarm/kubectl-gs/v5/internal/key" ) func (s *Service) Get(ctx context.Context, options GetOptions) (Resource, error) { diff --git a/pkg/errorprinter/errorprinter_test.go b/pkg/errorprinter/errorprinter_test.go index c96534d7e..b72adc94f 100644 --- a/pkg/errorprinter/errorprinter_test.go +++ b/pkg/errorprinter/errorprinter_test.go @@ -9,7 +9,7 @@ import ( "github.com/giantswarm/microerror" "github.com/google/go-cmp/cmp" - "github.com/giantswarm/kubectl-gs/v4/test/goldenfile" + "github.com/giantswarm/kubectl-gs/v5/test/goldenfile" ) var update = goflag.Bool("update", false, "update .golden reference test files") diff --git a/pkg/graphql/client_test.go b/pkg/graphql/client_test.go index 0902b3f0c..fe7182d28 100644 --- a/pkg/graphql/client_test.go +++ b/pkg/graphql/client_test.go @@ -12,7 +12,7 @@ import ( "github.com/google/go-cmp/cmp" "github.com/pkg/errors" - "github.com/giantswarm/kubectl-gs/v4/test/goldenfile" + "github.com/giantswarm/kubectl-gs/v5/test/goldenfile" ) var update = flag.Bool("update", false, "update .golden reference test files") diff --git a/pkg/installation/info.go b/pkg/installation/info.go index 39fd0c9a6..b3a9cceb9 100644 --- a/pkg/installation/info.go +++ b/pkg/installation/info.go @@ -5,7 +5,7 @@ import ( "github.com/giantswarm/microerror" - "github.com/giantswarm/kubectl-gs/v4/pkg/graphql" + "github.com/giantswarm/kubectl-gs/v5/pkg/graphql" ) const infoQuery = ` diff --git a/pkg/installation/info_test.go b/pkg/installation/info_test.go index 323d5b6ca..89d19bd09 100644 --- a/pkg/installation/info_test.go +++ b/pkg/installation/info_test.go @@ -10,7 +10,7 @@ import ( "github.com/google/go-cmp/cmp" "github.com/pkg/errors" - "github.com/giantswarm/kubectl-gs/v4/pkg/graphql" + "github.com/giantswarm/kubectl-gs/v5/pkg/graphql" ) func Test_getInstallationInfo(t *testing.T) { diff --git a/pkg/installation/installation.go b/pkg/installation/installation.go index f32030736..5aeb8b572 100644 --- a/pkg/installation/installation.go +++ b/pkg/installation/installation.go @@ -8,7 +8,7 @@ import ( "github.com/giantswarm/microerror" - "github.com/giantswarm/kubectl-gs/v4/pkg/graphql" + "github.com/giantswarm/kubectl-gs/v5/pkg/graphql" ) const ( diff --git a/pkg/labels/labels.go b/pkg/labels/labels.go index 7b4a6c4ff..84fd6eb59 100644 --- a/pkg/labels/labels.go +++ b/pkg/labels/labels.go @@ -7,7 +7,7 @@ import ( "github.com/giantswarm/microerror" "k8s.io/apimachinery/pkg/util/validation" - "github.com/giantswarm/kubectl-gs/v4/internal/label" + "github.com/giantswarm/kubectl-gs/v5/internal/label" ) // Logic partially lifted from https://github.com/kubernetes/kubectl/blob/445ad13/pkg/cmd/label/label.go#L400-L425 diff --git a/pkg/middleware/renewtoken/renewtoken.go b/pkg/middleware/renewtoken/renewtoken.go index e10b7ac06..dbb65d1e7 100644 --- a/pkg/middleware/renewtoken/renewtoken.go +++ b/pkg/middleware/renewtoken/renewtoken.go @@ -10,9 +10,9 @@ import ( "k8s.io/cli-runtime/pkg/genericclioptions" "k8s.io/client-go/tools/clientcmd" - "github.com/giantswarm/kubectl-gs/v4/pkg/kubeconfig" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware" - "github.com/giantswarm/kubectl-gs/v4/pkg/oidc" + "github.com/giantswarm/kubectl-gs/v5/pkg/kubeconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware" + "github.com/giantswarm/kubectl-gs/v5/pkg/oidc" ) const ( diff --git a/pkg/middleware/renewtoken/renewtoken_test.go b/pkg/middleware/renewtoken/renewtoken_test.go index 74cbc334b..27466f455 100644 --- a/pkg/middleware/renewtoken/renewtoken_test.go +++ b/pkg/middleware/renewtoken/renewtoken_test.go @@ -23,8 +23,8 @@ import ( clientcmdapi "k8s.io/client-go/tools/clientcmd/api" "k8s.io/utils/ptr" - "github.com/giantswarm/kubectl-gs/v4/pkg/middleware" - "github.com/giantswarm/kubectl-gs/v4/test/kubeconfig" + "github.com/giantswarm/kubectl-gs/v5/pkg/middleware" + "github.com/giantswarm/kubectl-gs/v5/test/kubeconfig" ) const ( diff --git a/pkg/oidc/device_auth.go b/pkg/oidc/device_auth.go index d8a918d6c..77187cddd 100644 --- a/pkg/oidc/device_auth.go +++ b/pkg/oidc/device_auth.go @@ -13,7 +13,7 @@ import ( "github.com/giantswarm/microerror" - "github.com/giantswarm/kubectl-gs/v4/pkg/installation" + "github.com/giantswarm/kubectl-gs/v5/pkg/installation" ) const ( diff --git a/pkg/output/nameprinter_test.go b/pkg/output/nameprinter_test.go index 13090ebec..2f48cd439 100644 --- a/pkg/output/nameprinter_test.go +++ b/pkg/output/nameprinter_test.go @@ -10,7 +10,7 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" - "github.com/giantswarm/kubectl-gs/v4/test/goldenfile" + "github.com/giantswarm/kubectl-gs/v5/test/goldenfile" ) var update = flag.Bool("update", false, "update .golden reference test files") diff --git a/pkg/project/project.go b/pkg/project/project.go index 6244a9a50..a949fa086 100644 --- a/pkg/project/project.go +++ b/pkg/project/project.go @@ -5,7 +5,7 @@ var ( gitSHA = "n/a" name = "kubectl-gs" source = "https://github.com/giantswarm/kubectl-gs" - version = "3.2.1-dev" + version = "4.0.0" ) func Description() string { diff --git a/pkg/template/app/app.go b/pkg/template/app/app.go index 6bd4fbb3d..40c3168ab 100644 --- a/pkg/template/app/app.go +++ b/pkg/template/app/app.go @@ -12,7 +12,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/yaml" - "github.com/giantswarm/kubectl-gs/v4/internal/key" + "github.com/giantswarm/kubectl-gs/v5/internal/key" ) type Config struct { diff --git a/pkg/template/app/app_test.go b/pkg/template/app/app_test.go index 537523c4e..eca85146c 100644 --- a/pkg/template/app/app_test.go +++ b/pkg/template/app/app_test.go @@ -8,7 +8,7 @@ import ( "github.com/google/go-cmp/cmp" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/giantswarm/kubectl-gs/v4/test/goldenfile" + "github.com/giantswarm/kubectl-gs/v5/test/goldenfile" ) func Test_NewAppCR(t *testing.T) { diff --git a/test/kubeclient/kubeclient.go b/test/kubeclient/kubeclient.go index 5b2bfc251..445daee0a 100644 --- a/test/kubeclient/kubeclient.go +++ b/test/kubeclient/kubeclient.go @@ -14,7 +14,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/client/fake" - "github.com/giantswarm/kubectl-gs/v4/pkg/scheme" + "github.com/giantswarm/kubectl-gs/v5/pkg/scheme" ) type fakeK8sClient struct { diff --git a/test/oidc/mock-oidc-server.go b/test/oidc/mock-oidc-server.go index d21754b11..832c85568 100644 --- a/test/oidc/mock-oidc-server.go +++ b/test/oidc/mock-oidc-server.go @@ -14,7 +14,7 @@ import ( "github.com/golang-jwt/jwt/v5" "gopkg.in/square/go-jose.v2" - "github.com/giantswarm/kubectl-gs/v4/pkg/oidc" + "github.com/giantswarm/kubectl-gs/v5/pkg/oidc" ) type MockOidcServerConfig struct {