diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 5bb4b6e0c..7256958dc 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -18,7 +18,7 @@ on: env: GO_VERSION: '1.23' - REGISTRY_REPO: 'oci://ghcr.io/mirantis/hmc/charts-ci' + REGISTRY_REPO: 'oci://ghcr.io/k0rdent/kcm/charts-ci' jobs: build: @@ -77,11 +77,11 @@ jobs: uses: docker/build-push-action@v6 with: build-args: | - LD_FLAGS=-s -w -X github.com/Mirantis/hmc/internal/build.Version=${{ steps.vars.outputs.version }} + LD_FLAGS=-s -w -X github.com/K0rdent/kcm/internal/build.Version=${{ steps.vars.outputs.version }} context: . platforms: linux/amd64 tags: | - ghcr.io/mirantis/hmc/controller-ci:${{ steps.vars.outputs.version }} + ghcr.io/k0rdent/kcm/controller-ci:${{ steps.vars.outputs.version }} push: true cache-from: type=gha cache-to: type=gha,mode=max @@ -113,7 +113,7 @@ jobs: env: GINKGO_LABEL_FILTER: 'controller' CLUSTER_DEPLOYMENT_NAME: ${{ needs.build.outputs.clustername }} - IMG: 'ghcr.io/mirantis/hmc/controller-ci:${{ needs.build.outputs.version }}' + IMG: 'ghcr.io/k0rdent/kcm/controller-ci:${{ needs.build.outputs.version }}' VERSION: ${{ needs.build.outputs.version }} run: | make test-e2e @@ -163,7 +163,7 @@ jobs: env: GINKGO_LABEL_FILTER: 'provider:cloud' CLUSTER_DEPLOYMENT_NAME: ${{ needs.build.outputs.clustername }} - IMG: 'ghcr.io/mirantis/hmc/controller-ci:${{ needs.build.outputs.version }}' + IMG: 'ghcr.io/k0rdent/kcm/controller-ci:${{ needs.build.outputs.version }}' VERSION: ${{ needs.build.outputs.version }} run: | make test-e2e @@ -216,7 +216,7 @@ jobs: env: GINKGO_LABEL_FILTER: 'provider:onprem' CLUSTER_DEPLOYMENT_NAME: ${{ needs.build.outputs.clustername }} - IMG: 'ghcr.io/mirantis/hmc/controller-ci:${{ needs.build.outputs.version }}' + IMG: 'ghcr.io/k0rdent/kcm/controller-ci:${{ needs.build.outputs.version }}' VERSION: ${{ needs.build.outputs.version }} run: | make test-e2e diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 25cf84dd4..39ac3aede 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,11 +32,11 @@ jobs: uses: docker/build-push-action@v6 with: build-args: | - LD_FLAGS=-s -w -X github.com/Mirantis/hmc/internal/build.Version=${{ env.VERSION }} -X github.com/Mirantis/hmc/internal/telemetry.segmentToken=${{ secrets.SEGMENT_TOKEN }} + LD_FLAGS=-s -w -X github.com/K0rdent/kcm/internal/build.Version=${{ env.VERSION }} -X github.com/K0rdent/kcm/internal/telemetry.segmentToken=${{ secrets.SEGMENT_TOKEN }} context: . platforms: linux/amd64,linux/arm64 tags: | - ghcr.io/mirantis/hmc/controller:${{ env.VERSION }} + ghcr.io/k0rdent/kcm/controller:${{ env.VERSION }} push: true cache-from: type=gha cache-to: type=gha,mode=max @@ -44,7 +44,7 @@ jobs: - name: Prepare HMC chart run: VERSION="${{ env.VERSION }}" make hmc-chart-release - name: Push charts to GHCR - run: REGISTRY_REPO="oci://ghcr.io/mirantis/hmc/charts" make helm-push + run: REGISTRY_REPO="oci://ghcr.io/k0rdent/kcm/charts" make helm-push - name: Prepare manifests run: make hmc-dist-release @@ -61,7 +61,7 @@ jobs: - name: Build airgap bundle env: - IMG: 'ghcr.io/mirantis/hmc/controller:${{ env.VERSION }}' + IMG: 'ghcr.io/k0rdent/kcm/controller:${{ env.VERSION }}' run: | make airgap-package diff --git a/.golangci.yml b/.golangci.yml index ee80ea33b..4330eae8b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -132,7 +132,7 @@ linters-settings: sections: - standard # Standard section: captures all standard packages. - default # Default section: contains all imports that could not be matched to another section type. - - prefix(github.com/Mirantis/hmc) # Custom section: groups all imports with the specified Prefix. + - prefix(github.com/K0rdent/kcm) # Custom section: groups all imports with the specified Prefix. skip-generated: false gofmt: # Apply the rewrite rules to the source before reformatting. diff --git a/Makefile b/Makefile index 230fbd881..b6e5be649 100644 --- a/Makefile +++ b/Makefile @@ -176,8 +176,8 @@ package-chart-%: lint-chart-% ##@ Build LD_FLAGS?= -s -w -LD_FLAGS += -X github.com/Mirantis/hmc/internal/build.Version=$(VERSION) -LD_FLAGS += -X github.com/Mirantis/hmc/internal/telemetry.segmentToken=$(SEGMENT_TOKEN) +LD_FLAGS += -X github.com/K0rdent/kcm/internal/build.Version=$(VERSION) +LD_FLAGS += -X github.com/K0rdent/kcm/internal/telemetry.segmentToken=$(SEGMENT_TOKEN) .PHONY: build build: generate-all ## Build manager binary. diff --git a/PROJECT b/PROJECT index a38ffedb6..2dc3e36ca 100644 --- a/PROJECT +++ b/PROJECT @@ -6,7 +6,7 @@ domain: hmc.mirantis.com layout: - go.kubebuilder.io/v4 projectName: hmc -repo: github.com/Mirantis/hmc +repo: github.com/K0rdent/kcm resources: - api: crdVersion: v1 @@ -15,7 +15,7 @@ resources: domain: hmc.mirantis.com group: hmc.mirantis.com kind: ClusterDeployment - path: github.com/Mirantis/hmc/api/v1alpha1 + path: github.com/K0rdent/kcm/api/v1alpha1 version: v1alpha1 - api: crdVersion: v1 @@ -24,14 +24,14 @@ resources: domain: hmc.mirantis.com group: hmc.mirantis.com kind: Management - path: github.com/Mirantis/hmc/api/v1alpha1 + path: github.com/K0rdent/kcm/api/v1alpha1 version: v1alpha1 - api: crdVersion: v1 domain: hmc.mirantis.com group: hmc.mirantis.com kind: Release - path: github.com/Mirantis/hmc/api/v1alpha1 + path: github.com/K0rdent/kcm/api/v1alpha1 version: v1alpha1 webhooks: validation: true @@ -43,7 +43,7 @@ resources: domain: hmc.mirantis.com group: hmc.mirantis.com kind: ClusterTemplate - path: github.com/Mirantis/hmc/api/v1alpha1 + path: github.com/K0rdent/kcm/api/v1alpha1 version: v1alpha1 - api: crdVersion: v1 @@ -52,7 +52,7 @@ resources: domain: hmc.mirantis.com group: hmc.mirantis.com kind: ProviderTemplate - path: github.com/Mirantis/hmc/api/v1alpha1 + path: github.com/K0rdent/kcm/api/v1alpha1 version: v1alpha1 - api: crdVersion: v1 @@ -61,7 +61,7 @@ resources: domain: hmc.mirantis.com group: hmc.mirantis.com kind: ServiceTemplate - path: github.com/Mirantis/hmc/api/v1alpha1 + path: github.com/K0rdent/kcm/api/v1alpha1 version: v1alpha1 - api: crdVersion: v1 @@ -70,7 +70,7 @@ resources: domain: hmc.mirantis.com group: hmc.mirantis.com kind: AccessManagement - path: github.com/Mirantis/hmc/api/v1alpha1 + path: github.com/K0rdent/kcm/api/v1alpha1 version: v1alpha1 - api: crdVersion: v1 @@ -78,14 +78,14 @@ resources: domain: hmc.mirantis.com group: hmc.mirantis.com kind: ClusterTemplateChain - path: github.com/Mirantis/hmc/api/v1alpha1 + path: github.com/K0rdent/kcm/api/v1alpha1 version: v1alpha1 - api: crdVersion: v1 domain: hmc.mirantis.com group: hmc.mirantis.com kind: ServiceTemplateChain - path: github.com/Mirantis/hmc/api/v1alpha1 + path: github.com/K0rdent/kcm/api/v1alpha1 version: v1alpha1 - api: crdVersion: v1 @@ -94,7 +94,7 @@ resources: domain: hmc.mirantis.com group: hmc.mirantis.com kind: Credential - path: github.com/Mirantis/hmc/api/v1alpha1 + path: github.com/K0rdent/kcm/api/v1alpha1 version: v1alpha1 - api: crdVersion: v1 @@ -102,7 +102,7 @@ resources: domain: hmc.mirantis.com group: hmc.mirantis.com kind: MultiClusterService - path: github.com/Mirantis/hmc/api/v1alpha1 + path: github.com/K0rdent/kcm/api/v1alpha1 version: v1alpha1 - api: crdVersion: v1 @@ -111,6 +111,6 @@ resources: domain: hmc.mirantis.com group: hmc.mirantis.com kind: Backup - path: github.com/Mirantis/hmc/api/v1alpha1 + path: github.com/K0rdent/kcm/api/v1alpha1 version: v1alpha1 version: "3" diff --git a/README.md b/README.md index 537b0e84e..8a8f0e768 100644 --- a/README.md +++ b/README.md @@ -20,13 +20,13 @@ Detailed documentation is available in [Project 0x2A Docs](https://mirantis.gith ### TL;DR ```bash -kubectl apply -f https://github.com/Mirantis/hmc/releases/download/v0.0.5/install.yaml +kubectl apply -f https://github.com/K0rdent/kcm/releases/download/v0.0.5/install.yaml ``` or install using `helm` ```bash -helm install hmc oci://ghcr.io/mirantis/hmc/charts/hmc --version 0.0.5 -n hmc-system --create-namespace +helm install hmc oci://ghcr.io/k0rdent/kcm/charts/hmc --version 0.0.5 -n hmc-system --create-namespace ``` Then follow the [Deploy a cluster deployment](#deploy-a-cluster-deployment) guide to @@ -63,7 +63,7 @@ see [Documentation](#documentation) ``` export KUBECONFIG= -helm install hmc oci://ghcr.io/mirantis/hmc/charts/hmc --version -n hmc-system --create-namespace +helm install hmc oci://ghcr.io/k0rdent/kcm/charts/hmc --version -n hmc-system --create-namespace ``` #### Extended Management configuration diff --git a/cmd/main.go b/cmd/main.go index 84c9944cb..5a24c834b 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -36,12 +36,12 @@ import ( metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server" "sigs.k8s.io/controller-runtime/pkg/webhook" - hmcmirantiscomv1alpha1 "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/internal/controller" - "github.com/Mirantis/hmc/internal/helm" - "github.com/Mirantis/hmc/internal/telemetry" - "github.com/Mirantis/hmc/internal/utils" - hmcwebhook "github.com/Mirantis/hmc/internal/webhook" + hmcmirantiscomv1alpha1 "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/internal/controller" + "github.com/K0rdent/kcm/internal/helm" + "github.com/K0rdent/kcm/internal/telemetry" + "github.com/K0rdent/kcm/internal/utils" + hmcwebhook "github.com/K0rdent/kcm/internal/webhook" ) var ( @@ -88,7 +88,7 @@ func main() { "If set the metrics endpoint is served securely") flag.BoolVar(&enableHTTP2, "enable-http2", false, "If set, HTTP/2 will be enabled for the metrics and webhook servers") - flag.StringVar(&defaultRegistryURL, "default-registry-url", "oci://ghcr.io/mirantis/hmc/charts", + flag.StringVar(&defaultRegistryURL, "default-registry-url", "oci://ghcr.io/k0rdent/kcm/charts", "The default registry to download Helm charts from, prefix with oci:// for OCI registries.") flag.StringVar(®istryCredentialsSecret, "registry-creds-secret", "", "Secret containing authentication credentials for the registry.") diff --git a/docs/dev.md b/docs/dev.md index 0823cc27a..0fddbc2b5 100644 --- a/docs/dev.md +++ b/docs/dev.md @@ -8,7 +8,7 @@ a managed cluster on AWS with k0s for testing. The kind cluster acts as manageme ### Clone HMC repository ```bash -git clone https://github.com/Mirantis/hmc.git && cd hmc +git clone https://github.com/K0rdent/kcm.git && cd hmc ``` ### Install required CLIs @@ -141,8 +141,8 @@ and hmc-controller image will need to exist on the registry, for example, using GHCR: ``` -IMG="ghcr.io/mirantis/hmc/controller-ci:v0.0.1-179-ga5bdf29" \ - REGISTRY_REPO="oci://ghcr.io/mirantis/hmc/charts-ci" \ +IMG="ghcr.io/k0rdent/kcm/controller-ci:v0.0.1-179-ga5bdf29" \ + REGISTRY_REPO="oci://ghcr.io/k0rdent/kcm/charts-ci" \ make test-e2e ``` @@ -244,7 +244,7 @@ to ensure the correctly tagged HMC controller image is present in the bundle prefix the `IMG` env var with the desired image, for example: ```bash -IMG="ghcr.io/mirantis/hmc:0.0.4" make airgap-package +IMG="ghcr.io/k0rdent/kcm:0.0.4" make airgap-package ``` Not setting an `IMG` var will use the default image name/tag generated by the diff --git a/go.mod b/go.mod index e22119cc6..6952b610d 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/Mirantis/hmc +module github.com/K0rdent/kcm go 1.23.0 diff --git a/internal/controller/accessmanagement_controller.go b/internal/controller/accessmanagement_controller.go index 7f0c53e2d..1f028e1b0 100644 --- a/internal/controller/accessmanagement_controller.go +++ b/internal/controller/accessmanagement_controller.go @@ -27,7 +27,7 @@ import ( ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" - hmc "github.com/Mirantis/hmc/api/v1alpha1" + hmc "github.com/K0rdent/kcm/api/v1alpha1" ) // AccessManagementReconciler reconciles an AccessManagement object diff --git a/internal/controller/accessmanagement_controller_test.go b/internal/controller/accessmanagement_controller_test.go index d53328e35..1f5d0d863 100644 --- a/internal/controller/accessmanagement_controller_test.go +++ b/internal/controller/accessmanagement_controller_test.go @@ -26,10 +26,10 @@ import ( crclient "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/reconcile" - hmc "github.com/Mirantis/hmc/api/v1alpha1" - am "github.com/Mirantis/hmc/test/objects/accessmanagement" - "github.com/Mirantis/hmc/test/objects/credential" - tc "github.com/Mirantis/hmc/test/objects/templatechain" + hmc "github.com/K0rdent/kcm/api/v1alpha1" + am "github.com/K0rdent/kcm/test/objects/accessmanagement" + "github.com/K0rdent/kcm/test/objects/credential" + tc "github.com/K0rdent/kcm/test/objects/templatechain" ) var _ = Describe("Template Management Controller", func() { diff --git a/internal/controller/backup_controller.go b/internal/controller/backup_controller.go index 3572b673a..6b87cd6a6 100644 --- a/internal/controller/backup_controller.go +++ b/internal/controller/backup_controller.go @@ -22,7 +22,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/log" - hmcmirantiscomv1alpha1 "github.com/Mirantis/hmc/api/v1alpha1" + hmcmirantiscomv1alpha1 "github.com/K0rdent/kcm/api/v1alpha1" ) // BackupReconciler reconciles a Backup object diff --git a/internal/controller/backup_controller_test.go b/internal/controller/backup_controller_test.go index 5fc61af7f..009c7e8b7 100644 --- a/internal/controller/backup_controller_test.go +++ b/internal/controller/backup_controller_test.go @@ -24,7 +24,7 @@ import ( "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/reconcile" - hmcmirantiscomv1alpha1 "github.com/Mirantis/hmc/api/v1alpha1" + hmcmirantiscomv1alpha1 "github.com/K0rdent/kcm/api/v1alpha1" ) var _ = Describe("Backup Controller", func() { diff --git a/internal/controller/clusterdeployment_controller.go b/internal/controller/clusterdeployment_controller.go index c6f02d4f8..e373e92de 100644 --- a/internal/controller/clusterdeployment_controller.go +++ b/internal/controller/clusterdeployment_controller.go @@ -47,12 +47,12 @@ import ( "sigs.k8s.io/controller-runtime/pkg/handler" "sigs.k8s.io/controller-runtime/pkg/predicate" - hmc "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/internal/credspropagation" - "github.com/Mirantis/hmc/internal/helm" - "github.com/Mirantis/hmc/internal/sveltos" - "github.com/Mirantis/hmc/internal/telemetry" - "github.com/Mirantis/hmc/internal/utils/status" + hmc "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/internal/credspropagation" + "github.com/K0rdent/kcm/internal/helm" + "github.com/K0rdent/kcm/internal/sveltos" + "github.com/K0rdent/kcm/internal/telemetry" + "github.com/K0rdent/kcm/internal/utils/status" ) const ( @@ -558,7 +558,7 @@ func (r *ClusterDeploymentReconciler) Delete(ctx context.Context, clusterDeploym // which prevents Sveltos objects from being removed from the management cluster. // It is detailed in https://github.com/projectsveltos/addon-controller/issues/732. // We may try to remove the explicit call to Delete once a fix for it has been merged. - // TODO(https://github.com/Mirantis/hmc/issues/526). + // TODO(https://github.com/K0rdent/kcm/issues/526). if err := sveltos.DeleteProfile(ctx, r.Client, clusterDeployment.Namespace, clusterDeployment.Name); err != nil { return ctrl.Result{}, err } diff --git a/internal/controller/clusterdeployment_controller_test.go b/internal/controller/clusterdeployment_controller_test.go index 4687c1591..bf6109a37 100644 --- a/internal/controller/clusterdeployment_controller_test.go +++ b/internal/controller/clusterdeployment_controller_test.go @@ -30,7 +30,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/reconcile" - hmc "github.com/Mirantis/hmc/api/v1alpha1" + hmc "github.com/K0rdent/kcm/api/v1alpha1" ) var _ = Describe("ClusterDeployment Controller", func() { diff --git a/internal/controller/credential_controller.go b/internal/controller/credential_controller.go index 661d021f5..33e51dd26 100644 --- a/internal/controller/credential_controller.go +++ b/internal/controller/credential_controller.go @@ -27,7 +27,7 @@ import ( ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" - hmc "github.com/Mirantis/hmc/api/v1alpha1" + hmc "github.com/K0rdent/kcm/api/v1alpha1" ) const defaultSyncPeriod = 15 * time.Minute diff --git a/internal/controller/management_controller.go b/internal/controller/management_controller.go index 102cad860..01b527d28 100644 --- a/internal/controller/management_controller.go +++ b/internal/controller/management_controller.go @@ -40,11 +40,11 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" - hmc "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/internal/certmanager" - "github.com/Mirantis/hmc/internal/helm" - "github.com/Mirantis/hmc/internal/utils" - "github.com/Mirantis/hmc/internal/utils/status" + hmc "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/internal/certmanager" + "github.com/K0rdent/kcm/internal/helm" + "github.com/K0rdent/kcm/internal/utils" + "github.com/K0rdent/kcm/internal/utils/status" ) // ManagementReconciler reconciles a Management object diff --git a/internal/controller/management_controller_test.go b/internal/controller/management_controller_test.go index 4f05de291..a78848989 100644 --- a/internal/controller/management_controller_test.go +++ b/internal/controller/management_controller_test.go @@ -34,8 +34,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/reconcile" - hmcmirantiscomv1alpha1 "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/internal/utils" + hmcmirantiscomv1alpha1 "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/internal/utils" ) var _ = Describe("Management Controller", func() { diff --git a/internal/controller/multiclusterservice_controller.go b/internal/controller/multiclusterservice_controller.go index 9ab6a7655..9b1fef14a 100644 --- a/internal/controller/multiclusterservice_controller.go +++ b/internal/controller/multiclusterservice_controller.go @@ -35,8 +35,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/handler" "sigs.k8s.io/controller-runtime/pkg/predicate" - hmc "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/internal/sveltos" + hmc "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/internal/sveltos" ) // MultiClusterServiceReconciler reconciles a MultiClusterService object diff --git a/internal/controller/multiclusterservice_controller_test.go b/internal/controller/multiclusterservice_controller_test.go index f3f7f9b79..ce492a4ab 100644 --- a/internal/controller/multiclusterservice_controller_test.go +++ b/internal/controller/multiclusterservice_controller_test.go @@ -30,7 +30,7 @@ import ( "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/reconcile" - hmc "github.com/Mirantis/hmc/api/v1alpha1" + hmc "github.com/K0rdent/kcm/api/v1alpha1" ) var _ = Describe("MultiClusterService Controller", func() { diff --git a/internal/controller/release_controller.go b/internal/controller/release_controller.go index be19aa876..5336cf00b 100644 --- a/internal/controller/release_controller.go +++ b/internal/controller/release_controller.go @@ -44,10 +44,10 @@ import ( "sigs.k8s.io/controller-runtime/pkg/predicate" "sigs.k8s.io/controller-runtime/pkg/source" - hmc "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/internal/build" - "github.com/Mirantis/hmc/internal/helm" - "github.com/Mirantis/hmc/internal/utils" + hmc "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/internal/build" + "github.com/K0rdent/kcm/internal/helm" + "github.com/K0rdent/kcm/internal/utils" ) // ReleaseReconciler reconciles a Template object diff --git a/internal/controller/suite_test.go b/internal/controller/suite_test.go index 1de9d3f6f..33a2bcf08 100644 --- a/internal/controller/suite_test.go +++ b/internal/controller/suite_test.go @@ -45,8 +45,8 @@ import ( metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server" "sigs.k8s.io/controller-runtime/pkg/webhook" - hmcmirantiscomv1alpha1 "github.com/Mirantis/hmc/api/v1alpha1" - hmcwebhook "github.com/Mirantis/hmc/internal/webhook" + hmcmirantiscomv1alpha1 "github.com/K0rdent/kcm/api/v1alpha1" + hmcwebhook "github.com/K0rdent/kcm/internal/webhook" ) // These tests use Ginkgo (BDD-style Go testing framework). Refer to diff --git a/internal/controller/template_controller.go b/internal/controller/template_controller.go index a4738b42d..d96405956 100644 --- a/internal/controller/template_controller.go +++ b/internal/controller/template_controller.go @@ -36,9 +36,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/handler" "sigs.k8s.io/controller-runtime/pkg/predicate" - hmc "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/internal/helm" - "github.com/Mirantis/hmc/internal/utils" + hmc "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/internal/helm" + "github.com/K0rdent/kcm/internal/utils" ) const defaultRequeueTime = 1 * time.Minute diff --git a/internal/controller/template_controller_test.go b/internal/controller/template_controller_test.go index c44f842de..28b4aabd0 100644 --- a/internal/controller/template_controller_test.go +++ b/internal/controller/template_controller_test.go @@ -30,7 +30,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/reconcile" - hmcmirantiscomv1alpha1 "github.com/Mirantis/hmc/api/v1alpha1" + hmcmirantiscomv1alpha1 "github.com/K0rdent/kcm/api/v1alpha1" ) var _ = Describe("Template Controller", func() { diff --git a/internal/controller/templatechain_controller.go b/internal/controller/templatechain_controller.go index 5d50207da..ccee4fdd0 100644 --- a/internal/controller/templatechain_controller.go +++ b/internal/controller/templatechain_controller.go @@ -25,8 +25,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" - hmc "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/internal/utils" + hmc "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/internal/utils" ) // TemplateChainReconciler reconciles a TemplateChain object diff --git a/internal/controller/templatechain_controller_test.go b/internal/controller/templatechain_controller_test.go index 33ab0ae2d..49cf12969 100644 --- a/internal/controller/templatechain_controller_test.go +++ b/internal/controller/templatechain_controller_test.go @@ -30,9 +30,9 @@ import ( crclient "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/reconcile" - hmcmirantiscomv1alpha1 "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/internal/utils" - "github.com/Mirantis/hmc/test/objects/template" + hmcmirantiscomv1alpha1 "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/internal/utils" + "github.com/K0rdent/kcm/test/objects/template" ) var _ = Describe("Template Chain Controller", func() { diff --git a/internal/credspropagation/common.go b/internal/credspropagation/common.go index 02bbf21eb..7d571cdb4 100644 --- a/internal/credspropagation/common.go +++ b/internal/credspropagation/common.go @@ -25,7 +25,7 @@ import ( "k8s.io/client-go/tools/clientcmd" "sigs.k8s.io/controller-runtime/pkg/client" - hmc "github.com/Mirantis/hmc/api/v1alpha1" + hmc "github.com/K0rdent/kcm/api/v1alpha1" ) type PropagationCfg struct { diff --git a/internal/credspropagation/vsphere.go b/internal/credspropagation/vsphere.go index a4cf3b2f5..bf0cf4dde 100644 --- a/internal/credspropagation/vsphere.go +++ b/internal/credspropagation/vsphere.go @@ -27,7 +27,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/yaml" - hmc "github.com/Mirantis/hmc/api/v1alpha1" + hmc "github.com/K0rdent/kcm/api/v1alpha1" ) func PropagateVSphereSecrets(ctx context.Context, cfg *PropagationCfg) error { diff --git a/internal/helm/release.go b/internal/helm/release.go index c30f51e7f..36e1835f9 100644 --- a/internal/helm/release.go +++ b/internal/helm/release.go @@ -26,7 +26,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" - hmc "github.com/Mirantis/hmc/api/v1alpha1" + hmc "github.com/K0rdent/kcm/api/v1alpha1" ) const ( diff --git a/internal/helm/repo.go b/internal/helm/repo.go index e6756a9da..69abc7a7b 100644 --- a/internal/helm/repo.go +++ b/internal/helm/repo.go @@ -25,7 +25,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" - hmc "github.com/Mirantis/hmc/api/v1alpha1" + hmc "github.com/K0rdent/kcm/api/v1alpha1" ) type DefaultRegistryConfig struct { diff --git a/internal/sveltos/profile.go b/internal/sveltos/profile.go index 776200c15..14e777e39 100644 --- a/internal/sveltos/profile.go +++ b/internal/sveltos/profile.go @@ -28,8 +28,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" - hmc "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/internal/utils" + hmc "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/internal/utils" ) type ReconcileProfileOpts struct { diff --git a/internal/sveltos/status.go b/internal/sveltos/status.go index 61bddfe3a..302cbc375 100644 --- a/internal/sveltos/status.go +++ b/internal/sveltos/status.go @@ -22,7 +22,7 @@ import ( apimeta "k8s.io/apimachinery/pkg/api/meta" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - hmc "github.com/Mirantis/hmc/api/v1alpha1" + hmc "github.com/K0rdent/kcm/api/v1alpha1" ) // GetStatusConditions returns a list of conditions from provided ClusterSummary. diff --git a/internal/telemetry/event.go b/internal/telemetry/event.go index 3894a08d0..cb77d4e7c 100644 --- a/internal/telemetry/event.go +++ b/internal/telemetry/event.go @@ -17,7 +17,7 @@ package telemetry import ( "github.com/segmentio/analytics-go" - "github.com/Mirantis/hmc/internal/build" + "github.com/K0rdent/kcm/internal/build" ) const ( diff --git a/internal/telemetry/tracker.go b/internal/telemetry/tracker.go index 635ecd341..18b285ca9 100644 --- a/internal/telemetry/tracker.go +++ b/internal/telemetry/tracker.go @@ -23,7 +23,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/log" - "github.com/Mirantis/hmc/api/v1alpha1" + "github.com/K0rdent/kcm/api/v1alpha1" ) type Tracker struct { diff --git a/internal/webhook/accessmanagement_webhook.go b/internal/webhook/accessmanagement_webhook.go index 70178f351..a0569e9d0 100644 --- a/internal/webhook/accessmanagement_webhook.go +++ b/internal/webhook/accessmanagement_webhook.go @@ -26,7 +26,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/webhook" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - "github.com/Mirantis/hmc/api/v1alpha1" + "github.com/K0rdent/kcm/api/v1alpha1" ) var errAccessManagementDeletionForbidden = errors.New("AccessManagement deletion is forbidden") diff --git a/internal/webhook/accessmanagement_webhook_test.go b/internal/webhook/accessmanagement_webhook_test.go index 67b420992..1d4d634e0 100644 --- a/internal/webhook/accessmanagement_webhook_test.go +++ b/internal/webhook/accessmanagement_webhook_test.go @@ -24,11 +24,11 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client/fake" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/internal/utils" - am "github.com/Mirantis/hmc/test/objects/accessmanagement" - "github.com/Mirantis/hmc/test/objects/management" - "github.com/Mirantis/hmc/test/scheme" + "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/internal/utils" + am "github.com/K0rdent/kcm/test/objects/accessmanagement" + "github.com/K0rdent/kcm/test/objects/management" + "github.com/K0rdent/kcm/test/scheme" ) func TestAccessManagementValidateCreate(t *testing.T) { diff --git a/internal/webhook/clusterdeployment_webhook.go b/internal/webhook/clusterdeployment_webhook.go index 2ddff3c5c..2dadeefa6 100644 --- a/internal/webhook/clusterdeployment_webhook.go +++ b/internal/webhook/clusterdeployment_webhook.go @@ -30,7 +30,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/webhook" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - hmcv1alpha1 "github.com/Mirantis/hmc/api/v1alpha1" + hmcv1alpha1 "github.com/K0rdent/kcm/api/v1alpha1" ) type ClusterDeploymentValidator struct { diff --git a/internal/webhook/clusterdeployment_webhook_test.go b/internal/webhook/clusterdeployment_webhook_test.go index 993f35390..a66cd9b8c 100644 --- a/internal/webhook/clusterdeployment_webhook_test.go +++ b/internal/webhook/clusterdeployment_webhook_test.go @@ -26,12 +26,12 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client/fake" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/test/objects/clusterdeployment" - "github.com/Mirantis/hmc/test/objects/credential" - "github.com/Mirantis/hmc/test/objects/management" - "github.com/Mirantis/hmc/test/objects/template" - "github.com/Mirantis/hmc/test/scheme" + "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/test/objects/clusterdeployment" + "github.com/K0rdent/kcm/test/objects/credential" + "github.com/K0rdent/kcm/test/objects/management" + "github.com/K0rdent/kcm/test/objects/template" + "github.com/K0rdent/kcm/test/scheme" ) var ( diff --git a/internal/webhook/management_webhook.go b/internal/webhook/management_webhook.go index 51a5764a8..d241bb6c7 100644 --- a/internal/webhook/management_webhook.go +++ b/internal/webhook/management_webhook.go @@ -29,7 +29,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/webhook" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - hmcv1alpha1 "github.com/Mirantis/hmc/api/v1alpha1" + hmcv1alpha1 "github.com/K0rdent/kcm/api/v1alpha1" ) type ManagementValidator struct { diff --git a/internal/webhook/management_webhook_test.go b/internal/webhook/management_webhook_test.go index b8ce3d029..4fd99cd6e 100644 --- a/internal/webhook/management_webhook_test.go +++ b/internal/webhook/management_webhook_test.go @@ -25,12 +25,12 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client/fake" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/test/objects/clusterdeployment" - "github.com/Mirantis/hmc/test/objects/management" - "github.com/Mirantis/hmc/test/objects/release" - "github.com/Mirantis/hmc/test/objects/template" - "github.com/Mirantis/hmc/test/scheme" + "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/test/objects/clusterdeployment" + "github.com/K0rdent/kcm/test/objects/management" + "github.com/K0rdent/kcm/test/objects/release" + "github.com/K0rdent/kcm/test/objects/template" + "github.com/K0rdent/kcm/test/scheme" ) func TestManagementValidateCreate(t *testing.T) { diff --git a/internal/webhook/multiclusterservice_webhook.go b/internal/webhook/multiclusterservice_webhook.go index fd84a77b0..f41a9757c 100644 --- a/internal/webhook/multiclusterservice_webhook.go +++ b/internal/webhook/multiclusterservice_webhook.go @@ -26,7 +26,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/webhook" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - "github.com/Mirantis/hmc/api/v1alpha1" + "github.com/K0rdent/kcm/api/v1alpha1" ) type MultiClusterServiceValidator struct { diff --git a/internal/webhook/multiclusterservice_webhook_test.go b/internal/webhook/multiclusterservice_webhook_test.go index 38905431c..31421b5e9 100644 --- a/internal/webhook/multiclusterservice_webhook_test.go +++ b/internal/webhook/multiclusterservice_webhook_test.go @@ -25,10 +25,10 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client/fake" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/test/objects/multiclusterservice" - "github.com/Mirantis/hmc/test/objects/template" - "github.com/Mirantis/hmc/test/scheme" + "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/test/objects/multiclusterservice" + "github.com/K0rdent/kcm/test/objects/template" + "github.com/K0rdent/kcm/test/scheme" ) const ( diff --git a/internal/webhook/release_webhook.go b/internal/webhook/release_webhook.go index b0a0013a0..8154ad67b 100644 --- a/internal/webhook/release_webhook.go +++ b/internal/webhook/release_webhook.go @@ -28,7 +28,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/webhook" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - hmcv1alpha1 "github.com/Mirantis/hmc/api/v1alpha1" + hmcv1alpha1 "github.com/K0rdent/kcm/api/v1alpha1" ) var errManagementIsNotFound = errors.New("no Management object found") diff --git a/internal/webhook/release_webhook_test.go b/internal/webhook/release_webhook_test.go index 7982ff2a9..b50539577 100644 --- a/internal/webhook/release_webhook_test.go +++ b/internal/webhook/release_webhook_test.go @@ -25,10 +25,10 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client/fake" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/test/objects/management" - "github.com/Mirantis/hmc/test/objects/release" - "github.com/Mirantis/hmc/test/scheme" + "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/test/objects/management" + "github.com/K0rdent/kcm/test/objects/release" + "github.com/K0rdent/kcm/test/scheme" ) func TestReleaseValidateDelete(t *testing.T) { diff --git a/internal/webhook/template_webhook.go b/internal/webhook/template_webhook.go index 03dd096f8..4987ac55b 100644 --- a/internal/webhook/template_webhook.go +++ b/internal/webhook/template_webhook.go @@ -28,8 +28,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/webhook" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/internal/helm" + "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/internal/helm" ) var errTemplateDeletionForbidden = errors.New("template deletion is forbidden") diff --git a/internal/webhook/template_webhook_test.go b/internal/webhook/template_webhook_test.go index d64bf7f6c..02f36442d 100644 --- a/internal/webhook/template_webhook_test.go +++ b/internal/webhook/template_webhook_test.go @@ -25,14 +25,14 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client/fake" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/test/objects/clusterdeployment" - "github.com/Mirantis/hmc/test/objects/management" - "github.com/Mirantis/hmc/test/objects/multiclusterservice" - "github.com/Mirantis/hmc/test/objects/release" - "github.com/Mirantis/hmc/test/objects/template" - tc "github.com/Mirantis/hmc/test/objects/templatechain" - "github.com/Mirantis/hmc/test/scheme" + "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/test/objects/clusterdeployment" + "github.com/K0rdent/kcm/test/objects/management" + "github.com/K0rdent/kcm/test/objects/multiclusterservice" + "github.com/K0rdent/kcm/test/objects/release" + "github.com/K0rdent/kcm/test/objects/template" + tc "github.com/K0rdent/kcm/test/objects/templatechain" + "github.com/K0rdent/kcm/test/scheme" ) func TestProviderTemplateValidateDelete(t *testing.T) { diff --git a/internal/webhook/templatechain_webhook.go b/internal/webhook/templatechain_webhook.go index f202780dc..572bb1bb3 100644 --- a/internal/webhook/templatechain_webhook.go +++ b/internal/webhook/templatechain_webhook.go @@ -26,7 +26,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/webhook" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - "github.com/Mirantis/hmc/api/v1alpha1" + "github.com/K0rdent/kcm/api/v1alpha1" ) var errInvalidTemplateChainSpec = errors.New("the template chain spec is invalid") diff --git a/internal/webhook/templatechain_webhook_test.go b/internal/webhook/templatechain_webhook_test.go index 7a8feec97..06da07144 100644 --- a/internal/webhook/templatechain_webhook_test.go +++ b/internal/webhook/templatechain_webhook_test.go @@ -23,9 +23,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client/fake" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - "github.com/Mirantis/hmc/api/v1alpha1" - tc "github.com/Mirantis/hmc/test/objects/templatechain" - "github.com/Mirantis/hmc/test/scheme" + "github.com/K0rdent/kcm/api/v1alpha1" + tc "github.com/K0rdent/kcm/test/objects/templatechain" + "github.com/K0rdent/kcm/test/scheme" ) func TestClusterTemplateChainValidateCreate(t *testing.T) { diff --git a/mkdocs.yml b/mkdocs.yml index 7e34a1d38..87abc8029 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,7 +2,7 @@ site_name: HMC site_author: Mirantis docs_dir: ./docs repo_name: GitHub -repo_url: https://github.com/mirantis/hmc +repo_url: https://github.com/K0rdent/kcm copyright: '© 2005 - 2024 Mirantis, Inc. All rights reserved. “Mirantis” and “FUEL” are registered trademarks of Mirantis, Inc. All other trademarks are the property of their respective owners.' nav: diff --git a/templates/provider/hmc/values.yaml b/templates/provider/hmc/values.yaml index 69fcd2e21..c7a899d0e 100644 --- a/templates/provider/hmc/values.yaml +++ b/templates/provider/hmc/values.yaml @@ -7,7 +7,7 @@ admissionWebhook: certDir: "/tmp/k8s-webhook-server/serving-certs/" controller: - defaultRegistryURL: "oci://ghcr.io/mirantis/hmc/charts" + defaultRegistryURL: "oci://ghcr.io/k0rdent/kcm/charts" registryCredsSecret: "" insecureRegistry: false createManagement: true @@ -23,7 +23,7 @@ containerSecurityContext: - ALL image: - repository: ghcr.io/mirantis/hmc/controller + repository: ghcr.io/k0rdent/kcm/controller tag: latest pullPolicy: IfNotPresent diff --git a/test/e2e/clusterdeployment/aws/aws.go b/test/e2e/clusterdeployment/aws/aws.go index 33b6f6830..61a2a0a21 100644 --- a/test/e2e/clusterdeployment/aws/aws.go +++ b/test/e2e/clusterdeployment/aws/aws.go @@ -25,8 +25,8 @@ import ( "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime/schema" - "github.com/Mirantis/hmc/test/e2e/clusterdeployment" - "github.com/Mirantis/hmc/test/e2e/kubeclient" + "github.com/K0rdent/kcm/test/e2e/clusterdeployment" + "github.com/K0rdent/kcm/test/e2e/kubeclient" ) // PopulateHostedTemplateVars populates the environment variables required for diff --git a/test/e2e/clusterdeployment/azure/azure.go b/test/e2e/clusterdeployment/azure/azure.go index 2880badcf..53e27685a 100644 --- a/test/e2e/clusterdeployment/azure/azure.go +++ b/test/e2e/clusterdeployment/azure/azure.go @@ -29,8 +29,8 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/utils/ptr" - hmc "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/test/e2e/kubeclient" + hmc "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/test/e2e/kubeclient" ) func getAzureInfo(ctx context.Context, name string, kc *kubeclient.KubeClient) map[string]any { diff --git a/test/e2e/clusterdeployment/clusterdeployment.go b/test/e2e/clusterdeployment/clusterdeployment.go index 4492f4dc0..75d151728 100644 --- a/test/e2e/clusterdeployment/clusterdeployment.go +++ b/test/e2e/clusterdeployment/clusterdeployment.go @@ -27,7 +27,7 @@ import ( "gopkg.in/yaml.v3" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" - "github.com/Mirantis/hmc/test/utils" + "github.com/K0rdent/kcm/test/utils" ) type ProviderType string diff --git a/test/e2e/clusterdeployment/clusteridentity/clusteridentity.go b/test/e2e/clusterdeployment/clusteridentity/clusteridentity.go index 461e629cb..08068b15b 100644 --- a/test/e2e/clusterdeployment/clusteridentity/clusteridentity.go +++ b/test/e2e/clusterdeployment/clusteridentity/clusteridentity.go @@ -28,8 +28,8 @@ import ( "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime/schema" - "github.com/Mirantis/hmc/test/e2e/clusterdeployment" - "github.com/Mirantis/hmc/test/e2e/kubeclient" + "github.com/K0rdent/kcm/test/e2e/clusterdeployment" + "github.com/K0rdent/kcm/test/e2e/kubeclient" ) type ClusterIdentity struct { diff --git a/test/e2e/clusterdeployment/common.go b/test/e2e/clusterdeployment/common.go index 9eb59211c..02b4a7e56 100644 --- a/test/e2e/clusterdeployment/common.go +++ b/test/e2e/clusterdeployment/common.go @@ -26,7 +26,7 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/types" - "github.com/Mirantis/hmc/test/e2e/kubeclient" + "github.com/K0rdent/kcm/test/e2e/kubeclient" ) // PatchHostedClusterReady patches a hosted clusters' infrastructure resource diff --git a/test/e2e/clusterdeployment/providervalidator.go b/test/e2e/clusterdeployment/providervalidator.go index 7ca81d1d2..9d4ee121d 100644 --- a/test/e2e/clusterdeployment/providervalidator.go +++ b/test/e2e/clusterdeployment/providervalidator.go @@ -20,7 +20,7 @@ import ( . "github.com/onsi/ginkgo/v2" - "github.com/Mirantis/hmc/test/e2e/kubeclient" + "github.com/K0rdent/kcm/test/e2e/kubeclient" ) // ProviderValidator is a struct that contains the necessary information to diff --git a/test/e2e/clusterdeployment/validate_deleted.go b/test/e2e/clusterdeployment/validate_deleted.go index 1789ec879..fdeb6172f 100644 --- a/test/e2e/clusterdeployment/validate_deleted.go +++ b/test/e2e/clusterdeployment/validate_deleted.go @@ -22,9 +22,9 @@ import ( apierrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" - "github.com/Mirantis/hmc/internal/utils/status" - "github.com/Mirantis/hmc/test/e2e/kubeclient" - "github.com/Mirantis/hmc/test/utils" + "github.com/K0rdent/kcm/internal/utils/status" + "github.com/K0rdent/kcm/test/e2e/kubeclient" + "github.com/K0rdent/kcm/test/utils" ) // validateClusterDeleted validates that the Cluster resource has been deleted. diff --git a/test/e2e/clusterdeployment/validate_deployed.go b/test/e2e/clusterdeployment/validate_deployed.go index 7f750ecc1..1dbcd7885 100644 --- a/test/e2e/clusterdeployment/validate_deployed.go +++ b/test/e2e/clusterdeployment/validate_deployed.go @@ -27,9 +27,9 @@ import ( "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/util/intstr" - "github.com/Mirantis/hmc/internal/utils/status" - "github.com/Mirantis/hmc/test/e2e/kubeclient" - "github.com/Mirantis/hmc/test/utils" + "github.com/K0rdent/kcm/internal/utils/status" + "github.com/K0rdent/kcm/test/e2e/kubeclient" + "github.com/K0rdent/kcm/test/utils" ) // resourceValidationFunc is intended to validate a specific kubernetes diff --git a/test/e2e/clusterdeployment/vsphere/vsphere.go b/test/e2e/clusterdeployment/vsphere/vsphere.go index a708ef0e4..71d0395e1 100644 --- a/test/e2e/clusterdeployment/vsphere/vsphere.go +++ b/test/e2e/clusterdeployment/vsphere/vsphere.go @@ -15,7 +15,7 @@ package vsphere import ( - "github.com/Mirantis/hmc/test/e2e/clusterdeployment" + "github.com/K0rdent/kcm/test/e2e/clusterdeployment" ) func CheckEnv() { diff --git a/test/e2e/e2e_suite_test.go b/test/e2e/e2e_suite_test.go index 79466577d..cccd0e70f 100644 --- a/test/e2e/e2e_suite_test.go +++ b/test/e2e/e2e_suite_test.go @@ -32,10 +32,10 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/utils/ptr" - internalutils "github.com/Mirantis/hmc/internal/utils" - "github.com/Mirantis/hmc/test/e2e/clusterdeployment" - "github.com/Mirantis/hmc/test/e2e/kubeclient" - "github.com/Mirantis/hmc/test/utils" + internalutils "github.com/K0rdent/kcm/internal/utils" + "github.com/K0rdent/kcm/test/e2e/clusterdeployment" + "github.com/K0rdent/kcm/test/e2e/kubeclient" + "github.com/K0rdent/kcm/test/utils" ) // Run e2e tests using the Ginkgo runner. diff --git a/test/e2e/kubeclient/kubeclient.go b/test/e2e/kubeclient/kubeclient.go index 45e8fdb97..760426ae4 100644 --- a/test/e2e/kubeclient/kubeclient.go +++ b/test/e2e/kubeclient/kubeclient.go @@ -33,7 +33,7 @@ import ( "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" - "github.com/Mirantis/hmc/internal/utils/status" + "github.com/K0rdent/kcm/internal/utils/status" ) type KubeClient struct { diff --git a/test/e2e/provider_aws_test.go b/test/e2e/provider_aws_test.go index 276689032..5f11a1061 100644 --- a/test/e2e/provider_aws_test.go +++ b/test/e2e/provider_aws_test.go @@ -24,12 +24,12 @@ import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" - internalutils "github.com/Mirantis/hmc/internal/utils" - "github.com/Mirantis/hmc/test/e2e/clusterdeployment" - "github.com/Mirantis/hmc/test/e2e/clusterdeployment/aws" - "github.com/Mirantis/hmc/test/e2e/clusterdeployment/clusteridentity" - "github.com/Mirantis/hmc/test/e2e/kubeclient" - "github.com/Mirantis/hmc/test/utils" + internalutils "github.com/K0rdent/kcm/internal/utils" + "github.com/K0rdent/kcm/test/e2e/clusterdeployment" + "github.com/K0rdent/kcm/test/e2e/clusterdeployment/aws" + "github.com/K0rdent/kcm/test/e2e/clusterdeployment/clusteridentity" + "github.com/K0rdent/kcm/test/e2e/kubeclient" + "github.com/K0rdent/kcm/test/utils" ) var _ = Describe("AWS Templates", Label("provider:cloud", "provider:aws"), Ordered, func() { diff --git a/test/e2e/provider_azure_test.go b/test/e2e/provider_azure_test.go index 2b1bbb5b1..401aba31a 100644 --- a/test/e2e/provider_azure_test.go +++ b/test/e2e/provider_azure_test.go @@ -24,12 +24,12 @@ import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" - internalutils "github.com/Mirantis/hmc/internal/utils" - "github.com/Mirantis/hmc/test/e2e/clusterdeployment" - "github.com/Mirantis/hmc/test/e2e/clusterdeployment/azure" - "github.com/Mirantis/hmc/test/e2e/clusterdeployment/clusteridentity" - "github.com/Mirantis/hmc/test/e2e/kubeclient" - "github.com/Mirantis/hmc/test/utils" + internalutils "github.com/K0rdent/kcm/internal/utils" + "github.com/K0rdent/kcm/test/e2e/clusterdeployment" + "github.com/K0rdent/kcm/test/e2e/clusterdeployment/azure" + "github.com/K0rdent/kcm/test/e2e/clusterdeployment/clusteridentity" + "github.com/K0rdent/kcm/test/e2e/kubeclient" + "github.com/K0rdent/kcm/test/utils" ) var _ = Context("Azure Templates", Label("provider:cloud", "provider:azure"), Ordered, func() { diff --git a/test/e2e/provider_vsphere_test.go b/test/e2e/provider_vsphere_test.go index ea9ef55fe..a4f54b3a6 100644 --- a/test/e2e/provider_vsphere_test.go +++ b/test/e2e/provider_vsphere_test.go @@ -22,11 +22,11 @@ import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" - internalutils "github.com/Mirantis/hmc/internal/utils" - "github.com/Mirantis/hmc/test/e2e/clusterdeployment" - "github.com/Mirantis/hmc/test/e2e/clusterdeployment/clusteridentity" - "github.com/Mirantis/hmc/test/e2e/clusterdeployment/vsphere" - "github.com/Mirantis/hmc/test/e2e/kubeclient" + internalutils "github.com/K0rdent/kcm/internal/utils" + "github.com/K0rdent/kcm/test/e2e/clusterdeployment" + "github.com/K0rdent/kcm/test/e2e/clusterdeployment/clusteridentity" + "github.com/K0rdent/kcm/test/e2e/clusterdeployment/vsphere" + "github.com/K0rdent/kcm/test/e2e/kubeclient" ) var _ = Context("vSphere Templates", Label("provider:onprem", "provider:vsphere"), Ordered, func() { diff --git a/test/objects/accessmanagement/accessmanagement.go b/test/objects/accessmanagement/accessmanagement.go index f7a94c2fc..11154d713 100644 --- a/test/objects/accessmanagement/accessmanagement.go +++ b/test/objects/accessmanagement/accessmanagement.go @@ -17,7 +17,7 @@ package accessmanagement import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/Mirantis/hmc/api/v1alpha1" + "github.com/K0rdent/kcm/api/v1alpha1" ) const ( diff --git a/test/objects/clusterdeployment/clusterdeployment.go b/test/objects/clusterdeployment/clusterdeployment.go index 777572d86..87f5a6432 100644 --- a/test/objects/clusterdeployment/clusterdeployment.go +++ b/test/objects/clusterdeployment/clusterdeployment.go @@ -18,7 +18,7 @@ import ( apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/Mirantis/hmc/api/v1alpha1" + "github.com/K0rdent/kcm/api/v1alpha1" ) const ( diff --git a/test/objects/credential/credential.go b/test/objects/credential/credential.go index 4e495fa8b..106f4531f 100644 --- a/test/objects/credential/credential.go +++ b/test/objects/credential/credential.go @@ -18,7 +18,7 @@ import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/Mirantis/hmc/api/v1alpha1" + "github.com/K0rdent/kcm/api/v1alpha1" ) const ( diff --git a/test/objects/management/management.go b/test/objects/management/management.go index 67ad95970..25ec35967 100644 --- a/test/objects/management/management.go +++ b/test/objects/management/management.go @@ -17,8 +17,8 @@ package management import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/Mirantis/hmc/api/v1alpha1" - "github.com/Mirantis/hmc/test/objects/release" + "github.com/K0rdent/kcm/api/v1alpha1" + "github.com/K0rdent/kcm/test/objects/release" ) const ( diff --git a/test/objects/multiclusterservice/multiclusterservice.go b/test/objects/multiclusterservice/multiclusterservice.go index cc6aec977..4328cf2b5 100644 --- a/test/objects/multiclusterservice/multiclusterservice.go +++ b/test/objects/multiclusterservice/multiclusterservice.go @@ -17,7 +17,7 @@ package multiclusterservice import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/Mirantis/hmc/api/v1alpha1" + "github.com/K0rdent/kcm/api/v1alpha1" ) const ( diff --git a/test/objects/release/release.go b/test/objects/release/release.go index e34a76d1b..fabff3bd4 100644 --- a/test/objects/release/release.go +++ b/test/objects/release/release.go @@ -17,7 +17,7 @@ package release import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/Mirantis/hmc/api/v1alpha1" + "github.com/K0rdent/kcm/api/v1alpha1" ) const ( diff --git a/test/objects/template/template.go b/test/objects/template/template.go index 3699a4583..dbe72f432 100644 --- a/test/objects/template/template.go +++ b/test/objects/template/template.go @@ -21,7 +21,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runtime/pkg/client" - "github.com/Mirantis/hmc/api/v1alpha1" + "github.com/K0rdent/kcm/api/v1alpha1" ) const ( diff --git a/test/objects/templatechain/templatechain.go b/test/objects/templatechain/templatechain.go index 4876e865b..0d90dac65 100644 --- a/test/objects/templatechain/templatechain.go +++ b/test/objects/templatechain/templatechain.go @@ -17,7 +17,7 @@ package templatechain import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/Mirantis/hmc/api/v1alpha1" + "github.com/K0rdent/kcm/api/v1alpha1" ) const ( diff --git a/test/scheme/scheme.go b/test/scheme/scheme.go index d0155c616..6c1046ccb 100644 --- a/test/scheme/scheme.go +++ b/test/scheme/scheme.go @@ -22,7 +22,7 @@ import ( utilruntime "k8s.io/apimachinery/pkg/util/runtime" clientgoscheme "k8s.io/client-go/kubernetes/scheme" - "github.com/Mirantis/hmc/api/v1alpha1" + "github.com/K0rdent/kcm/api/v1alpha1" ) var ( diff --git a/test/utils/utils.go b/test/utils/utils.go index 56ce5ee33..96c5e52e2 100644 --- a/test/utils/utils.go +++ b/test/utils/utils.go @@ -25,7 +25,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" - "github.com/Mirantis/hmc/internal/utils/status" + "github.com/K0rdent/kcm/internal/utils/status" ) const (