From 04b6d11d78119f825b49130253ae42bd857f7dde Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Mon, 16 Oct 2023 13:55:51 +0200 Subject: [PATCH 1/6] refactor: moving to new neutral organization Signed-off-by: Dario Tranchitella --- PROJECT | 16 +++--- api/v1alpha1/conversion_hub.go | 4 +- api/v1alpha1/conversion_hub_test.go | 4 +- api/v1alpha1/tenant_types.go | 2 +- api/v1alpha1/zz_generated.deepcopy.go | 2 +- api/v1beta1/ingress_options.go | 2 +- api/v1beta1/namespace_options.go | 2 +- api/v1beta1/service_options.go | 2 +- api/v1beta1/tenant_types.go | 2 +- api/v1beta1/zz_generated.deepcopy.go | 2 +- .../capsuleconfiguration_convertion_hub.go | 2 +- api/v1beta2/capsuleconfiguration_types.go | 2 +- api/v1beta2/ingress_options.go | 2 +- api/v1beta2/namespace_options.go | 2 +- api/v1beta2/tenant_conversion_hub.go | 4 +- api/v1beta2/tenant_types.go | 2 +- api/v1beta2/tenantresource_namespaced.go | 2 +- api/v1beta2/zz_generated.deepcopy.go | 2 +- controllers/config/manager.go | 6 +-- controllers/pv/controller.go | 6 +-- controllers/rbac/manager.go | 6 +-- controllers/resources/global.go | 2 +- controllers/resources/namespaced.go | 2 +- controllers/resources/processor.go | 2 +- controllers/servicelabels/abstract.go | 4 +- controllers/tenant/limitranges.go | 4 +- controllers/tenant/manager.go | 2 +- controllers/tenant/namespaces.go | 6 +-- controllers/tenant/networkpolicies.go | 4 +- controllers/tenant/resourcequotas.go | 6 +-- controllers/tenant/resourcequotas_quota.go | 2 +- controllers/tenant/rolebindings.go | 6 +-- controllers/tenant/utils.go | 2 +- controllers/tls/manager.go | 6 +-- e2e/additional_role_bindings_test.go | 4 +- e2e/allowed_external_ips_test.go | 4 +- e2e/container_registry_test.go | 4 +- e2e/custom_capsule_group_test.go | 2 +- e2e/custom_resource_quota_test.go | 2 +- e2e/disable_externalname_test.go | 4 +- e2e/disable_ingress_wildcard_test.go | 4 +- e2e/disable_loadbalancer_test.go | 4 +- e2e/disable_node_ports_test.go | 4 +- e2e/dynamic_tenant_owner_clusterroles_test.go | 2 +- e2e/enable_loadbalancer_test.go | 4 +- e2e/enable_node_ports_test.go | 2 +- e2e/forbidden_annotations_regex_test.go | 4 +- e2e/force_tenant_prefix_test.go | 2 +- e2e/globaltenantresource_test.go | 4 +- e2e/imagepullpolicy_multiple_test.go | 4 +- e2e/imagepullpolicy_single_test.go | 4 +- e2e/ingress_class_extensions_test.go | 6 +-- e2e/ingress_class_networking_test.go | 6 +-- ..._hostnames_collision_cluster_scope_test.go | 6 +-- ...gress_hostnames_collision_disabled_test.go | 6 +-- ...ostnames_collision_namespace_scope_test.go | 6 +-- ...s_hostnames_collision_tenant_scope_test.go | 6 +-- e2e/ingress_hostnames_test.go | 6 +-- e2e/missing_tenant_test.go | 2 +- e2e/namespace_additional_metadata_test.go | 4 +- e2e/namespace_capsule_label_test.go | 2 +- e2e/namespace_user_metadata_test.go | 4 +- e2e/new_namespace_test.go | 2 +- e2e/node_user_metadata_test.go | 6 +-- e2e/overquota_namespace_test.go | 2 +- e2e/owner_webhooks_test.go | 4 +- e2e/pod_priority_class_test.go | 4 +- e2e/pod_runtime_class_test.go | 4 +- e2e/preventing_pv_cross_tenant_mount_test.go | 2 +- e2e/protected_namespace_regex_test.go | 2 +- e2e/resource_quota_exceeded_test.go | 4 +- e2e/sa_prevent_privilege_escalation_test.go | 2 +- e2e/selecting_non_owned_tenant_test.go | 4 +- e2e/selecting_tenant_fail_test.go | 2 +- e2e/selecting_tenant_with_label_test.go | 4 +- e2e/service_metadata_test.go | 6 +-- e2e/storage_class_test.go | 4 +- e2e/suite_test.go | 2 +- e2e/tenant_cordoning_test.go | 2 +- e2e/tenant_name_webhook_test.go | 2 +- e2e/tenant_protected_webhook_test.go | 2 +- e2e/tenant_resources_changes_test.go | 4 +- e2e/tenant_resources_test.go | 4 +- e2e/tenantresource_test.go | 4 +- e2e/utils_test.go | 2 +- go.mod | 2 +- main.go | 52 +++++++++---------- pkg/configuration/client.go | 4 +- pkg/configuration/configuration.go | 2 +- pkg/indexer/indexer.go | 12 ++--- pkg/indexer/namespace/namespaces.go | 2 +- pkg/indexer/tenant/namespaces.go | 2 +- pkg/indexer/tenant/owner.go | 4 +- pkg/indexer/tenantresource/global.go | 2 +- pkg/indexer/tenantresource/local.go | 2 +- pkg/utils/node_selector.go | 2 +- pkg/utils/owner.go | 2 +- pkg/utils/tenant_labels.go | 6 +-- pkg/webhook/defaults/handler.go | 4 +- pkg/webhook/defaults/ingress.go | 6 +-- pkg/webhook/defaults/pods.go | 4 +- pkg/webhook/defaults/storage.go | 4 +- pkg/webhook/ingress/errors.go | 4 +- pkg/webhook/ingress/utils.go | 2 +- pkg/webhook/ingress/validate_class.go | 8 +-- pkg/webhook/ingress/validate_collision.go | 12 ++--- pkg/webhook/ingress/validate_hostnames.go | 8 +-- pkg/webhook/ingress/validate_wildcard.go | 6 +-- pkg/webhook/namespace/errors.go | 2 +- pkg/webhook/namespace/freezed.go | 8 +-- pkg/webhook/namespace/owner_reference.go | 4 +- pkg/webhook/namespace/patch.go | 8 +-- pkg/webhook/namespace/prefix.go | 8 +-- pkg/webhook/namespace/quota.go | 6 +-- pkg/webhook/namespace/user_metadata.go | 6 +-- pkg/webhook/networkpolicy/validating.go | 8 +-- pkg/webhook/node/errors.go | 2 +- pkg/webhook/node/user_metadata.go | 6 +-- pkg/webhook/ownerreference/patching.go | 10 ++-- pkg/webhook/pod/containerregistry.go | 6 +-- pkg/webhook/pod/containerregistry_errors.go | 2 +- pkg/webhook/pod/imagepullpolicy.go | 6 +-- pkg/webhook/pod/imagepullpolicy_pullpolicy.go | 2 +- pkg/webhook/pod/priorityclass.go | 4 +- pkg/webhook/pod/priorityclass_errors.go | 4 +- pkg/webhook/pod/runtimeclass.go | 4 +- pkg/webhook/pod/runtimeclass_errors.go | 4 +- pkg/webhook/pvc/errors.go | 4 +- pkg/webhook/pvc/pv.go | 6 +-- pkg/webhook/pvc/validating.go | 4 +- pkg/webhook/route/cordoning.go | 2 +- pkg/webhook/route/defaults.go | 2 +- pkg/webhook/route/ingresses.go | 2 +- pkg/webhook/route/namespaces.go | 2 +- pkg/webhook/route/networkpolicies.go | 2 +- pkg/webhook/route/node.go | 2 +- pkg/webhook/route/ownerreference.go | 2 +- pkg/webhook/route/pods.go | 2 +- pkg/webhook/route/pvc.go | 2 +- pkg/webhook/route/services.go | 2 +- pkg/webhook/route/tenantresource_objs.go | 2 +- pkg/webhook/route/tenants.go | 2 +- pkg/webhook/service/errors.go | 2 +- pkg/webhook/service/validating.go | 6 +-- pkg/webhook/tenant/containerregistry_regex.go | 6 +-- pkg/webhook/tenant/cordoning.go | 8 +-- pkg/webhook/tenant/custom_resource_quota.go | 6 +-- .../tenant/forbidden_annotations_regex.go | 6 +-- pkg/webhook/tenant/freezed_emitter.go | 6 +-- pkg/webhook/tenant/hostname_regex.go | 6 +-- pkg/webhook/tenant/ingressclass_regex.go | 6 +-- pkg/webhook/tenant/name.go | 6 +-- pkg/webhook/tenant/protected.go | 6 +-- pkg/webhook/tenant/rolebindings_regex.go | 6 +-- pkg/webhook/tenant/serviceaccount_format.go | 6 +-- pkg/webhook/tenant/storageclass_regex.go | 6 +-- pkg/webhook/tenantresource/objects.go | 8 +-- pkg/webhook/utils/error.go | 2 +- pkg/webhook/utils/in_capsule_groups.go | 4 +- pkg/webhook/utils/is_capsule_user.go | 6 +-- pkg/webhook/utils/is_tenant_owner.go | 2 +- pkg/webhook/utils/tenant_by_field.go | 2 +- 162 files changed, 352 insertions(+), 352 deletions(-) diff --git a/PROJECT b/PROJECT index ff22733d..81d642aa 100644 --- a/PROJECT +++ b/PROJECT @@ -5,7 +5,7 @@ plugins: manifests.sdk.operatorframework.io/v2: {} scorecard.sdk.operatorframework.io/v2: {} projectName: capsule -repo: github.com/clastix/capsule +repo: github.com/projectcapsule/capsule resources: - api: crdVersion: v1 @@ -13,7 +13,7 @@ resources: domain: clastix.io group: capsule kind: Tenant - path: github.com/clastix/capsule/api/v1alpha1 + path: github.com/projectcapsule/capsule/api/v1alpha1 version: v1alpha1 webhooks: conversion: true @@ -24,21 +24,21 @@ resources: domain: clastix.io group: capsule kind: CapsuleConfiguration - path: github.com/clastix/capsule/api/v1alpha1 + path: github.com/projectcapsule/capsule/api/v1alpha1 version: v1alpha1 - api: crdVersion: v1 domain: clastix.io group: capsule kind: Tenant - path: github.com/clastix/capsule/api/v1beta1 + path: github.com/projectcapsule/capsule/api/v1beta1 version: v1beta1 - api: crdVersion: v1 domain: clastix.io group: capsule kind: Tenant - path: github.com/clastix/capsule/api/v1beta2 + path: github.com/projectcapsule/capsule/api/v1beta2 version: v1beta2 - api: crdVersion: v1 @@ -46,7 +46,7 @@ resources: domain: clastix.io group: capsule kind: CapsuleConfiguration - path: github.com/clastix/capsule/api/v1beta2 + path: github.com/projectcapsule/capsule/api/v1beta2 version: v1beta2 - api: crdVersion: v1 @@ -54,13 +54,13 @@ resources: domain: clastix.io group: capsule kind: TenantResource - path: github.com/clastix/capsule/api/v1beta2 + path: github.com/projectcapsule/capsule/api/v1beta2 version: v1beta2 - api: crdVersion: v1 domain: clastix.io group: capsule kind: GlobalTenantResource - path: github.com/clastix/capsule/api/v1beta2 + path: github.com/projectcapsule/capsule/api/v1beta2 version: v1beta2 version: "3" diff --git a/api/v1alpha1/conversion_hub.go b/api/v1alpha1/conversion_hub.go index 1332ff07..9502ff34 100644 --- a/api/v1alpha1/conversion_hub.go +++ b/api/v1alpha1/conversion_hub.go @@ -13,8 +13,8 @@ import ( "k8s.io/utils/pointer" "sigs.k8s.io/controller-runtime/pkg/conversion" - capsulev1beta1 "github.com/clastix/capsule/api/v1beta1" - "github.com/clastix/capsule/pkg/api" + capsulev1beta1 "github.com/projectcapsule/capsule/api/v1beta1" + "github.com/projectcapsule/capsule/pkg/api" ) const ( diff --git a/api/v1alpha1/conversion_hub_test.go b/api/v1alpha1/conversion_hub_test.go index 64a2e369..806a5ea3 100644 --- a/api/v1alpha1/conversion_hub_test.go +++ b/api/v1alpha1/conversion_hub_test.go @@ -15,8 +15,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/utils/pointer" - capsulev1beta1 "github.com/clastix/capsule/api/v1beta1" - "github.com/clastix/capsule/pkg/api" + capsulev1beta1 "github.com/projectcapsule/capsule/api/v1beta1" + "github.com/projectcapsule/capsule/pkg/api" ) //nolint:maintidx diff --git a/api/v1alpha1/tenant_types.go b/api/v1alpha1/tenant_types.go index e0b8c884..b5e0cd86 100644 --- a/api/v1alpha1/tenant_types.go +++ b/api/v1alpha1/tenant_types.go @@ -8,7 +8,7 @@ import ( networkingv1 "k8s.io/api/networking/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" ) // TenantSpec defines the desired state of Tenant. diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index db654794..dc6f72f4 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -9,7 +9,7 @@ package v1alpha1 import ( - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" corev1 "k8s.io/api/core/v1" "k8s.io/api/networking/v1" runtime "k8s.io/apimachinery/pkg/runtime" diff --git a/api/v1beta1/ingress_options.go b/api/v1beta1/ingress_options.go index ab4baad7..edac1664 100644 --- a/api/v1beta1/ingress_options.go +++ b/api/v1beta1/ingress_options.go @@ -4,7 +4,7 @@ package v1beta1 import ( - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" ) type IngressOptions struct { diff --git a/api/v1beta1/namespace_options.go b/api/v1beta1/namespace_options.go index c4a2aed5..1b2ff2f6 100644 --- a/api/v1beta1/namespace_options.go +++ b/api/v1beta1/namespace_options.go @@ -6,7 +6,7 @@ package v1beta1 import ( "strings" - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" ) type NamespaceOptions struct { diff --git a/api/v1beta1/service_options.go b/api/v1beta1/service_options.go index 636a2f7f..2de0617f 100644 --- a/api/v1beta1/service_options.go +++ b/api/v1beta1/service_options.go @@ -4,7 +4,7 @@ package v1beta1 import ( - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" ) type ServiceOptions struct { diff --git a/api/v1beta1/tenant_types.go b/api/v1beta1/tenant_types.go index 5d809b24..d81a15bc 100644 --- a/api/v1beta1/tenant_types.go +++ b/api/v1beta1/tenant_types.go @@ -6,7 +6,7 @@ package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" ) // TenantSpec defines the desired state of Tenant. diff --git a/api/v1beta1/zz_generated.deepcopy.go b/api/v1beta1/zz_generated.deepcopy.go index 5ae9834b..78d33aa1 100644 --- a/api/v1beta1/zz_generated.deepcopy.go +++ b/api/v1beta1/zz_generated.deepcopy.go @@ -9,7 +9,7 @@ package v1beta1 import ( - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" runtime "k8s.io/apimachinery/pkg/runtime" ) diff --git a/api/v1beta2/capsuleconfiguration_convertion_hub.go b/api/v1beta2/capsuleconfiguration_convertion_hub.go index 6f4c02b5..ceb4d10e 100644 --- a/api/v1beta2/capsuleconfiguration_convertion_hub.go +++ b/api/v1beta2/capsuleconfiguration_convertion_hub.go @@ -10,7 +10,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/conversion" - capsulev1alpha1 "github.com/clastix/capsule/api/v1alpha1" + capsulev1alpha1 "github.com/projectcapsule/capsule/api/v1alpha1" ) func (in *CapsuleConfiguration) ConvertTo(raw conversion.Hub) error { diff --git a/api/v1beta2/capsuleconfiguration_types.go b/api/v1beta2/capsuleconfiguration_types.go index a5854b51..07248401 100644 --- a/api/v1beta2/capsuleconfiguration_types.go +++ b/api/v1beta2/capsuleconfiguration_types.go @@ -6,7 +6,7 @@ package v1beta2 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" ) // CapsuleConfigurationSpec defines the Capsule configuration. diff --git a/api/v1beta2/ingress_options.go b/api/v1beta2/ingress_options.go index 740b1503..82353dce 100644 --- a/api/v1beta2/ingress_options.go +++ b/api/v1beta2/ingress_options.go @@ -4,7 +4,7 @@ package v1beta2 import ( - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" ) type IngressOptions struct { diff --git a/api/v1beta2/namespace_options.go b/api/v1beta2/namespace_options.go index 0b71d73f..a9715246 100644 --- a/api/v1beta2/namespace_options.go +++ b/api/v1beta2/namespace_options.go @@ -4,7 +4,7 @@ package v1beta2 import ( - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" ) type NamespaceOptions struct { diff --git a/api/v1beta2/tenant_conversion_hub.go b/api/v1beta2/tenant_conversion_hub.go index aa144bb5..5658bd98 100644 --- a/api/v1beta2/tenant_conversion_hub.go +++ b/api/v1beta2/tenant_conversion_hub.go @@ -10,8 +10,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/conversion" - capsulev1beta1 "github.com/clastix/capsule/api/v1beta1" - "github.com/clastix/capsule/pkg/api" + capsulev1beta1 "github.com/projectcapsule/capsule/api/v1beta1" + "github.com/projectcapsule/capsule/pkg/api" ) func (in *Tenant) ConvertFrom(raw conversion.Hub) error { diff --git a/api/v1beta2/tenant_types.go b/api/v1beta2/tenant_types.go index 60edd2fe..73ddfa03 100644 --- a/api/v1beta2/tenant_types.go +++ b/api/v1beta2/tenant_types.go @@ -6,7 +6,7 @@ package v1beta2 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" ) // TenantSpec defines the desired state of Tenant. diff --git a/api/v1beta2/tenantresource_namespaced.go b/api/v1beta2/tenantresource_namespaced.go index ac6c764c..6fb08840 100644 --- a/api/v1beta2/tenantresource_namespaced.go +++ b/api/v1beta2/tenantresource_namespaced.go @@ -7,7 +7,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" ) // TenantResourceSpec defines the desired state of TenantResource. diff --git a/api/v1beta2/zz_generated.deepcopy.go b/api/v1beta2/zz_generated.deepcopy.go index 141f2fe9..4fef513e 100644 --- a/api/v1beta2/zz_generated.deepcopy.go +++ b/api/v1beta2/zz_generated.deepcopy.go @@ -9,7 +9,7 @@ package v1beta2 import ( - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" "k8s.io/api/rbac/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" diff --git a/controllers/config/manager.go b/controllers/config/manager.go index 129733d6..5393a92e 100644 --- a/controllers/config/manager.go +++ b/controllers/config/manager.go @@ -12,9 +12,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/reconcile" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/controllers/utils" - "github.com/clastix/capsule/pkg/configuration" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/controllers/utils" + "github.com/projectcapsule/capsule/pkg/configuration" ) type Manager struct { diff --git a/controllers/pv/controller.go b/controllers/pv/controller.go index 3ef3ebae..20c2bc74 100644 --- a/controllers/pv/controller.go +++ b/controllers/pv/controller.go @@ -16,9 +16,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/predicate" "sigs.k8s.io/controller-runtime/pkg/reconcile" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsuleutils "github.com/clastix/capsule/pkg/utils" - webhookutils "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsuleutils "github.com/projectcapsule/capsule/pkg/utils" + webhookutils "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type Controller struct { diff --git a/controllers/rbac/manager.go b/controllers/rbac/manager.go index a5a8c086..449b2200 100644 --- a/controllers/rbac/manager.go +++ b/controllers/rbac/manager.go @@ -20,9 +20,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/handler" "sigs.k8s.io/controller-runtime/pkg/reconcile" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/controllers/utils" - "github.com/clastix/capsule/pkg/configuration" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/controllers/utils" + "github.com/projectcapsule/capsule/pkg/configuration" ) type Manager struct { diff --git a/controllers/resources/global.go b/controllers/resources/global.go index 67507847..40fbf8c6 100644 --- a/controllers/resources/global.go +++ b/controllers/resources/global.go @@ -21,7 +21,7 @@ import ( ctrllog "sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/reconcile" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) type Global struct { diff --git a/controllers/resources/namespaced.go b/controllers/resources/namespaced.go index e9b0ae80..b3b1a419 100644 --- a/controllers/resources/namespaced.go +++ b/controllers/resources/namespaced.go @@ -18,7 +18,7 @@ import ( ctrllog "sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/reconcile" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) type Namespaced struct { diff --git a/controllers/resources/processor.go b/controllers/resources/processor.go index 3c0aea51..4e2d8e90 100644 --- a/controllers/resources/processor.go +++ b/controllers/resources/processor.go @@ -22,7 +22,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" ctrllog "sigs.k8s.io/controller-runtime/pkg/log" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) const ( diff --git a/controllers/servicelabels/abstract.go b/controllers/servicelabels/abstract.go index 19674a01..dcc97928 100644 --- a/controllers/servicelabels/abstract.go +++ b/controllers/servicelabels/abstract.go @@ -20,8 +20,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/predicate" "sigs.k8s.io/controller-runtime/pkg/reconcile" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/utils" ) type abstractServiceLabelsReconciler struct { diff --git a/controllers/tenant/limitranges.go b/controllers/tenant/limitranges.go index 99a03576..f6e9cd90 100644 --- a/controllers/tenant/limitranges.go +++ b/controllers/tenant/limitranges.go @@ -13,8 +13,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/utils" ) // Ensuring all the LimitRange are applied to each Namespace handled by the Tenant. diff --git a/controllers/tenant/manager.go b/controllers/tenant/manager.go index c89c6cf9..37141433 100644 --- a/controllers/tenant/manager.go +++ b/controllers/tenant/manager.go @@ -18,7 +18,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/reconcile" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) type Manager struct { diff --git a/controllers/tenant/namespaces.go b/controllers/tenant/namespaces.go index 3262511c..d09369ed 100644 --- a/controllers/tenant/namespaces.go +++ b/controllers/tenant/namespaces.go @@ -16,9 +16,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/utils" ) // Ensuring all annotations are applied to each Namespace handled by the Tenant. diff --git a/controllers/tenant/networkpolicies.go b/controllers/tenant/networkpolicies.go index 914897ee..e3a9f76b 100644 --- a/controllers/tenant/networkpolicies.go +++ b/controllers/tenant/networkpolicies.go @@ -13,8 +13,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/utils" ) // Ensuring all the NetworkPolicies are applied to each Namespace handled by the Tenant. diff --git a/controllers/tenant/resourcequotas.go b/controllers/tenant/resourcequotas.go index 7f70e053..39c35dff 100644 --- a/controllers/tenant/resourcequotas.go +++ b/controllers/tenant/resourcequotas.go @@ -19,9 +19,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/utils" ) // When the Resource Budget assigned to a Tenant is Tenant-scoped we have to rely on the ResourceQuota resources to diff --git a/controllers/tenant/resourcequotas_quota.go b/controllers/tenant/resourcequotas_quota.go index 55e42749..8a935684 100644 --- a/controllers/tenant/resourcequotas_quota.go +++ b/controllers/tenant/resourcequotas_quota.go @@ -16,7 +16,7 @@ import ( "k8s.io/client-go/dynamic" "k8s.io/client-go/util/retry" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) func (r *Manager) syncCustomResourceQuotaUsages(ctx context.Context, tenant *capsulev1beta2.Tenant) error { diff --git a/controllers/tenant/rolebindings.go b/controllers/tenant/rolebindings.go index 236bfec7..1e85c7d7 100644 --- a/controllers/tenant/rolebindings.go +++ b/controllers/tenant/rolebindings.go @@ -14,9 +14,9 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/utils" ) // ownerClusterRoleBindings generates a Capsule AdditionalRoleBinding object for the Owner dynamic clusterrole in order diff --git a/controllers/tenant/utils.go b/controllers/tenant/utils.go index 5adf7ac4..a85df9ed 100644 --- a/controllers/tenant/utils.go +++ b/controllers/tenant/utils.go @@ -14,7 +14,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" - capsulev1beta2 "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/pkg/utils" ) // pruningResources is taking care of removing the no more requested sub-resources as LimitRange, ResourceQuota or diff --git a/controllers/tls/manager.go b/controllers/tls/manager.go index f788e360..9da5d177 100644 --- a/controllers/tls/manager.go +++ b/controllers/tls/manager.go @@ -28,9 +28,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/predicate" "sigs.k8s.io/controller-runtime/pkg/reconcile" - "github.com/clastix/capsule/controllers/utils" - "github.com/clastix/capsule/pkg/cert" - "github.com/clastix/capsule/pkg/configuration" + "github.com/projectcapsule/capsule/controllers/utils" + "github.com/projectcapsule/capsule/pkg/cert" + "github.com/projectcapsule/capsule/pkg/configuration" ) const ( diff --git a/e2e/additional_role_bindings_test.go b/e2e/additional_role_bindings_test.go index 9bca98ba..7cb2e4fc 100644 --- a/e2e/additional_role_bindings_test.go +++ b/e2e/additional_role_bindings_test.go @@ -14,8 +14,8 @@ import ( rbacv1 "k8s.io/api/rbac/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("creating a Namespace with an additional Role Binding", func() { diff --git a/e2e/allowed_external_ips_test.go b/e2e/allowed_external_ips_test.go index d5b0757e..29a6da57 100644 --- a/e2e/allowed_external_ips_test.go +++ b/e2e/allowed_external_ips_test.go @@ -14,8 +14,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("enforcing an allowed set of Service external IPs", func() { diff --git a/e2e/container_registry_test.go b/e2e/container_registry_test.go index 9b499f24..405eed57 100644 --- a/e2e/container_registry_test.go +++ b/e2e/container_registry_test.go @@ -15,8 +15,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) type Patch struct { diff --git a/e2e/custom_capsule_group_test.go b/e2e/custom_capsule_group_test.go index 750ece2f..e8ad5131 100644 --- a/e2e/custom_capsule_group_test.go +++ b/e2e/custom_capsule_group_test.go @@ -12,7 +12,7 @@ import ( . "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("creating a Namespace as Tenant owner with custom --capsule-group", func() { diff --git a/e2e/custom_resource_quota_test.go b/e2e/custom_resource_quota_test.go index dd056d0d..4640d412 100644 --- a/e2e/custom_resource_quota_test.go +++ b/e2e/custom_resource_quota_test.go @@ -20,7 +20,7 @@ import ( "k8s.io/client-go/dynamic" "k8s.io/client-go/kubernetes/scheme" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("when Tenant limits custom Resource Quota", func() { diff --git a/e2e/disable_externalname_test.go b/e2e/disable_externalname_test.go index 819bc0af..c9e57115 100644 --- a/e2e/disable_externalname_test.go +++ b/e2e/disable_externalname_test.go @@ -15,8 +15,8 @@ import ( "k8s.io/apimachinery/pkg/util/intstr" "k8s.io/utils/pointer" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("creating an ExternalName service when it is disabled for Tenant", func() { diff --git a/e2e/disable_ingress_wildcard_test.go b/e2e/disable_ingress_wildcard_test.go index 38c6a7b6..bd4ae2ec 100644 --- a/e2e/disable_ingress_wildcard_test.go +++ b/e2e/disable_ingress_wildcard_test.go @@ -17,8 +17,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/utils" ) var _ = Describe("creating an Ingress with a wildcard when it is denied for the Tenant", func() { diff --git a/e2e/disable_loadbalancer_test.go b/e2e/disable_loadbalancer_test.go index c4f52c78..4d5293fa 100644 --- a/e2e/disable_loadbalancer_test.go +++ b/e2e/disable_loadbalancer_test.go @@ -15,8 +15,8 @@ import ( "k8s.io/apimachinery/pkg/util/intstr" "k8s.io/utils/pointer" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("creating a LoadBalancer service when it is disabled for Tenant", func() { diff --git a/e2e/disable_node_ports_test.go b/e2e/disable_node_ports_test.go index 2e08dced..48ab1fe1 100644 --- a/e2e/disable_node_ports_test.go +++ b/e2e/disable_node_ports_test.go @@ -15,8 +15,8 @@ import ( "k8s.io/apimachinery/pkg/util/intstr" "k8s.io/utils/pointer" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("creating a nodePort service when it is disabled for Tenant", func() { diff --git a/e2e/dynamic_tenant_owner_clusterroles_test.go b/e2e/dynamic_tenant_owner_clusterroles_test.go index 36221053..882298a0 100644 --- a/e2e/dynamic_tenant_owner_clusterroles_test.go +++ b/e2e/dynamic_tenant_owner_clusterroles_test.go @@ -13,7 +13,7 @@ import ( . "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("defining dynamic Tenant Owner Cluster Roles", func() { diff --git a/e2e/enable_loadbalancer_test.go b/e2e/enable_loadbalancer_test.go index f9ac51b4..9ba44bb1 100644 --- a/e2e/enable_loadbalancer_test.go +++ b/e2e/enable_loadbalancer_test.go @@ -15,8 +15,8 @@ import ( "k8s.io/apimachinery/pkg/util/intstr" "k8s.io/utils/pointer" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("creating a LoadBalancer service when it is enabled for Tenant", func() { diff --git a/e2e/enable_node_ports_test.go b/e2e/enable_node_ports_test.go index 764b0665..373b7ad3 100644 --- a/e2e/enable_node_ports_test.go +++ b/e2e/enable_node_ports_test.go @@ -14,7 +14,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("creating a nodePort service when it is enabled for Tenant", func() { diff --git a/e2e/forbidden_annotations_regex_test.go b/e2e/forbidden_annotations_regex_test.go index f2797a84..b67f219b 100644 --- a/e2e/forbidden_annotations_regex_test.go +++ b/e2e/forbidden_annotations_regex_test.go @@ -12,8 +12,8 @@ import ( . "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("creating a tenant with various forbidden regexes", func() { diff --git a/e2e/force_tenant_prefix_test.go b/e2e/force_tenant_prefix_test.go index ef763eb4..c9c2ac83 100644 --- a/e2e/force_tenant_prefix_test.go +++ b/e2e/force_tenant_prefix_test.go @@ -12,7 +12,7 @@ import ( . "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("creating a Namespace with Tenant name prefix enforcement", func() { diff --git a/e2e/globaltenantresource_test.go b/e2e/globaltenantresource_test.go index 2a3beff4..7e1a6987 100644 --- a/e2e/globaltenantresource_test.go +++ b/e2e/globaltenantresource_test.go @@ -21,8 +21,8 @@ import ( "k8s.io/utils/pointer" "sigs.k8s.io/controller-runtime/pkg/client" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("Creating a GlobalTenantResource object", func() { diff --git a/e2e/imagepullpolicy_multiple_test.go b/e2e/imagepullpolicy_multiple_test.go index 65fdc18f..6cd9cbe1 100644 --- a/e2e/imagepullpolicy_multiple_test.go +++ b/e2e/imagepullpolicy_multiple_test.go @@ -13,8 +13,8 @@ import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("enforcing some defined ImagePullPolicy", func() { diff --git a/e2e/imagepullpolicy_single_test.go b/e2e/imagepullpolicy_single_test.go index 6143bf77..3018fb08 100644 --- a/e2e/imagepullpolicy_single_test.go +++ b/e2e/imagepullpolicy_single_test.go @@ -13,8 +13,8 @@ import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("enforcing a defined ImagePullPolicy", func() { diff --git a/e2e/ingress_class_extensions_test.go b/e2e/ingress_class_extensions_test.go index 7171fc14..154693d1 100644 --- a/e2e/ingress_class_extensions_test.go +++ b/e2e/ingress_class_extensions_test.go @@ -16,9 +16,9 @@ import ( "k8s.io/apimachinery/pkg/util/intstr" "k8s.io/utils/pointer" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/utils" ) var _ = Describe("when Tenant handles Ingress classes with extensions/v1beta1", func() { diff --git a/e2e/ingress_class_networking_test.go b/e2e/ingress_class_networking_test.go index 881a4b7d..ae30d118 100644 --- a/e2e/ingress_class_networking_test.go +++ b/e2e/ingress_class_networking_test.go @@ -21,9 +21,9 @@ import ( "k8s.io/utils/pointer" "sigs.k8s.io/controller-runtime/pkg/client" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/utils" ) var _ = Describe("when Tenant handles Ingress classes with networking.k8s.io/v1", func() { diff --git a/e2e/ingress_hostnames_collision_cluster_scope_test.go b/e2e/ingress_hostnames_collision_cluster_scope_test.go index 14d895c7..2f58da84 100644 --- a/e2e/ingress_hostnames_collision_cluster_scope_test.go +++ b/e2e/ingress_hostnames_collision_cluster_scope_test.go @@ -16,9 +16,9 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/utils" ) var _ = Describe("when handling Cluster scoped Ingress hostnames collision", func() { diff --git a/e2e/ingress_hostnames_collision_disabled_test.go b/e2e/ingress_hostnames_collision_disabled_test.go index 7b18ec4f..894ae7c9 100644 --- a/e2e/ingress_hostnames_collision_disabled_test.go +++ b/e2e/ingress_hostnames_collision_disabled_test.go @@ -16,9 +16,9 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/utils" ) var _ = Describe("when disabling Ingress hostnames collision", func() { diff --git a/e2e/ingress_hostnames_collision_namespace_scope_test.go b/e2e/ingress_hostnames_collision_namespace_scope_test.go index 317f1ce8..21b136ab 100644 --- a/e2e/ingress_hostnames_collision_namespace_scope_test.go +++ b/e2e/ingress_hostnames_collision_namespace_scope_test.go @@ -16,9 +16,9 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/utils" ) var _ = Describe("when handling Namespace scoped Ingress hostnames collision", func() { diff --git a/e2e/ingress_hostnames_collision_tenant_scope_test.go b/e2e/ingress_hostnames_collision_tenant_scope_test.go index 9e460494..4acb4b78 100644 --- a/e2e/ingress_hostnames_collision_tenant_scope_test.go +++ b/e2e/ingress_hostnames_collision_tenant_scope_test.go @@ -16,9 +16,9 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/utils" ) var _ = Describe("when handling Tenant scoped Ingress hostnames collision", func() { diff --git a/e2e/ingress_hostnames_test.go b/e2e/ingress_hostnames_test.go index b234a3db..8167d4b5 100644 --- a/e2e/ingress_hostnames_test.go +++ b/e2e/ingress_hostnames_test.go @@ -16,9 +16,9 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/utils" ) var _ = Describe("when Tenant handles Ingress hostnames", func() { diff --git a/e2e/missing_tenant_test.go b/e2e/missing_tenant_test.go index fdc98d41..cb8ebbe9 100644 --- a/e2e/missing_tenant_test.go +++ b/e2e/missing_tenant_test.go @@ -12,7 +12,7 @@ import ( . "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("creating a Namespace creation with no Tenant assigned", func() { diff --git a/e2e/namespace_additional_metadata_test.go b/e2e/namespace_additional_metadata_test.go index 4bac88bf..a432f30c 100644 --- a/e2e/namespace_additional_metadata_test.go +++ b/e2e/namespace_additional_metadata_test.go @@ -13,8 +13,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("creating a Namespace for a Tenant with additional metadata", func() { diff --git a/e2e/namespace_capsule_label_test.go b/e2e/namespace_capsule_label_test.go index aa858dfd..c517f25f 100644 --- a/e2e/namespace_capsule_label_test.go +++ b/e2e/namespace_capsule_label_test.go @@ -14,7 +14,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("creating several Namespaces for a Tenant", func() { diff --git a/e2e/namespace_user_metadata_test.go b/e2e/namespace_user_metadata_test.go index 7f7d5773..3f5c02f0 100644 --- a/e2e/namespace_user_metadata_test.go +++ b/e2e/namespace_user_metadata_test.go @@ -15,8 +15,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("creating a Namespace with user-specified labels and annotations", func() { diff --git a/e2e/new_namespace_test.go b/e2e/new_namespace_test.go index 21df0812..6ec99f1f 100644 --- a/e2e/new_namespace_test.go +++ b/e2e/new_namespace_test.go @@ -12,7 +12,7 @@ import ( . "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("creating a Namespaces as different type of Tenant owners", func() { diff --git a/e2e/node_user_metadata_test.go b/e2e/node_user_metadata_test.go index 2a02ba18..9d834b2b 100644 --- a/e2e/node_user_metadata_test.go +++ b/e2e/node_user_metadata_test.go @@ -15,9 +15,9 @@ import ( rbacv1 "k8s.io/api/rbac/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) var _ = Describe("modifying node labels and annotations", func() { diff --git a/e2e/overquota_namespace_test.go b/e2e/overquota_namespace_test.go index 9587baa5..6687a5cb 100644 --- a/e2e/overquota_namespace_test.go +++ b/e2e/overquota_namespace_test.go @@ -13,7 +13,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/utils/pointer" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("creating a Namespace in over-quota of three", func() { diff --git a/e2e/owner_webhooks_test.go b/e2e/owner_webhooks_test.go index bc1f8f85..d4a36879 100644 --- a/e2e/owner_webhooks_test.go +++ b/e2e/owner_webhooks_test.go @@ -17,8 +17,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("when Tenant owner interacts with the webhooks", func() { diff --git a/e2e/pod_priority_class_test.go b/e2e/pod_priority_class_test.go index 0e96c555..24e95cb3 100644 --- a/e2e/pod_priority_class_test.go +++ b/e2e/pod_priority_class_test.go @@ -19,8 +19,8 @@ import ( "k8s.io/apimachinery/pkg/selection" "sigs.k8s.io/controller-runtime/pkg/client" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("enforcing a Priority Class", func() { diff --git a/e2e/pod_runtime_class_test.go b/e2e/pod_runtime_class_test.go index 58c5339a..d9665106 100644 --- a/e2e/pod_runtime_class_test.go +++ b/e2e/pod_runtime_class_test.go @@ -16,9 +16,9 @@ import ( nodev1 "k8s.io/api/node/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("enforcing a Runtime Class", func() { diff --git a/e2e/preventing_pv_cross_tenant_mount_test.go b/e2e/preventing_pv_cross_tenant_mount_test.go index 0618bb58..baa96741 100644 --- a/e2e/preventing_pv_cross_tenant_mount_test.go +++ b/e2e/preventing_pv_cross_tenant_mount_test.go @@ -17,7 +17,7 @@ import ( "k8s.io/utils/pointer" "sigs.k8s.io/controller-runtime/pkg/client" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("preventing PersistentVolume cross-tenant mount", func() { diff --git a/e2e/protected_namespace_regex_test.go b/e2e/protected_namespace_regex_test.go index 3b4279b9..306e15b2 100644 --- a/e2e/protected_namespace_regex_test.go +++ b/e2e/protected_namespace_regex_test.go @@ -12,7 +12,7 @@ import ( . "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("creating a Namespace with a protected Namespace regex enabled", func() { diff --git a/e2e/resource_quota_exceeded_test.go b/e2e/resource_quota_exceeded_test.go index 86813518..d16465da 100644 --- a/e2e/resource_quota_exceeded_test.go +++ b/e2e/resource_quota_exceeded_test.go @@ -9,7 +9,7 @@ import ( "context" "fmt" - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" @@ -20,7 +20,7 @@ import ( "k8s.io/apimachinery/pkg/types" "k8s.io/utils/pointer" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("exceeding a Tenant resource quota", func() { diff --git a/e2e/sa_prevent_privilege_escalation_test.go b/e2e/sa_prevent_privilege_escalation_test.go index b31a4a86..192b7e5c 100644 --- a/e2e/sa_prevent_privilege_escalation_test.go +++ b/e2e/sa_prevent_privilege_escalation_test.go @@ -19,7 +19,7 @@ import ( "k8s.io/client-go/kubernetes" "sigs.k8s.io/controller-runtime/pkg/client/config" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("trying to escalate from a Tenant Namespace ServiceAccount", func() { diff --git a/e2e/selecting_non_owned_tenant_test.go b/e2e/selecting_non_owned_tenant_test.go index 8734dbd5..9b8d8fa1 100644 --- a/e2e/selecting_non_owned_tenant_test.go +++ b/e2e/selecting_non_owned_tenant_test.go @@ -8,14 +8,14 @@ package e2e import ( "context" - "github.com/clastix/capsule/pkg/utils" + "github.com/projectcapsule/capsule/pkg/utils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("creating a Namespace trying to select a third Tenant", func() { diff --git a/e2e/selecting_tenant_fail_test.go b/e2e/selecting_tenant_fail_test.go index 95253c45..8615a1f1 100644 --- a/e2e/selecting_tenant_fail_test.go +++ b/e2e/selecting_tenant_fail_test.go @@ -12,7 +12,7 @@ import ( . "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("creating a Namespace without a Tenant selector when user owns multiple Tenants", func() { diff --git a/e2e/selecting_tenant_with_label_test.go b/e2e/selecting_tenant_with_label_test.go index 093a2712..32df40b0 100644 --- a/e2e/selecting_tenant_with_label_test.go +++ b/e2e/selecting_tenant_with_label_test.go @@ -8,13 +8,13 @@ package e2e import ( "context" - "github.com/clastix/capsule/pkg/utils" + "github.com/projectcapsule/capsule/pkg/utils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("creating a Namespace with Tenant selector when user owns multiple tenants", func() { diff --git a/e2e/service_metadata_test.go b/e2e/service_metadata_test.go index b27524fc..c13941fc 100644 --- a/e2e/service_metadata_test.go +++ b/e2e/service_metadata_test.go @@ -21,9 +21,9 @@ import ( "k8s.io/utils/pointer" "sigs.k8s.io/controller-runtime/pkg/client" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/utils" ) var _ = Describe("adding metadata to Service objects", func() { diff --git a/e2e/storage_class_test.go b/e2e/storage_class_test.go index c182c4ea..05dfd6d1 100644 --- a/e2e/storage_class_test.go +++ b/e2e/storage_class_test.go @@ -24,8 +24,8 @@ import ( "k8s.io/utils/pointer" "sigs.k8s.io/controller-runtime/pkg/client" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("when Tenant handles Storage classes", func() { diff --git a/e2e/suite_test.go b/e2e/suite_test.go index 55a6e370..5b10f159 100644 --- a/e2e/suite_test.go +++ b/e2e/suite_test.go @@ -19,7 +19,7 @@ import ( logf "sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log/zap" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) // These tests use Ginkgo (BDD-style Go testing framework). Refer to diff --git a/e2e/tenant_cordoning_test.go b/e2e/tenant_cordoning_test.go index 95a77228..ed58651b 100644 --- a/e2e/tenant_cordoning_test.go +++ b/e2e/tenant_cordoning_test.go @@ -15,7 +15,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("cordoning a Tenant", func() { diff --git a/e2e/tenant_name_webhook_test.go b/e2e/tenant_name_webhook_test.go index 91abe378..0cd3578e 100644 --- a/e2e/tenant_name_webhook_test.go +++ b/e2e/tenant_name_webhook_test.go @@ -12,7 +12,7 @@ import ( . "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("creating a Tenant with wrong name", func() { diff --git a/e2e/tenant_protected_webhook_test.go b/e2e/tenant_protected_webhook_test.go index f41175a3..a526c9ee 100644 --- a/e2e/tenant_protected_webhook_test.go +++ b/e2e/tenant_protected_webhook_test.go @@ -13,7 +13,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("Deleting a tenant with protected annotation", func() { diff --git a/e2e/tenant_resources_changes_test.go b/e2e/tenant_resources_changes_test.go index 17a7e713..21ae2e07 100644 --- a/e2e/tenant_resources_changes_test.go +++ b/e2e/tenant_resources_changes_test.go @@ -9,7 +9,7 @@ import ( "context" "fmt" - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" @@ -20,7 +20,7 @@ import ( "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/client" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("changing Tenant managed Kubernetes resources", func() { diff --git a/e2e/tenant_resources_test.go b/e2e/tenant_resources_test.go index 5337775e..0d3965cd 100644 --- a/e2e/tenant_resources_test.go +++ b/e2e/tenant_resources_test.go @@ -10,7 +10,7 @@ import ( "fmt" "strings" - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" @@ -20,7 +20,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) var _ = Describe("creating namespaces within a Tenant with resources", func() { diff --git a/e2e/tenantresource_test.go b/e2e/tenantresource_test.go index 478db0f8..444d26ff 100644 --- a/e2e/tenantresource_test.go +++ b/e2e/tenantresource_test.go @@ -22,8 +22,8 @@ import ( "k8s.io/utils/pointer" "sigs.k8s.io/controller-runtime/pkg/client" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" ) var _ = Describe("Creating a TenantResource object", func() { diff --git a/e2e/utils_test.go b/e2e/utils_test.go index 46ec50d1..98e4897a 100644 --- a/e2e/utils_test.go +++ b/e2e/utils_test.go @@ -23,7 +23,7 @@ import ( "k8s.io/apimachinery/pkg/version" "k8s.io/client-go/kubernetes" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) const ( diff --git a/go.mod b/go.mod index 8b3d2b31..bb684037 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/clastix/capsule +module github.com/projectcapsule/capsule go 1.19 diff --git a/main.go b/main.go index 52d28240..b67e6660 100644 --- a/main.go +++ b/main.go @@ -26,32 +26,32 @@ import ( "sigs.k8s.io/controller-runtime/pkg/log/zap" ctrlwebhook "sigs.k8s.io/controller-runtime/pkg/webhook" - capsulev1alpha1 "github.com/clastix/capsule/api/v1alpha1" - capsulev1beta1 "github.com/clastix/capsule/api/v1beta1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - configcontroller "github.com/clastix/capsule/controllers/config" - "github.com/clastix/capsule/controllers/pv" - rbaccontroller "github.com/clastix/capsule/controllers/rbac" - "github.com/clastix/capsule/controllers/resources" - servicelabelscontroller "github.com/clastix/capsule/controllers/servicelabels" - tenantcontroller "github.com/clastix/capsule/controllers/tenant" - tlscontroller "github.com/clastix/capsule/controllers/tls" - "github.com/clastix/capsule/pkg/configuration" - "github.com/clastix/capsule/pkg/indexer" - "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/defaults" - "github.com/clastix/capsule/pkg/webhook/ingress" - namespacewebhook "github.com/clastix/capsule/pkg/webhook/namespace" - "github.com/clastix/capsule/pkg/webhook/networkpolicy" - "github.com/clastix/capsule/pkg/webhook/node" - "github.com/clastix/capsule/pkg/webhook/ownerreference" - "github.com/clastix/capsule/pkg/webhook/pod" - "github.com/clastix/capsule/pkg/webhook/pvc" - "github.com/clastix/capsule/pkg/webhook/route" - "github.com/clastix/capsule/pkg/webhook/service" - "github.com/clastix/capsule/pkg/webhook/tenant" - tntresource "github.com/clastix/capsule/pkg/webhook/tenantresource" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1alpha1 "github.com/projectcapsule/capsule/api/v1alpha1" + capsulev1beta1 "github.com/projectcapsule/capsule/api/v1beta1" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + configcontroller "github.com/projectcapsule/capsule/controllers/config" + "github.com/projectcapsule/capsule/controllers/pv" + rbaccontroller "github.com/projectcapsule/capsule/controllers/rbac" + "github.com/projectcapsule/capsule/controllers/resources" + servicelabelscontroller "github.com/projectcapsule/capsule/controllers/servicelabels" + tenantcontroller "github.com/projectcapsule/capsule/controllers/tenant" + tlscontroller "github.com/projectcapsule/capsule/controllers/tls" + "github.com/projectcapsule/capsule/pkg/configuration" + "github.com/projectcapsule/capsule/pkg/indexer" + "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/defaults" + "github.com/projectcapsule/capsule/pkg/webhook/ingress" + namespacewebhook "github.com/projectcapsule/capsule/pkg/webhook/namespace" + "github.com/projectcapsule/capsule/pkg/webhook/networkpolicy" + "github.com/projectcapsule/capsule/pkg/webhook/node" + "github.com/projectcapsule/capsule/pkg/webhook/ownerreference" + "github.com/projectcapsule/capsule/pkg/webhook/pod" + "github.com/projectcapsule/capsule/pkg/webhook/pvc" + "github.com/projectcapsule/capsule/pkg/webhook/route" + "github.com/projectcapsule/capsule/pkg/webhook/service" + "github.com/projectcapsule/capsule/pkg/webhook/tenant" + tntresource "github.com/projectcapsule/capsule/pkg/webhook/tenantresource" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) var ( diff --git a/pkg/configuration/client.go b/pkg/configuration/client.go index c50d1b20..8d65ccae 100644 --- a/pkg/configuration/client.go +++ b/pkg/configuration/client.go @@ -12,8 +12,8 @@ import ( "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/client" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsuleapi "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsuleapi "github.com/projectcapsule/capsule/pkg/api" ) // capsuleConfiguration is the Capsule Configuration retrieval mode diff --git a/pkg/configuration/configuration.go b/pkg/configuration/configuration.go index 68ad6416..c91350fc 100644 --- a/pkg/configuration/configuration.go +++ b/pkg/configuration/configuration.go @@ -6,7 +6,7 @@ package configuration import ( "regexp" - capsuleapi "github.com/clastix/capsule/pkg/api" + capsuleapi "github.com/projectcapsule/capsule/pkg/api" ) const ( diff --git a/pkg/indexer/indexer.go b/pkg/indexer/indexer.go index e726ca8b..7f01e758 100644 --- a/pkg/indexer/indexer.go +++ b/pkg/indexer/indexer.go @@ -14,12 +14,12 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/manager" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/indexer/ingress" - "github.com/clastix/capsule/pkg/indexer/namespace" - "github.com/clastix/capsule/pkg/indexer/tenant" - "github.com/clastix/capsule/pkg/indexer/tenantresource" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/indexer/ingress" + "github.com/projectcapsule/capsule/pkg/indexer/namespace" + "github.com/projectcapsule/capsule/pkg/indexer/tenant" + "github.com/projectcapsule/capsule/pkg/indexer/tenantresource" + "github.com/projectcapsule/capsule/pkg/utils" ) type CustomIndexer interface { diff --git a/pkg/indexer/namespace/namespaces.go b/pkg/indexer/namespace/namespaces.go index 87ea803b..cc4a1527 100644 --- a/pkg/indexer/namespace/namespaces.go +++ b/pkg/indexer/namespace/namespaces.go @@ -9,7 +9,7 @@ import ( corev1 "k8s.io/api/core/v1" "sigs.k8s.io/controller-runtime/pkg/client" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) type OwnerReference struct{} diff --git a/pkg/indexer/tenant/namespaces.go b/pkg/indexer/tenant/namespaces.go index ab9d8008..7aced795 100644 --- a/pkg/indexer/tenant/namespaces.go +++ b/pkg/indexer/tenant/namespaces.go @@ -6,7 +6,7 @@ package tenant import ( "sigs.k8s.io/controller-runtime/pkg/client" - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" ) type NamespacesReference struct { diff --git a/pkg/indexer/tenant/owner.go b/pkg/indexer/tenant/owner.go index 46dc3c69..e871ab9c 100644 --- a/pkg/indexer/tenant/owner.go +++ b/pkg/indexer/tenant/owner.go @@ -8,8 +8,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/utils" ) type OwnerReference struct{} diff --git a/pkg/indexer/tenantresource/global.go b/pkg/indexer/tenantresource/global.go index 380d9eb8..a3253b3b 100644 --- a/pkg/indexer/tenantresource/global.go +++ b/pkg/indexer/tenantresource/global.go @@ -7,7 +7,7 @@ package tenantresource import ( "sigs.k8s.io/controller-runtime/pkg/client" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) type GlobalProcessedItems struct{} diff --git a/pkg/indexer/tenantresource/local.go b/pkg/indexer/tenantresource/local.go index 9413400c..a1633c9a 100644 --- a/pkg/indexer/tenantresource/local.go +++ b/pkg/indexer/tenantresource/local.go @@ -7,7 +7,7 @@ package tenantresource import ( "sigs.k8s.io/controller-runtime/pkg/client" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) type LocalProcessedItems struct{} diff --git a/pkg/utils/node_selector.go b/pkg/utils/node_selector.go index 94f3b785..ccf2a4b9 100644 --- a/pkg/utils/node_selector.go +++ b/pkg/utils/node_selector.go @@ -8,7 +8,7 @@ import ( "sort" "strings" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) const ( diff --git a/pkg/utils/owner.go b/pkg/utils/owner.go index fad2c695..12c0b5c0 100644 --- a/pkg/utils/owner.go +++ b/pkg/utils/owner.go @@ -6,7 +6,7 @@ package utils import ( "fmt" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) func GetOwnersWithKinds(tenant *capsulev1beta2.Tenant) (owners []string) { diff --git a/pkg/utils/tenant_labels.go b/pkg/utils/tenant_labels.go index db97f7ae..65dc5b76 100644 --- a/pkg/utils/tenant_labels.go +++ b/pkg/utils/tenant_labels.go @@ -11,9 +11,9 @@ import ( rbacv1 "k8s.io/api/rbac/v1" "k8s.io/apimachinery/pkg/runtime" - "github.com/clastix/capsule/api/v1alpha1" - "github.com/clastix/capsule/api/v1beta1" - "github.com/clastix/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/api/v1alpha1" + "github.com/projectcapsule/capsule/api/v1beta1" + "github.com/projectcapsule/capsule/api/v1beta2" ) func GetTypeLabel(t runtime.Object) (label string, err error) { diff --git a/pkg/webhook/defaults/handler.go b/pkg/webhook/defaults/handler.go index 57b38492..1f5e0d36 100644 --- a/pkg/webhook/defaults/handler.go +++ b/pkg/webhook/defaults/handler.go @@ -12,8 +12,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - "github.com/clastix/capsule/pkg/configuration" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/configuration" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" ) type handler struct { diff --git a/pkg/webhook/defaults/ingress.go b/pkg/webhook/defaults/ingress.go index 7038245c..8bbb07f0 100644 --- a/pkg/webhook/defaults/ingress.go +++ b/pkg/webhook/defaults/ingress.go @@ -15,9 +15,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsuleingress "github.com/clastix/capsule/pkg/webhook/ingress" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsuleingress "github.com/projectcapsule/capsule/pkg/webhook/ingress" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) func mutateIngressDefaults(ctx context.Context, req admission.Request, version *version.Version, c client.Client, decoder *admission.Decoder, recorder record.EventRecorder, namespace string) *admission.Response { diff --git a/pkg/webhook/defaults/pods.go b/pkg/webhook/defaults/pods.go index 3e5ff455..612cc81e 100644 --- a/pkg/webhook/defaults/pods.go +++ b/pkg/webhook/defaults/pods.go @@ -14,8 +14,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) func mutatePodDefaults(ctx context.Context, req admission.Request, c client.Client, decoder *admission.Decoder, recorder record.EventRecorder, namespace string) *admission.Response { diff --git a/pkg/webhook/defaults/storage.go b/pkg/webhook/defaults/storage.go index 2513524b..89b4efc5 100644 --- a/pkg/webhook/defaults/storage.go +++ b/pkg/webhook/defaults/storage.go @@ -14,8 +14,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) func mutatePVCDefaults(ctx context.Context, req admission.Request, c client.Client, decoder *admission.Decoder, recorder record.EventRecorder, namespace string) *admission.Response { diff --git a/pkg/webhook/ingress/errors.go b/pkg/webhook/ingress/errors.go index ea51eb72..afb6212d 100644 --- a/pkg/webhook/ingress/errors.go +++ b/pkg/webhook/ingress/errors.go @@ -7,8 +7,8 @@ import ( "fmt" "strings" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/webhook/utils" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type ingressClassForbiddenError struct { diff --git a/pkg/webhook/ingress/utils.go b/pkg/webhook/ingress/utils.go index 0fe7f99a..bbb15ad8 100644 --- a/pkg/webhook/ingress/utils.go +++ b/pkg/webhook/ingress/utils.go @@ -14,7 +14,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) func TenantFromIngress(ctx context.Context, c client.Client, ingress Ingress) (*capsulev1beta2.Tenant, error) { diff --git a/pkg/webhook/ingress/validate_class.go b/pkg/webhook/ingress/validate_class.go index 9f2018d2..47ff3df5 100644 --- a/pkg/webhook/ingress/validate_class.go +++ b/pkg/webhook/ingress/validate_class.go @@ -14,10 +14,10 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/configuration" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/configuration" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type class struct { diff --git a/pkg/webhook/ingress/validate_collision.go b/pkg/webhook/ingress/validate_collision.go index e552be81..022d6460 100644 --- a/pkg/webhook/ingress/validate_collision.go +++ b/pkg/webhook/ingress/validate_collision.go @@ -18,12 +18,12 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/configuration" - "github.com/clastix/capsule/pkg/indexer/ingress" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/configuration" + "github.com/projectcapsule/capsule/pkg/indexer/ingress" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type collision struct { diff --git a/pkg/webhook/ingress/validate_hostnames.go b/pkg/webhook/ingress/validate_hostnames.go index c5bca27f..a11eedc9 100644 --- a/pkg/webhook/ingress/validate_hostnames.go +++ b/pkg/webhook/ingress/validate_hostnames.go @@ -14,10 +14,10 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/configuration" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/configuration" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type hostnames struct { diff --git a/pkg/webhook/ingress/validate_wildcard.go b/pkg/webhook/ingress/validate_wildcard.go index c4c8a132..fd29800a 100644 --- a/pkg/webhook/ingress/validate_wildcard.go +++ b/pkg/webhook/ingress/validate_wildcard.go @@ -14,9 +14,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type wildcard struct{} diff --git a/pkg/webhook/namespace/errors.go b/pkg/webhook/namespace/errors.go index 8b0ec4f2..ba37aab8 100644 --- a/pkg/webhook/namespace/errors.go +++ b/pkg/webhook/namespace/errors.go @@ -7,7 +7,7 @@ import ( "fmt" "strings" - capsuleapi "github.com/clastix/capsule/pkg/api" + capsuleapi "github.com/projectcapsule/capsule/pkg/api" ) //nolint:predeclared diff --git a/pkg/webhook/namespace/freezed.go b/pkg/webhook/namespace/freezed.go index a9a1234d..8b4f26a1 100644 --- a/pkg/webhook/namespace/freezed.go +++ b/pkg/webhook/namespace/freezed.go @@ -13,10 +13,10 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/configuration" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/configuration" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type freezedHandler struct { diff --git a/pkg/webhook/namespace/owner_reference.go b/pkg/webhook/namespace/owner_reference.go index 7f4e2960..350c1423 100644 --- a/pkg/webhook/namespace/owner_reference.go +++ b/pkg/webhook/namespace/owner_reference.go @@ -13,8 +13,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type ownerReferenceHandler struct{} diff --git a/pkg/webhook/namespace/patch.go b/pkg/webhook/namespace/patch.go index 1f3fb18e..653ecb6a 100644 --- a/pkg/webhook/namespace/patch.go +++ b/pkg/webhook/namespace/patch.go @@ -14,10 +14,10 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsuleutils "github.com/clastix/capsule/pkg/utils" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsuleutils "github.com/projectcapsule/capsule/pkg/utils" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type patchHandler struct{} diff --git a/pkg/webhook/namespace/prefix.go b/pkg/webhook/namespace/prefix.go index 7c998ba6..105a6d57 100644 --- a/pkg/webhook/namespace/prefix.go +++ b/pkg/webhook/namespace/prefix.go @@ -14,10 +14,10 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/configuration" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/configuration" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type prefixHandler struct { diff --git a/pkg/webhook/namespace/quota.go b/pkg/webhook/namespace/quota.go index 86010e86..5d4f9855 100644 --- a/pkg/webhook/namespace/quota.go +++ b/pkg/webhook/namespace/quota.go @@ -12,9 +12,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type quotaHandler struct{} diff --git a/pkg/webhook/namespace/user_metadata.go b/pkg/webhook/namespace/user_metadata.go index 6d42f408..9c1bb093 100644 --- a/pkg/webhook/namespace/user_metadata.go +++ b/pkg/webhook/namespace/user_metadata.go @@ -13,9 +13,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type userMetadataHandler struct{} diff --git a/pkg/webhook/networkpolicy/validating.go b/pkg/webhook/networkpolicy/validating.go index f5cc6b5a..ef084155 100644 --- a/pkg/webhook/networkpolicy/validating.go +++ b/pkg/webhook/networkpolicy/validating.go @@ -13,10 +13,10 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsuleutils "github.com/clastix/capsule/pkg/utils" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsuleutils "github.com/projectcapsule/capsule/pkg/utils" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type handler struct{} diff --git a/pkg/webhook/node/errors.go b/pkg/webhook/node/errors.go index 1b7a5f37..55087fa4 100644 --- a/pkg/webhook/node/errors.go +++ b/pkg/webhook/node/errors.go @@ -7,7 +7,7 @@ import ( "fmt" "strings" - capsulev1beta2 "github.com/clastix/capsule/pkg/api" + capsulev1beta2 "github.com/projectcapsule/capsule/pkg/api" ) //nolint:predeclared diff --git a/pkg/webhook/node/user_metadata.go b/pkg/webhook/node/user_metadata.go index 01e2ea8d..c800f287 100644 --- a/pkg/webhook/node/user_metadata.go +++ b/pkg/webhook/node/user_metadata.go @@ -13,9 +13,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - "github.com/clastix/capsule/pkg/configuration" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + "github.com/projectcapsule/capsule/pkg/configuration" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type userMetadataHandler struct { diff --git a/pkg/webhook/ownerreference/patching.go b/pkg/webhook/ownerreference/patching.go index fb950cba..3fd99359 100644 --- a/pkg/webhook/ownerreference/patching.go +++ b/pkg/webhook/ownerreference/patching.go @@ -19,11 +19,11 @@ import ( "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/configuration" - capsuleutils "github.com/clastix/capsule/pkg/utils" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/configuration" + capsuleutils "github.com/projectcapsule/capsule/pkg/utils" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type handler struct { diff --git a/pkg/webhook/pod/containerregistry.go b/pkg/webhook/pod/containerregistry.go index c21e4cf0..17c7148e 100644 --- a/pkg/webhook/pod/containerregistry.go +++ b/pkg/webhook/pod/containerregistry.go @@ -12,9 +12,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type containerRegistryHandler struct{} diff --git a/pkg/webhook/pod/containerregistry_errors.go b/pkg/webhook/pod/containerregistry_errors.go index 776594a4..aa9961a8 100644 --- a/pkg/webhook/pod/containerregistry_errors.go +++ b/pkg/webhook/pod/containerregistry_errors.go @@ -7,7 +7,7 @@ import ( "fmt" "strings" - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" ) type missingContainerRegistryError struct { diff --git a/pkg/webhook/pod/imagepullpolicy.go b/pkg/webhook/pod/imagepullpolicy.go index 3b160b20..73c53030 100644 --- a/pkg/webhook/pod/imagepullpolicy.go +++ b/pkg/webhook/pod/imagepullpolicy.go @@ -12,9 +12,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type imagePullPolicy struct{} diff --git a/pkg/webhook/pod/imagepullpolicy_pullpolicy.go b/pkg/webhook/pod/imagepullpolicy_pullpolicy.go index ccafe549..ec28123d 100644 --- a/pkg/webhook/pod/imagepullpolicy_pullpolicy.go +++ b/pkg/webhook/pod/imagepullpolicy_pullpolicy.go @@ -6,7 +6,7 @@ package pod import ( "strings" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) type PullPolicy interface { diff --git a/pkg/webhook/pod/priorityclass.go b/pkg/webhook/pod/priorityclass.go index 81d02eec..8f4d7148 100644 --- a/pkg/webhook/pod/priorityclass.go +++ b/pkg/webhook/pod/priorityclass.go @@ -12,8 +12,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type priorityClass struct{} diff --git a/pkg/webhook/pod/priorityclass_errors.go b/pkg/webhook/pod/priorityclass_errors.go index 9198d598..0cf2a587 100644 --- a/pkg/webhook/pod/priorityclass_errors.go +++ b/pkg/webhook/pod/priorityclass_errors.go @@ -6,8 +6,8 @@ package pod import ( "fmt" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/webhook/utils" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type podPriorityClassForbiddenError struct { diff --git a/pkg/webhook/pod/runtimeclass.go b/pkg/webhook/pod/runtimeclass.go index 08d539c0..71059dac 100644 --- a/pkg/webhook/pod/runtimeclass.go +++ b/pkg/webhook/pod/runtimeclass.go @@ -14,8 +14,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type runtimeClass struct{} diff --git a/pkg/webhook/pod/runtimeclass_errors.go b/pkg/webhook/pod/runtimeclass_errors.go index 0a1d9c73..eb037fb0 100644 --- a/pkg/webhook/pod/runtimeclass_errors.go +++ b/pkg/webhook/pod/runtimeclass_errors.go @@ -6,8 +6,8 @@ package pod import ( "fmt" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/webhook/utils" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type podRuntimeClassForbiddenError struct { diff --git a/pkg/webhook/pvc/errors.go b/pkg/webhook/pvc/errors.go index 11337172..26043a9e 100644 --- a/pkg/webhook/pvc/errors.go +++ b/pkg/webhook/pvc/errors.go @@ -6,8 +6,8 @@ package pvc import ( "fmt" - "github.com/clastix/capsule/pkg/api" - "github.com/clastix/capsule/pkg/webhook/utils" + "github.com/projectcapsule/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type storageClassNotValidError struct { diff --git a/pkg/webhook/pvc/pv.go b/pkg/webhook/pvc/pv.go index 6f004d25..77137284 100644 --- a/pkg/webhook/pvc/pv.go +++ b/pkg/webhook/pvc/pv.go @@ -14,9 +14,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type PV struct { diff --git a/pkg/webhook/pvc/validating.go b/pkg/webhook/pvc/validating.go index 03b6fb2c..1651531a 100644 --- a/pkg/webhook/pvc/validating.go +++ b/pkg/webhook/pvc/validating.go @@ -13,8 +13,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type validating struct{} diff --git a/pkg/webhook/route/cordoning.go b/pkg/webhook/route/cordoning.go index 4d6357cc..d2771e35 100644 --- a/pkg/webhook/route/cordoning.go +++ b/pkg/webhook/route/cordoning.go @@ -4,7 +4,7 @@ package route import ( - capsulewebhook "github.com/clastix/capsule/pkg/webhook" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" ) // +kubebuilder:webhook:path=/cordoning,mutating=false,sideEffects=None,admissionReviewVersions=v1,failurePolicy=fail,groups="*",resources="*",verbs=create;update;delete,versions="*",name=cordoning.tenant.capsule.clastix.io diff --git a/pkg/webhook/route/defaults.go b/pkg/webhook/route/defaults.go index b42ca895..ed4ef7ea 100644 --- a/pkg/webhook/route/defaults.go +++ b/pkg/webhook/route/defaults.go @@ -4,7 +4,7 @@ package route import ( - capsulewebhook "github.com/clastix/capsule/pkg/webhook" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" ) // +kubebuilder:webhook:path=/defaults,mutating=true,sideEffects=None,admissionReviewVersions=v1,failurePolicy=fail,groups="",resources=pods,verbs=create,versions=v1,name=pod.defaults.capsule.clastix.io diff --git a/pkg/webhook/route/ingresses.go b/pkg/webhook/route/ingresses.go index 980562fc..18221f32 100644 --- a/pkg/webhook/route/ingresses.go +++ b/pkg/webhook/route/ingresses.go @@ -4,7 +4,7 @@ package route import ( - capsulewebhook "github.com/clastix/capsule/pkg/webhook" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" ) // +kubebuilder:webhook:path=/ingresses,mutating=false,sideEffects=None,admissionReviewVersions=v1,failurePolicy=fail,groups=networking.k8s.io;extensions,resources=ingresses,verbs=create;update,versions=v1beta1;v1,name=ingress.capsule.clastix.io diff --git a/pkg/webhook/route/namespaces.go b/pkg/webhook/route/namespaces.go index 8de32da3..73b240a7 100644 --- a/pkg/webhook/route/namespaces.go +++ b/pkg/webhook/route/namespaces.go @@ -4,7 +4,7 @@ package route import ( - capsulewebhook "github.com/clastix/capsule/pkg/webhook" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" ) // +kubebuilder:webhook:path=/namespaces,mutating=false,sideEffects=None,admissionReviewVersions=v1,failurePolicy=fail,groups="",resources=namespaces,verbs=create;update;delete,versions=v1,name=namespaces.capsule.clastix.io diff --git a/pkg/webhook/route/networkpolicies.go b/pkg/webhook/route/networkpolicies.go index 20f92825..7c86fadb 100644 --- a/pkg/webhook/route/networkpolicies.go +++ b/pkg/webhook/route/networkpolicies.go @@ -4,7 +4,7 @@ package route import ( - capsulewebhook "github.com/clastix/capsule/pkg/webhook" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" ) // +kubebuilder:webhook:path=/networkpolicies,mutating=false,sideEffects=None,admissionReviewVersions=v1,failurePolicy=fail,groups="networking.k8s.io",resources=networkpolicies,verbs=update;delete,versions=v1,name=networkpolicies.capsule.clastix.io diff --git a/pkg/webhook/route/node.go b/pkg/webhook/route/node.go index 13dcbe20..11d5c3aa 100644 --- a/pkg/webhook/route/node.go +++ b/pkg/webhook/route/node.go @@ -4,7 +4,7 @@ package route import ( - capsulewebhook "github.com/clastix/capsule/pkg/webhook" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" ) // +kubebuilder:webhook:path=/nodes,mutating=false,sideEffects=None,admissionReviewVersions=v1,failurePolicy=fail,groups="",resources=nodes,verbs=update,versions=v1,name=nodes.capsule.clastix.io diff --git a/pkg/webhook/route/ownerreference.go b/pkg/webhook/route/ownerreference.go index 9fb903a2..115f5208 100644 --- a/pkg/webhook/route/ownerreference.go +++ b/pkg/webhook/route/ownerreference.go @@ -4,7 +4,7 @@ package route import ( - capsulewebhook "github.com/clastix/capsule/pkg/webhook" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" ) // +kubebuilder:webhook:path=/namespace-owner-reference,mutating=true,sideEffects=None,admissionReviewVersions=v1,failurePolicy=fail,groups="",resources=namespaces,verbs=create;update,versions=v1,name=owner.namespace.capsule.clastix.io diff --git a/pkg/webhook/route/pods.go b/pkg/webhook/route/pods.go index e704567d..fdad1a73 100644 --- a/pkg/webhook/route/pods.go +++ b/pkg/webhook/route/pods.go @@ -4,7 +4,7 @@ package route import ( - capsulewebhook "github.com/clastix/capsule/pkg/webhook" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" ) // +kubebuilder:webhook:path=/pods,mutating=false,sideEffects=None,admissionReviewVersions=v1,failurePolicy=fail,groups="",resources=pods,verbs=create;update,versions=v1,name=pods.capsule.clastix.io diff --git a/pkg/webhook/route/pvc.go b/pkg/webhook/route/pvc.go index 2892e064..8c361b02 100644 --- a/pkg/webhook/route/pvc.go +++ b/pkg/webhook/route/pvc.go @@ -4,7 +4,7 @@ package route import ( - capsulewebhook "github.com/clastix/capsule/pkg/webhook" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" ) // +kubebuilder:webhook:path=/persistentvolumeclaims,mutating=false,sideEffects=None,admissionReviewVersions=v1,failurePolicy=fail,groups="",resources=persistentvolumeclaims,verbs=create,versions=v1,name=pvc.capsule.clastix.io diff --git a/pkg/webhook/route/services.go b/pkg/webhook/route/services.go index c4f8dac8..3040872f 100644 --- a/pkg/webhook/route/services.go +++ b/pkg/webhook/route/services.go @@ -4,7 +4,7 @@ package route import ( - capsulewebhook "github.com/clastix/capsule/pkg/webhook" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" ) // +kubebuilder:webhook:path=/services,mutating=false,sideEffects=None,admissionReviewVersions=v1,failurePolicy=fail,groups="",resources=services,verbs=create;update,versions=v1,name=services.capsule.clastix.io diff --git a/pkg/webhook/route/tenantresource_objs.go b/pkg/webhook/route/tenantresource_objs.go index b1e8e3cc..00c3fb6b 100644 --- a/pkg/webhook/route/tenantresource_objs.go +++ b/pkg/webhook/route/tenantresource_objs.go @@ -4,7 +4,7 @@ package route import ( - capsulewebhook "github.com/clastix/capsule/pkg/webhook" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" ) // +kubebuilder:webhook:path=/tenantresource-objects,mutating=false,sideEffects=None,admissionReviewVersions=v1,failurePolicy=fail,groups="*",resources="*",verbs=update;delete,versions="*",name=resource-objects.tenant.capsule.clastix.io diff --git a/pkg/webhook/route/tenants.go b/pkg/webhook/route/tenants.go index 8059c8f7..05e12f62 100644 --- a/pkg/webhook/route/tenants.go +++ b/pkg/webhook/route/tenants.go @@ -4,7 +4,7 @@ package route import ( - capsulewebhook "github.com/clastix/capsule/pkg/webhook" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" ) // +kubebuilder:webhook:path=/tenants,mutating=false,sideEffects=None,admissionReviewVersions=v1,failurePolicy=fail,groups="capsule.clastix.io",resources=tenants,verbs=create;update;delete,versions=v1beta2,name=tenants.capsule.clastix.io diff --git a/pkg/webhook/service/errors.go b/pkg/webhook/service/errors.go index c85cb65b..ebb190c5 100644 --- a/pkg/webhook/service/errors.go +++ b/pkg/webhook/service/errors.go @@ -7,7 +7,7 @@ import ( "fmt" "strings" - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" ) type externalServiceIPForbiddenError struct { diff --git a/pkg/webhook/service/validating.go b/pkg/webhook/service/validating.go index 3dda98bb..845a416d 100644 --- a/pkg/webhook/service/validating.go +++ b/pkg/webhook/service/validating.go @@ -14,9 +14,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type handler struct{} diff --git a/pkg/webhook/tenant/containerregistry_regex.go b/pkg/webhook/tenant/containerregistry_regex.go index 2445e896..a0ee1c1e 100644 --- a/pkg/webhook/tenant/containerregistry_regex.go +++ b/pkg/webhook/tenant/containerregistry_regex.go @@ -12,9 +12,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type containerRegistryRegexHandler struct{} diff --git a/pkg/webhook/tenant/cordoning.go b/pkg/webhook/tenant/cordoning.go index 13b6a3f8..8c4d802f 100644 --- a/pkg/webhook/tenant/cordoning.go +++ b/pkg/webhook/tenant/cordoning.go @@ -14,10 +14,10 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/configuration" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/configuration" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type cordoningHandler struct { diff --git a/pkg/webhook/tenant/custom_resource_quota.go b/pkg/webhook/tenant/custom_resource_quota.go index e18ccbb9..2afbbfd2 100644 --- a/pkg/webhook/tenant/custom_resource_quota.go +++ b/pkg/webhook/tenant/custom_resource_quota.go @@ -16,9 +16,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type resourceCounterHandler struct { diff --git a/pkg/webhook/tenant/forbidden_annotations_regex.go b/pkg/webhook/tenant/forbidden_annotations_regex.go index 3cfb79f2..f01aff61 100644 --- a/pkg/webhook/tenant/forbidden_annotations_regex.go +++ b/pkg/webhook/tenant/forbidden_annotations_regex.go @@ -12,9 +12,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type forbiddenAnnotationsRegexHandler struct{} diff --git a/pkg/webhook/tenant/freezed_emitter.go b/pkg/webhook/tenant/freezed_emitter.go index a4c2d228..1617ed29 100644 --- a/pkg/webhook/tenant/freezed_emitter.go +++ b/pkg/webhook/tenant/freezed_emitter.go @@ -11,9 +11,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type freezedEmitterHandler struct{} diff --git a/pkg/webhook/tenant/hostname_regex.go b/pkg/webhook/tenant/hostname_regex.go index 23c68dc5..ef7e8dfb 100644 --- a/pkg/webhook/tenant/hostname_regex.go +++ b/pkg/webhook/tenant/hostname_regex.go @@ -12,9 +12,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type hostnameRegexHandler struct{} diff --git a/pkg/webhook/tenant/ingressclass_regex.go b/pkg/webhook/tenant/ingressclass_regex.go index e3349338..c012dccd 100644 --- a/pkg/webhook/tenant/ingressclass_regex.go +++ b/pkg/webhook/tenant/ingressclass_regex.go @@ -12,9 +12,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type ingressClassRegexHandler struct{} diff --git a/pkg/webhook/tenant/name.go b/pkg/webhook/tenant/name.go index 96ab98b3..b79db060 100644 --- a/pkg/webhook/tenant/name.go +++ b/pkg/webhook/tenant/name.go @@ -11,9 +11,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type nameHandler struct{} diff --git a/pkg/webhook/tenant/protected.go b/pkg/webhook/tenant/protected.go index 72d3612f..8dcff5be 100644 --- a/pkg/webhook/tenant/protected.go +++ b/pkg/webhook/tenant/protected.go @@ -11,9 +11,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type protectedHandler struct{} diff --git a/pkg/webhook/tenant/rolebindings_regex.go b/pkg/webhook/tenant/rolebindings_regex.go index cb7a655c..717d7c66 100644 --- a/pkg/webhook/tenant/rolebindings_regex.go +++ b/pkg/webhook/tenant/rolebindings_regex.go @@ -14,9 +14,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type rbRegexHandler struct{} diff --git a/pkg/webhook/tenant/serviceaccount_format.go b/pkg/webhook/tenant/serviceaccount_format.go index 6a394b15..487d1d7f 100644 --- a/pkg/webhook/tenant/serviceaccount_format.go +++ b/pkg/webhook/tenant/serviceaccount_format.go @@ -12,9 +12,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type saNameHandler struct{} diff --git a/pkg/webhook/tenant/storageclass_regex.go b/pkg/webhook/tenant/storageclass_regex.go index 9719ea6a..30b78fc3 100644 --- a/pkg/webhook/tenant/storageclass_regex.go +++ b/pkg/webhook/tenant/storageclass_regex.go @@ -12,9 +12,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type storageClassRegexHandler struct{} diff --git a/pkg/webhook/tenantresource/objects.go b/pkg/webhook/tenantresource/objects.go index 6398d921..daaa7447 100644 --- a/pkg/webhook/tenantresource/objects.go +++ b/pkg/webhook/tenantresource/objects.go @@ -14,10 +14,10 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/indexer/tenantresource" - capsulewebhook "github.com/clastix/capsule/pkg/webhook" - "github.com/clastix/capsule/pkg/webhook/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/indexer/tenantresource" + capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/webhook/utils" ) type cordoningHandler struct{} diff --git a/pkg/webhook/utils/error.go b/pkg/webhook/utils/error.go index fe137ee9..8406ab46 100644 --- a/pkg/webhook/utils/error.go +++ b/pkg/webhook/utils/error.go @@ -10,7 +10,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - "github.com/clastix/capsule/pkg/api" + "github.com/projectcapsule/capsule/pkg/api" ) func ErroredResponse(err error) *admission.Response { diff --git a/pkg/webhook/utils/in_capsule_groups.go b/pkg/webhook/utils/in_capsule_groups.go index 9089cec7..e26bb2d2 100644 --- a/pkg/webhook/utils/in_capsule_groups.go +++ b/pkg/webhook/utils/in_capsule_groups.go @@ -10,8 +10,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - "github.com/clastix/capsule/pkg/configuration" - "github.com/clastix/capsule/pkg/webhook" + "github.com/projectcapsule/capsule/pkg/configuration" + "github.com/projectcapsule/capsule/pkg/webhook" ) func InCapsuleGroups(configuration configuration.Configuration, handlers ...webhook.Handler) webhook.Handler { diff --git a/pkg/webhook/utils/is_capsule_user.go b/pkg/webhook/utils/is_capsule_user.go index bcd607c4..e35d9677 100644 --- a/pkg/webhook/utils/is_capsule_user.go +++ b/pkg/webhook/utils/is_capsule_user.go @@ -12,15 +12,15 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" - "github.com/clastix/capsule/pkg/utils" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" + "github.com/projectcapsule/capsule/pkg/utils" ) func IsCapsuleUser(ctx context.Context, req admission.Request, clt client.Client, userGroups []string) bool { groupList := utils.NewUserGroupList(req.UserInfo.Groups) // if the user is a ServiceAccount belonging to the kube-system namespace, definitely, it's not a Capsule user // and we can skip the check in case of Capsule user group assigned to system:authenticated - // (ref: https://github.com/clastix/capsule/issues/234) + // (ref: https://github.com/projectcapsule/capsule/issues/234) if groupList.Find("system:serviceaccounts:kube-system") { return false } diff --git a/pkg/webhook/utils/is_tenant_owner.go b/pkg/webhook/utils/is_tenant_owner.go index bd14f9a4..62c0ceb3 100644 --- a/pkg/webhook/utils/is_tenant_owner.go +++ b/pkg/webhook/utils/is_tenant_owner.go @@ -6,7 +6,7 @@ package utils import ( authenticationv1 "k8s.io/api/authentication/v1" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) func IsTenantOwner(owners capsulev1beta2.OwnerListSpec, userInfo authenticationv1.UserInfo) bool { diff --git a/pkg/webhook/utils/tenant_by_field.go b/pkg/webhook/utils/tenant_by_field.go index 3c9af276..8f01a95f 100644 --- a/pkg/webhook/utils/tenant_by_field.go +++ b/pkg/webhook/utils/tenant_by_field.go @@ -9,7 +9,7 @@ import ( "k8s.io/apimachinery/pkg/fields" "sigs.k8s.io/controller-runtime/pkg/client" - capsulev1beta2 "github.com/clastix/capsule/api/v1beta2" + capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2" ) func TenantByStatusNamespace(ctx context.Context, c client.Client, namespace string) (*capsulev1beta2.Tenant, error) { From 6ae411a86134fe4523ef077d6d9bd227bcfe6cdf Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Mon, 16 Oct 2023 13:58:41 +0200 Subject: [PATCH 2/6] docs: moving to new neutral organization Signed-off-by: Dario Tranchitella --- README.md | 8 ++++---- docs/content/contributing/development.md | 6 +++--- docs/content/contributing/governance.md | 2 +- docs/content/contributing/guidelines.md | 6 +++--- docs/content/contributing/release.md | 2 +- docs/content/general/getting-started.md | 6 +++--- docs/content/general/lens.md | 2 +- docs/content/general/proxy.md | 2 +- docs/content/guides/flux2-capsule.md | 4 ++-- docs/content/guides/monitoring.md | 6 +++--- docs/content/guides/upgrading.md | 6 +++--- docs/src/components/AppFooter.vue | 2 +- docs/src/components/AppNavbar.vue | 2 +- 13 files changed, 27 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 4ef97db4..7f28e7bf 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@

- + - + @@ -94,7 +94,7 @@ make helm-docs ## Community -Join the community, share and learn from it. You can find all the resources to how to contribute code and docs, connect with people in the [community repository](https://github.com/clastix/capsule-community). +Join the community, share and learn from it. You can find all the resources to how to contribute code and docs, connect with people in the [community repository](https://github.com/projectcapsule/capsule-community). Please read the [code of conduct](CODE_OF_CONDUCT.md). @@ -122,7 +122,7 @@ Please, refer to the [documentation page](https://capsule.clastix.io/docs/contri - Q. Is it production grade? - A. Although under frequent development and improvements, Capsule is ready to be used in production environments as currently, people are using it in public and private deployments. Check out the [release](https://github.com/clastix/capsule/releases) page for a detailed list of available versions. + A. Although under frequent development and improvements, Capsule is ready to be used in production environments as currently, people are using it in public and private deployments. Check out the [release](https://github.com/projectcapsule/capsule/releases) page for a detailed list of available versions. - Q. Does it work with my Kubernetes XYZ distribution? diff --git a/docs/content/contributing/development.md b/docs/content/contributing/development.md index e56ff8f5..43184ffe 100644 --- a/docs/content/contributing/development.md +++ b/docs/content/contributing/development.md @@ -107,12 +107,12 @@ $ git clone git@github.com:myuser/capsule.git && cd capsule It's a good practice to add the upstream as the remote too so we can easily fetch and merge the upstream to our fork: ```shell -$ git remote add upstream https://github.com/clastix/capsule.git +$ git remote add upstream https://github.com/projectcapsule/capsule.git $ git remote -vv origin git@github.com:myuser/capsule.git (fetch) origin git@github.com:myuser/capsule.git (push) -upstream https://github.com/clastix/capsule.git (fetch) -upstream https://github.com/clastix/capsule.git (push) +upstream https://github.com/projectcapsule/capsule.git (fetch) +upstream https://github.com/projectcapsule/capsule.git (push) ``` Pull all tags diff --git a/docs/content/contributing/governance.md b/docs/content/contributing/governance.md index 6c9af9b0..6c012d88 100644 --- a/docs/content/contributing/governance.md +++ b/docs/content/contributing/governance.md @@ -17,7 +17,7 @@ In the context of Capsule project, we consider the following roles: The release process will be governed by Maintainers. -Please, refer to the [maintainers file](https://github.com/clastix/capsule/blob/master/.github/maintainers.yaml) available in the source code. +Please, refer to the [maintainers file](https://github.com/projectcapsule/capsule/blob/master/.github/maintainers.yaml) available in the source code. ## Roadmap Planning diff --git a/docs/content/contributing/guidelines.md b/docs/content/contributing/guidelines.md index 5d101697..e6ac9717 100644 --- a/docs/content/contributing/guidelines.md +++ b/docs/content/contributing/guidelines.md @@ -59,7 +59,7 @@ You can easily check them issuing the _Make_ recipe `golint`. golangci-lint run -c .golangci.yml ``` -> Enabled linters and related options are defined in the [.golanci.yml file](https://github.com/clastix/capsule/blob/master/.golangci.yml) +> Enabled linters and related options are defined in the [.golanci.yml file](https://github.com/projectcapsule/capsule/blob/master/.golangci.yml) ### goimports @@ -77,7 +77,7 @@ To help you out you can use the _Make_ recipe `goimports` ``` # make goimports -goimports -w -l -local "github.com/clastix/capsule" . +goimports -w -l -local "github.com/projectcapsule/capsule" . ``` ## Finding contributions to work on @@ -108,4 +108,4 @@ Please, add a new single line at end of any file as the current coding style. ## Licensing -See the [LICENSE](https://github.com/clastix/capsule/blob/master/LICENSE) file for our project's licensing. We can ask you to confirm the licensing of your contribution. +See the [LICENSE](https://github.com/projectcapsule/capsule/blob/master/LICENSE) file for our project's licensing. We can ask you to confirm the licensing of your contribution. diff --git a/docs/content/contributing/release.md b/docs/content/contributing/release.md index aadf6a1f..668ab31f 100644 --- a/docs/content/contributing/release.md +++ b/docs/content/contributing/release.md @@ -28,7 +28,7 @@ This will trigger a _GitHub Action_ which builds a multi-arch container image, t ## Helm Chart hosting -The suggested installation tool is [Helm](https://helm.sh), and the Capsule chart is hosted in the [GitHub repository](https://github.com/clastix/capsule/tree/master/charts/capsule). +The suggested installation tool is [Helm](https://helm.sh), and the Capsule chart is hosted in the [GitHub repository](https://github.com/projectcapsule/capsule/tree/master/charts/capsule). For each Helm Chart release, a tit tag with the prefix `helm-v` will be issued to help developers to address the corresponding commit. The built Helm Charts are then automatically pushed upon tag release to the [CLASTIX Helm repository](https://clastix.github.io/charts). diff --git a/docs/content/general/getting-started.md b/docs/content/general/getting-started.md index 5eed9121..979e99e2 100644 --- a/docs/content/general/getting-started.md +++ b/docs/content/general/getting-started.md @@ -9,7 +9,7 @@ Make sure you have access to a Kubernetes cluster as administrator. There are two ways to install Capsule: * Use the [single YAML file installer](https://raw.githubusercontent.com/clastix/capsule/master/config/install.yaml) -* Use the [Capsule Helm Chart](https://github.com/clastix/capsule/blob/master/charts/capsule/README.md) +* Use the [Capsule Helm Chart](https://github.com/projectcapsule/capsule/blob/master/charts/capsule/README.md) ### Install with the single YAML file installer @@ -23,7 +23,7 @@ It will install the Capsule controller in a dedicated namespace `capsule-system` ### Install with Helm Chart -Please, refer to the instructions reported in the Capsule Helm Chart [README](https://github.com/clastix/capsule/blob/master/charts/capsule/README.md). +Please, refer to the instructions reported in the Capsule Helm Chart [README](https://github.com/projectcapsule/capsule/blob/master/charts/capsule/README.md). ## Create your first Tenant @@ -74,7 +74,7 @@ Users authenticated through an _OIDC token_ must have in their token: ] ``` -The [hack/create-user.sh](https://github.com/clastix/capsule/blob/master/hack/create-user.sh) can help you set up a dummy `kubeconfig` for the `alice` user acting as owner of a tenant called `oil` +The [hack/create-user.sh](https://github.com/projectcapsule/capsule/blob/master/hack/create-user.sh) can help you set up a dummy `kubeconfig` for the `alice` user acting as owner of a tenant called `oil` ```bash ./hack/create-user.sh alice oil diff --git a/docs/content/general/lens.md b/docs/content/general/lens.md index ec96f8ad..9db9ff14 100644 --- a/docs/content/general/lens.md +++ b/docs/content/general/lens.md @@ -8,4 +8,4 @@ Capsule extension for Lens provides these capabilities: - See tenant details and change through the embedded Lens editor - Check Resources Quota and Budget at both the tenant and namespace level -Please, see the [README](https://github.com/clastix/capsule-lens-extension) for details about the installation of the Capsule Lens Extension. +Please, see the [README](https://github.com/projectcapsule/capsule-lens-extension) for details about the installation of the Capsule Lens Extension. diff --git a/docs/content/general/proxy.md b/docs/content/general/proxy.md index 246a2193..237df36a 100644 --- a/docs/content/general/proxy.md +++ b/docs/content/general/proxy.md @@ -138,7 +138,7 @@ Each Resource kind can be granted with several verbs, such as: ## Cluster-scoped resources selection strategy precedence -Starting from [Capsule v0.2.0](https://github.com/clastix/capsule/releases/tag/v0.2.0), selection of cluster-scoped resources based on labels has been introduced. +Starting from [Capsule v0.2.0](https://github.com/projectcapsule/capsule/releases/tag/v0.2.0), selection of cluster-scoped resources based on labels has been introduced. Due to the limitations of Kubernetes API Server which not support `OR` label selector, the Capsule core team decided to give precedence to the label selector over the exact and regex match. diff --git a/docs/content/guides/flux2-capsule.md b/docs/content/guides/flux2-capsule.md index 6aa9ca02..fac1baeb 100644 --- a/docs/content/guides/flux2-capsule.md +++ b/docs/content/guides/flux2-capsule.md @@ -180,7 +180,7 @@ To deepen on this please go to [#Insights](#insights). ### How to setup Tenants GitOps-ready -Given that [Capsule](github.com/clastix/capsule) and [Capsule Proxy](github.com/clastix/capsule-proxy) are installed, and [Flux v2](https://github.com/fluxcd/flux2) configured with [multi-tenancy lockdown](https://fluxcd.io/docs/installation/#multi-tenancy-lockdown) features, of which the patch below: +Given that [Capsule](github.com/projectcapsule/capsule) and [Capsule Proxy](github.com/clastix/capsule-proxy) are installed, and [Flux v2](https://github.com/fluxcd/flux2) configured with [multi-tenancy lockdown](https://fluxcd.io/docs/installation/#multi-tenancy-lockdown) features, of which the patch below: ```yaml apiVersion: kustomize.config.k8s.io/v1beta1 @@ -435,7 +435,7 @@ For other protections against threats in this multi-tenancy scenario please see - https://fluxcd.io/docs/installation/#multi-tenancy-lockdown - https://fluxcd.io/blog/2022/05/may-2022-security-announcement/ - https://github.com/clastix/capsule-proxy/issues/218 -- https://github.com/clastix/capsule/issues/528 +- https://github.com/projectcapsule/capsule/issues/528 - https://github.com/clastix/flux2-capsule-multi-tenancy - https://github.com/fluxcd/flux2-multi-tenancy - https://fluxcd.io/docs/guides/repository-structure/ diff --git a/docs/content/guides/monitoring.md b/docs/content/guides/monitoring.md index 9f92f0d8..113a146d 100644 --- a/docs/content/guides/monitoring.md +++ b/docs/content/guides/monitoring.md @@ -18,7 +18,7 @@ To fastly deploy this monitoring stack, consider installing the [Prometheus Oper ## Quick Start -The Capsule Helm [charts](https://github.com/clastix/capsule/tree/master/charts/capsule) allow you to automatically create Kubernetes minimum resources needed for the proper functioning of the dashboard: +The Capsule Helm [charts](https://github.com/projectcapsule/capsule/tree/master/charts/capsule) allow you to automatically create Kubernetes minimum resources needed for the proper functioning of the dashboard: * ServiceMonitor * Role @@ -38,7 +38,7 @@ serviceMonitor: name: namespace: ``` -Take a look at the Helm charts [README.md](https://github.com/clastix/capsule/blob/master/charts/capsule/README.md#customize-the-installation) file for further customization. +Take a look at the Helm charts [README.md](https://github.com/projectcapsule/capsule/blob/master/charts/capsule/README.md#customize-the-installation) file for further customization. ### Check Service Monitor @@ -47,7 +47,7 @@ Verify that the service monitor is working correctly through the Prometheus "tar ![Prometheus Targets](./assets/prometheus_targets.png) ### Deploy dashboard -A dashboard for Grafana is provided as [dashboard.json](https://github.com/clastix/capsule/blob/master/config/grafana/dashboard.json). +A dashboard for Grafana is provided as [dashboard.json](https://github.com/projectcapsule/capsule/blob/master/config/grafana/dashboard.json). Render with `kustomize` the dashboard as a ConfigMap and apply in the namespace where Grafana is installed, making sure to select the correct Prometheus datasource: diff --git a/docs/content/guides/upgrading.md b/docs/content/guides/upgrading.md index caa6f1a9..f68d4dc0 100644 --- a/docs/content/guides/upgrading.md +++ b/docs/content/guides/upgrading.md @@ -2,9 +2,9 @@ List of Tenant API changes: -- [Capsule v0.1.0](https://github.com/clastix/capsule/releases/tag/v0.1.0) bump to `v1beta1` from `v1alpha1`. -- [Capsule v0.2.0](https://github.com/clastix/capsule/releases/tag/v0.2.0) bump to `v1beta2` from `v1beta1`, deprecating `v1alpha1`. -- [Capsule v0.3.0](https://github.com/clastix/capsule/releases/tag/v0.3.0) missing enums required by [Capsule Proxy](https://github.com/clastix/capsule-proxy). +- [Capsule v0.1.0](https://github.com/projectcapsule/capsule/releases/tag/v0.1.0) bump to `v1beta1` from `v1alpha1`. +- [Capsule v0.2.0](https://github.com/projectcapsule/capsule/releases/tag/v0.2.0) bump to `v1beta2` from `v1beta1`, deprecating `v1alpha1`. +- [Capsule v0.3.0](https://github.com/projectcapsule/capsule/releases/tag/v0.3.0) missing enums required by [Capsule Proxy](https://github.com/clastix/capsule-proxy). This document aims to provide support and a guide on how to perform a clean upgrade to the latest API version in order to avoid service disruption and data loss. diff --git a/docs/src/components/AppFooter.vue b/docs/src/components/AppFooter.vue index 910fc08b..2d2f6278 100644 --- a/docs/src/components/AppFooter.vue +++ b/docs/src/components/AppFooter.vue @@ -17,7 +17,7 @@