From 6bb32f22608bb6cbcef951674e05bade33c2c101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Tue, 16 Jul 2024 11:41:26 +0200 Subject: [PATCH] chore: move apis related packages (#1644) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché --- pkg/{ => apis}/conversion/configuration.go | 0 pkg/{ => apis}/conversion/install.go | 0 pkg/{ => apis}/validation/test/apply.go | 0 pkg/{ => apis}/validation/test/assert.go | 0 pkg/{ => apis}/validation/test/binding.go | 0 pkg/{ => apis}/validation/test/binding_test.go | 0 pkg/{ => apis}/validation/test/catch_finally.go | 0 pkg/{ => apis}/validation/test/catch_finally_test.go | 0 pkg/{ => apis}/validation/test/check.go | 0 pkg/{ => apis}/validation/test/check_test.go | 0 pkg/{ => apis}/validation/test/command.go | 0 pkg/{ => apis}/validation/test/command_test.go | 0 pkg/{ => apis}/validation/test/create.go | 0 pkg/{ => apis}/validation/test/delete.go | 0 pkg/{ => apis}/validation/test/describe.go | 0 pkg/{ => apis}/validation/test/describe_test.go | 0 pkg/{ => apis}/validation/test/error.go | 0 pkg/{ => apis}/validation/test/events.go | 0 pkg/{ => apis}/validation/test/events_test.go | 0 pkg/{ => apis}/validation/test/expectations.go | 0 pkg/{ => apis}/validation/test/expectations_test.go | 0 pkg/{ => apis}/validation/test/file_ref.go | 0 pkg/{ => apis}/validation/test/file_ref_or_check.go | 0 pkg/{ => apis}/validation/test/file_ref_or_check_test.go | 0 pkg/{ => apis}/validation/test/file_ref_or_resource.go | 0 pkg/{ => apis}/validation/test/file_ref_or_resource_test.go | 0 pkg/{ => apis}/validation/test/file_ref_test.go | 0 pkg/{ => apis}/validation/test/for.go | 0 pkg/{ => apis}/validation/test/for_test.go | 0 pkg/{ => apis}/validation/test/get.go | 0 pkg/{ => apis}/validation/test/get_test.go | 0 pkg/{ => apis}/validation/test/object_reference.go | 0 pkg/{ => apis}/validation/test/object_reference_test.go | 0 pkg/{ => apis}/validation/test/operation.go | 0 pkg/{ => apis}/validation/test/operation_test.go | 0 pkg/{ => apis}/validation/test/output.go | 0 pkg/{ => apis}/validation/test/output_test.go | 0 pkg/{ => apis}/validation/test/patch.go | 0 pkg/{ => apis}/validation/test/pod_logs.go | 0 pkg/{ => apis}/validation/test/pod_logs_test.go | 0 pkg/{ => apis}/validation/test/proxy.go | 0 pkg/{ => apis}/validation/test/resource_reference.go | 0 pkg/{ => apis}/validation/test/resource_reference_test.go | 0 pkg/{ => apis}/validation/test/script.go | 0 pkg/{ => apis}/validation/test/script_test.go | 0 pkg/{ => apis}/validation/test/test.go | 0 pkg/{ => apis}/validation/test/test_spec.go | 0 pkg/{ => apis}/validation/test/test_spec_test.go | 0 pkg/{ => apis}/validation/test/test_step.go | 0 pkg/{ => apis}/validation/test/test_step_spec.go | 0 pkg/{ => apis}/validation/test/test_step_spec_test.go | 0 pkg/{ => apis}/validation/test/test_step_test.go | 0 pkg/{ => apis}/validation/test/test_test.go | 0 pkg/{ => apis}/validation/test/update.go | 0 pkg/{ => apis}/validation/test/wait.go | 0 pkg/{ => apis}/validation/test/wait_test.go | 0 pkg/commands/lint/command.go | 2 +- pkg/loaders/config/load.go | 2 +- pkg/loaders/test/load.go | 2 +- 59 files changed, 3 insertions(+), 3 deletions(-) rename pkg/{ => apis}/conversion/configuration.go (100%) rename pkg/{ => apis}/conversion/install.go (100%) rename pkg/{ => apis}/validation/test/apply.go (100%) rename pkg/{ => apis}/validation/test/assert.go (100%) rename pkg/{ => apis}/validation/test/binding.go (100%) rename pkg/{ => apis}/validation/test/binding_test.go (100%) rename pkg/{ => apis}/validation/test/catch_finally.go (100%) rename pkg/{ => apis}/validation/test/catch_finally_test.go (100%) rename pkg/{ => apis}/validation/test/check.go (100%) rename pkg/{ => apis}/validation/test/check_test.go (100%) rename pkg/{ => apis}/validation/test/command.go (100%) rename pkg/{ => apis}/validation/test/command_test.go (100%) rename pkg/{ => apis}/validation/test/create.go (100%) rename pkg/{ => apis}/validation/test/delete.go (100%) rename pkg/{ => apis}/validation/test/describe.go (100%) rename pkg/{ => apis}/validation/test/describe_test.go (100%) rename pkg/{ => apis}/validation/test/error.go (100%) rename pkg/{ => apis}/validation/test/events.go (100%) rename pkg/{ => apis}/validation/test/events_test.go (100%) rename pkg/{ => apis}/validation/test/expectations.go (100%) rename pkg/{ => apis}/validation/test/expectations_test.go (100%) rename pkg/{ => apis}/validation/test/file_ref.go (100%) rename pkg/{ => apis}/validation/test/file_ref_or_check.go (100%) rename pkg/{ => apis}/validation/test/file_ref_or_check_test.go (100%) rename pkg/{ => apis}/validation/test/file_ref_or_resource.go (100%) rename pkg/{ => apis}/validation/test/file_ref_or_resource_test.go (100%) rename pkg/{ => apis}/validation/test/file_ref_test.go (100%) rename pkg/{ => apis}/validation/test/for.go (100%) rename pkg/{ => apis}/validation/test/for_test.go (100%) rename pkg/{ => apis}/validation/test/get.go (100%) rename pkg/{ => apis}/validation/test/get_test.go (100%) rename pkg/{ => apis}/validation/test/object_reference.go (100%) rename pkg/{ => apis}/validation/test/object_reference_test.go (100%) rename pkg/{ => apis}/validation/test/operation.go (100%) rename pkg/{ => apis}/validation/test/operation_test.go (100%) rename pkg/{ => apis}/validation/test/output.go (100%) rename pkg/{ => apis}/validation/test/output_test.go (100%) rename pkg/{ => apis}/validation/test/patch.go (100%) rename pkg/{ => apis}/validation/test/pod_logs.go (100%) rename pkg/{ => apis}/validation/test/pod_logs_test.go (100%) rename pkg/{ => apis}/validation/test/proxy.go (100%) rename pkg/{ => apis}/validation/test/resource_reference.go (100%) rename pkg/{ => apis}/validation/test/resource_reference_test.go (100%) rename pkg/{ => apis}/validation/test/script.go (100%) rename pkg/{ => apis}/validation/test/script_test.go (100%) rename pkg/{ => apis}/validation/test/test.go (100%) rename pkg/{ => apis}/validation/test/test_spec.go (100%) rename pkg/{ => apis}/validation/test/test_spec_test.go (100%) rename pkg/{ => apis}/validation/test/test_step.go (100%) rename pkg/{ => apis}/validation/test/test_step_spec.go (100%) rename pkg/{ => apis}/validation/test/test_step_spec_test.go (100%) rename pkg/{ => apis}/validation/test/test_step_test.go (100%) rename pkg/{ => apis}/validation/test/test_test.go (100%) rename pkg/{ => apis}/validation/test/update.go (100%) rename pkg/{ => apis}/validation/test/wait.go (100%) rename pkg/{ => apis}/validation/test/wait_test.go (100%) diff --git a/pkg/conversion/configuration.go b/pkg/apis/conversion/configuration.go similarity index 100% rename from pkg/conversion/configuration.go rename to pkg/apis/conversion/configuration.go diff --git a/pkg/conversion/install.go b/pkg/apis/conversion/install.go similarity index 100% rename from pkg/conversion/install.go rename to pkg/apis/conversion/install.go diff --git a/pkg/validation/test/apply.go b/pkg/apis/validation/test/apply.go similarity index 100% rename from pkg/validation/test/apply.go rename to pkg/apis/validation/test/apply.go diff --git a/pkg/validation/test/assert.go b/pkg/apis/validation/test/assert.go similarity index 100% rename from pkg/validation/test/assert.go rename to pkg/apis/validation/test/assert.go diff --git a/pkg/validation/test/binding.go b/pkg/apis/validation/test/binding.go similarity index 100% rename from pkg/validation/test/binding.go rename to pkg/apis/validation/test/binding.go diff --git a/pkg/validation/test/binding_test.go b/pkg/apis/validation/test/binding_test.go similarity index 100% rename from pkg/validation/test/binding_test.go rename to pkg/apis/validation/test/binding_test.go diff --git a/pkg/validation/test/catch_finally.go b/pkg/apis/validation/test/catch_finally.go similarity index 100% rename from pkg/validation/test/catch_finally.go rename to pkg/apis/validation/test/catch_finally.go diff --git a/pkg/validation/test/catch_finally_test.go b/pkg/apis/validation/test/catch_finally_test.go similarity index 100% rename from pkg/validation/test/catch_finally_test.go rename to pkg/apis/validation/test/catch_finally_test.go diff --git a/pkg/validation/test/check.go b/pkg/apis/validation/test/check.go similarity index 100% rename from pkg/validation/test/check.go rename to pkg/apis/validation/test/check.go diff --git a/pkg/validation/test/check_test.go b/pkg/apis/validation/test/check_test.go similarity index 100% rename from pkg/validation/test/check_test.go rename to pkg/apis/validation/test/check_test.go diff --git a/pkg/validation/test/command.go b/pkg/apis/validation/test/command.go similarity index 100% rename from pkg/validation/test/command.go rename to pkg/apis/validation/test/command.go diff --git a/pkg/validation/test/command_test.go b/pkg/apis/validation/test/command_test.go similarity index 100% rename from pkg/validation/test/command_test.go rename to pkg/apis/validation/test/command_test.go diff --git a/pkg/validation/test/create.go b/pkg/apis/validation/test/create.go similarity index 100% rename from pkg/validation/test/create.go rename to pkg/apis/validation/test/create.go diff --git a/pkg/validation/test/delete.go b/pkg/apis/validation/test/delete.go similarity index 100% rename from pkg/validation/test/delete.go rename to pkg/apis/validation/test/delete.go diff --git a/pkg/validation/test/describe.go b/pkg/apis/validation/test/describe.go similarity index 100% rename from pkg/validation/test/describe.go rename to pkg/apis/validation/test/describe.go diff --git a/pkg/validation/test/describe_test.go b/pkg/apis/validation/test/describe_test.go similarity index 100% rename from pkg/validation/test/describe_test.go rename to pkg/apis/validation/test/describe_test.go diff --git a/pkg/validation/test/error.go b/pkg/apis/validation/test/error.go similarity index 100% rename from pkg/validation/test/error.go rename to pkg/apis/validation/test/error.go diff --git a/pkg/validation/test/events.go b/pkg/apis/validation/test/events.go similarity index 100% rename from pkg/validation/test/events.go rename to pkg/apis/validation/test/events.go diff --git a/pkg/validation/test/events_test.go b/pkg/apis/validation/test/events_test.go similarity index 100% rename from pkg/validation/test/events_test.go rename to pkg/apis/validation/test/events_test.go diff --git a/pkg/validation/test/expectations.go b/pkg/apis/validation/test/expectations.go similarity index 100% rename from pkg/validation/test/expectations.go rename to pkg/apis/validation/test/expectations.go diff --git a/pkg/validation/test/expectations_test.go b/pkg/apis/validation/test/expectations_test.go similarity index 100% rename from pkg/validation/test/expectations_test.go rename to pkg/apis/validation/test/expectations_test.go diff --git a/pkg/validation/test/file_ref.go b/pkg/apis/validation/test/file_ref.go similarity index 100% rename from pkg/validation/test/file_ref.go rename to pkg/apis/validation/test/file_ref.go diff --git a/pkg/validation/test/file_ref_or_check.go b/pkg/apis/validation/test/file_ref_or_check.go similarity index 100% rename from pkg/validation/test/file_ref_or_check.go rename to pkg/apis/validation/test/file_ref_or_check.go diff --git a/pkg/validation/test/file_ref_or_check_test.go b/pkg/apis/validation/test/file_ref_or_check_test.go similarity index 100% rename from pkg/validation/test/file_ref_or_check_test.go rename to pkg/apis/validation/test/file_ref_or_check_test.go diff --git a/pkg/validation/test/file_ref_or_resource.go b/pkg/apis/validation/test/file_ref_or_resource.go similarity index 100% rename from pkg/validation/test/file_ref_or_resource.go rename to pkg/apis/validation/test/file_ref_or_resource.go diff --git a/pkg/validation/test/file_ref_or_resource_test.go b/pkg/apis/validation/test/file_ref_or_resource_test.go similarity index 100% rename from pkg/validation/test/file_ref_or_resource_test.go rename to pkg/apis/validation/test/file_ref_or_resource_test.go diff --git a/pkg/validation/test/file_ref_test.go b/pkg/apis/validation/test/file_ref_test.go similarity index 100% rename from pkg/validation/test/file_ref_test.go rename to pkg/apis/validation/test/file_ref_test.go diff --git a/pkg/validation/test/for.go b/pkg/apis/validation/test/for.go similarity index 100% rename from pkg/validation/test/for.go rename to pkg/apis/validation/test/for.go diff --git a/pkg/validation/test/for_test.go b/pkg/apis/validation/test/for_test.go similarity index 100% rename from pkg/validation/test/for_test.go rename to pkg/apis/validation/test/for_test.go diff --git a/pkg/validation/test/get.go b/pkg/apis/validation/test/get.go similarity index 100% rename from pkg/validation/test/get.go rename to pkg/apis/validation/test/get.go diff --git a/pkg/validation/test/get_test.go b/pkg/apis/validation/test/get_test.go similarity index 100% rename from pkg/validation/test/get_test.go rename to pkg/apis/validation/test/get_test.go diff --git a/pkg/validation/test/object_reference.go b/pkg/apis/validation/test/object_reference.go similarity index 100% rename from pkg/validation/test/object_reference.go rename to pkg/apis/validation/test/object_reference.go diff --git a/pkg/validation/test/object_reference_test.go b/pkg/apis/validation/test/object_reference_test.go similarity index 100% rename from pkg/validation/test/object_reference_test.go rename to pkg/apis/validation/test/object_reference_test.go diff --git a/pkg/validation/test/operation.go b/pkg/apis/validation/test/operation.go similarity index 100% rename from pkg/validation/test/operation.go rename to pkg/apis/validation/test/operation.go diff --git a/pkg/validation/test/operation_test.go b/pkg/apis/validation/test/operation_test.go similarity index 100% rename from pkg/validation/test/operation_test.go rename to pkg/apis/validation/test/operation_test.go diff --git a/pkg/validation/test/output.go b/pkg/apis/validation/test/output.go similarity index 100% rename from pkg/validation/test/output.go rename to pkg/apis/validation/test/output.go diff --git a/pkg/validation/test/output_test.go b/pkg/apis/validation/test/output_test.go similarity index 100% rename from pkg/validation/test/output_test.go rename to pkg/apis/validation/test/output_test.go diff --git a/pkg/validation/test/patch.go b/pkg/apis/validation/test/patch.go similarity index 100% rename from pkg/validation/test/patch.go rename to pkg/apis/validation/test/patch.go diff --git a/pkg/validation/test/pod_logs.go b/pkg/apis/validation/test/pod_logs.go similarity index 100% rename from pkg/validation/test/pod_logs.go rename to pkg/apis/validation/test/pod_logs.go diff --git a/pkg/validation/test/pod_logs_test.go b/pkg/apis/validation/test/pod_logs_test.go similarity index 100% rename from pkg/validation/test/pod_logs_test.go rename to pkg/apis/validation/test/pod_logs_test.go diff --git a/pkg/validation/test/proxy.go b/pkg/apis/validation/test/proxy.go similarity index 100% rename from pkg/validation/test/proxy.go rename to pkg/apis/validation/test/proxy.go diff --git a/pkg/validation/test/resource_reference.go b/pkg/apis/validation/test/resource_reference.go similarity index 100% rename from pkg/validation/test/resource_reference.go rename to pkg/apis/validation/test/resource_reference.go diff --git a/pkg/validation/test/resource_reference_test.go b/pkg/apis/validation/test/resource_reference_test.go similarity index 100% rename from pkg/validation/test/resource_reference_test.go rename to pkg/apis/validation/test/resource_reference_test.go diff --git a/pkg/validation/test/script.go b/pkg/apis/validation/test/script.go similarity index 100% rename from pkg/validation/test/script.go rename to pkg/apis/validation/test/script.go diff --git a/pkg/validation/test/script_test.go b/pkg/apis/validation/test/script_test.go similarity index 100% rename from pkg/validation/test/script_test.go rename to pkg/apis/validation/test/script_test.go diff --git a/pkg/validation/test/test.go b/pkg/apis/validation/test/test.go similarity index 100% rename from pkg/validation/test/test.go rename to pkg/apis/validation/test/test.go diff --git a/pkg/validation/test/test_spec.go b/pkg/apis/validation/test/test_spec.go similarity index 100% rename from pkg/validation/test/test_spec.go rename to pkg/apis/validation/test/test_spec.go diff --git a/pkg/validation/test/test_spec_test.go b/pkg/apis/validation/test/test_spec_test.go similarity index 100% rename from pkg/validation/test/test_spec_test.go rename to pkg/apis/validation/test/test_spec_test.go diff --git a/pkg/validation/test/test_step.go b/pkg/apis/validation/test/test_step.go similarity index 100% rename from pkg/validation/test/test_step.go rename to pkg/apis/validation/test/test_step.go diff --git a/pkg/validation/test/test_step_spec.go b/pkg/apis/validation/test/test_step_spec.go similarity index 100% rename from pkg/validation/test/test_step_spec.go rename to pkg/apis/validation/test/test_step_spec.go diff --git a/pkg/validation/test/test_step_spec_test.go b/pkg/apis/validation/test/test_step_spec_test.go similarity index 100% rename from pkg/validation/test/test_step_spec_test.go rename to pkg/apis/validation/test/test_step_spec_test.go diff --git a/pkg/validation/test/test_step_test.go b/pkg/apis/validation/test/test_step_test.go similarity index 100% rename from pkg/validation/test/test_step_test.go rename to pkg/apis/validation/test/test_step_test.go diff --git a/pkg/validation/test/test_test.go b/pkg/apis/validation/test/test_test.go similarity index 100% rename from pkg/validation/test/test_test.go rename to pkg/apis/validation/test/test_test.go diff --git a/pkg/validation/test/update.go b/pkg/apis/validation/test/update.go similarity index 100% rename from pkg/validation/test/update.go rename to pkg/apis/validation/test/update.go diff --git a/pkg/validation/test/wait.go b/pkg/apis/validation/test/wait.go similarity index 100% rename from pkg/validation/test/wait.go rename to pkg/apis/validation/test/wait.go diff --git a/pkg/validation/test/wait_test.go b/pkg/apis/validation/test/wait_test.go similarity index 100% rename from pkg/validation/test/wait_test.go rename to pkg/apis/validation/test/wait_test.go diff --git a/pkg/commands/lint/command.go b/pkg/commands/lint/command.go index aa9616114..866ec14eb 100644 --- a/pkg/commands/lint/command.go +++ b/pkg/commands/lint/command.go @@ -7,7 +7,7 @@ import ( "path/filepath" "github.com/kyverno/chainsaw/pkg/apis/v1alpha1" - testvalidation "github.com/kyverno/chainsaw/pkg/validation/test" + testvalidation "github.com/kyverno/chainsaw/pkg/apis/validation/test" "github.com/spf13/cobra" "github.com/xeipuuv/gojsonschema" "k8s.io/apimachinery/pkg/util/yaml" diff --git a/pkg/loaders/config/load.go b/pkg/loaders/config/load.go index ed8edfeaa..5f75c0109 100644 --- a/pkg/loaders/config/load.go +++ b/pkg/loaders/config/load.go @@ -7,9 +7,9 @@ import ( "os" "path/filepath" + "github.com/kyverno/chainsaw/pkg/apis/conversion" "github.com/kyverno/chainsaw/pkg/apis/v1alpha1" "github.com/kyverno/chainsaw/pkg/apis/v1alpha2" - "github.com/kyverno/chainsaw/pkg/conversion" "github.com/kyverno/chainsaw/pkg/data" "github.com/kyverno/pkg/ext/resource/loader" "github.com/kyverno/pkg/ext/yaml" diff --git a/pkg/loaders/test/load.go b/pkg/loaders/test/load.go index 62c60020c..fa1cb5a12 100644 --- a/pkg/loaders/test/load.go +++ b/pkg/loaders/test/load.go @@ -6,9 +6,9 @@ import ( "path/filepath" "github.com/kyverno/chainsaw/pkg/apis/v1alpha1" + testvalidation "github.com/kyverno/chainsaw/pkg/apis/validation/test" internalloader "github.com/kyverno/chainsaw/pkg/internal/loader" yamlutils "github.com/kyverno/chainsaw/pkg/utils/yaml" - testvalidation "github.com/kyverno/chainsaw/pkg/validation/test" "github.com/kyverno/pkg/ext/resource/convert" "github.com/kyverno/pkg/ext/resource/loader" "github.com/kyverno/pkg/ext/yaml"