From 74a82e0397715c58092c379e63bc85583eb1d62a Mon Sep 17 00:00:00 2001 From: wyike <77846369+wangyikewxgm@users.noreply.github.com> Date: Fri, 26 Mar 2021 15:24:19 +0800 Subject: [PATCH] add header-check.sh (#1310) add ci workflow update scripts add missed licence header for all files --- .github/workflows/go.yml | 3 ++ Makefile | 3 ++ apis/apis.go | 16 ++++++++ apis/core.oam.dev/common/doc.go | 20 ++++----- apis/core.oam.dev/common/types.go | 20 ++++----- .../v1alpha2/application_types.go | 2 +- .../v1alpha2/application_types_test.go | 16 ++++++++ apis/core.oam.dev/v1alpha2/cluster_types.go | 2 + apis/core.oam.dev/v1alpha2/conversion.go | 2 +- .../v1beta1/appdeployment_types.go | 14 ------- apis/generate.go | 16 ++++++++ .../v1alpha1/groupversion_info.go | 2 +- .../v1alpha1/podspecworkload_types.go | 2 +- .../v1alpha1/rollout_plan_types.go | 16 ++++++++ .../v1alpha1/rollout_state.go | 16 ++++++++ .../v1alpha1/rollouttrait_types.go | 16 ++++++++ apis/types/capability.go | 2 +- apis/types/types.go | 16 ++++++++ cmd/core/main.go | 16 ++++++++ cmd/core/main_test.go | 16 ++++++++ e2e/apiserver/apiserver_suite_test.go | 16 ++++++++ e2e/apiserver/apiserver_test.go | 16 ++++++++ e2e/application/application_suite_test.go | 16 ++++++++ e2e/application/application_test.go | 16 ++++++++ e2e/capability/capability_suite_test.go | 16 ++++++++ e2e/capability/capability_test.go | 16 ++++++++ e2e/cli.go | 16 ++++++++ e2e/commonContext.go | 16 ++++++++ e2e/env/env_suite_test.go | 16 ++++++++ e2e/env/env_test.go | 16 ++++++++ e2e/setup/setup_suite_test.go | 16 ++++++++ e2e/setup/setup_test.go | 16 ++++++++ e2e/trait/trait_suite_test.go | 16 ++++++++ e2e/trait/trait_test.go | 16 ++++++++ e2e/workload/workload_suite_test.go | 16 ++++++++ e2e/workload/workload_test.go | 16 ++++++++ hack/chart/generate.go | 16 ++++++++ hack/crd/update.go | 16 ++++++++ hack/docgen/gen.go | 16 ++++++++ hack/frontend/source.go | 16 ++++++++ hack/licence/header-check.sh | 41 +++++++++++++++++++ hack/references/generate.go | 16 ++++++++ hack/utils/common.go | 16 ++++++++ legacy/convert/main.go | 16 ++++++++ pkg/appfile/config/store.go | 16 ++++++++ pkg/appfile/helm/flux2apis/apis.go | 16 ++++++++ .../helm/flux2apis/helmrelease_types.go | 16 ++++++++ .../helm/flux2apis/helmrepository_types.go | 16 ++++++++ pkg/appfile/helm/flux2apis/reference_types.go | 16 ++++++++ pkg/appfile/helm/helm.go | 16 ++++++++ pkg/appfile/helm/helm_test.go | 16 ++++++++ pkg/appfile/helm/schema.go | 16 ++++++++ pkg/appfile/helm/schema_test.go | 16 ++++++++ pkg/appfile/parser.go | 16 ++++++++ pkg/appfile/suit_test.go | 16 ++++++++ pkg/builtin/build/build.go | 16 ++++++++ pkg/builtin/build/build_test.go | 16 ++++++++ pkg/builtin/http/http.go | 16 ++++++++ pkg/builtin/http/http_test.go | 16 ++++++++ pkg/builtin/registry/registry_runner.go | 16 ++++++++ pkg/builtin/registry/registry_runner_test.go | 16 ++++++++ pkg/builtin/registry/registry_test.go | 16 ++++++++ pkg/builtin/task.go | 16 ++++++++ pkg/clustermanager/cluster_manager.go | 16 ++++++++ pkg/controller/common/error.go | 16 ++++++++ pkg/controller/common/logs.go | 16 ++++++++ .../common/rollout/rollout_plan_controller.go | 16 ++++++++ .../common/rollout/rollout_webhook.go | 16 ++++++++ .../common/rollout/rollout_webhook_test.go | 16 ++++++++ .../rollout/workloads/cloneset_controller.go | 16 ++++++++ .../common/rollout/workloads/common.go | 16 ++++++++ .../common/rollout/workloads/controller.go | 16 ++++++++ .../workloads/deployment_controller.go | 16 ++++++++ pkg/controller/common/types.go | 16 ++++++++ .../application/application_controller.go | 2 +- .../application_controller_test.go | 2 +- .../v1alpha2/application/apply.go | 16 ++++++++ .../v1alpha2/application/apply_test.go | 16 ++++++++ .../v1alpha2/application/revision_test.go | 16 ++++++++ .../v1alpha2/application/suite_test.go | 2 +- .../appconfig_suit_test.go | 16 ++++++++ .../apply_once_only_test.go | 16 ++++++++ .../apply_trait_test.go | 16 ++++++++ .../applicationconfiguration/component.go | 16 ++++++++ .../component_test.go | 16 ++++++++ .../dependency_test.go | 16 ++++++++ .../applicationconfiguration/suite_test.go | 16 ++++++++ .../applicationconfiguration/workloads.go | 16 ++++++++ .../workloads_test.go | 16 ++++++++ .../applicationcontext_controller.go | 16 ++++++++ .../applicationrollout_controller.go | 16 ++++++++ .../applicationrollout_helper.go | 16 ++++++++ .../v1alpha2/applicationrollout/suite_test.go | 16 ++++++++ .../healthscope_controller_test.go | 16 ++++++++ .../core/scopes/healthscope/standard.go | 16 ++++++++ .../core/scopes/healthscope/standard_test.go | 16 ++++++++ .../manualscalertrait_controller.go | 1 + .../manualscalertrait_controller_test.go | 16 ++++++++ .../containerizedworkload_controller.go | 1 + ...containerizedworkload_controller_helper.go | 16 ++++++++ ...inerizedworkload_controller_helper_test.go | 16 ++++++++ .../podspecworkload_controller.go | 2 +- .../v1alpha1/podspecworkload/suite_test.go | 2 +- pkg/controller/utils/util_suite_test.go | 16 ++++++++ pkg/controller/utils/utils.go | 16 ++++++++ pkg/controller/utils/utils_test.go | 16 ++++++++ pkg/cue/base_template.go | 16 ++++++++ pkg/cue/convert.go | 16 ++++++++ pkg/cue/convert_test.go | 16 ++++++++ pkg/dsl/definition/package.go | 16 ++++++++ pkg/dsl/definition/package_test.go | 16 ++++++++ pkg/dsl/definition/template.go | 16 ++++++++ pkg/dsl/definition/template_test.go | 16 ++++++++ pkg/dsl/model/instance.go | 16 ++++++++ pkg/dsl/model/instance_test.go | 16 ++++++++ pkg/dsl/model/sets/operation.go | 16 ++++++++ pkg/dsl/model/sets/operation_test.go | 16 ++++++++ pkg/dsl/model/sets/utils.go | 16 ++++++++ pkg/dsl/model/sets/walk.go | 16 ++++++++ pkg/dsl/model/sets/walk_test.go | 16 ++++++++ pkg/dsl/process/handle.go | 16 ++++++++ pkg/dsl/process/handle_test.go | 16 ++++++++ pkg/dsl/task/process.go | 16 ++++++++ pkg/dsl/task/process_test.go | 16 ++++++++ pkg/oam/discoverymapper/mapper.go | 16 ++++++++ pkg/oam/discoverymapper/suit_test.go | 16 ++++++++ pkg/oam/mock/mapper.go | 16 ++++++++ pkg/oam/util/helper.go | 16 ++++++++ pkg/oam/util/helper_test.go | 16 ++++++++ pkg/oam/util/template.go | 16 ++++++++ pkg/oam/util/template_test.go | 16 ++++++++ pkg/oam/util/test_utils.go | 16 ++++++++ pkg/oam/util/test_utils_test.go | 1 + pkg/oam/var.go | 16 ++++++++ pkg/utils/apply/apply.go | 16 ++++++++ pkg/utils/apply/apply_resource_test.go | 16 ++++++++ pkg/utils/apply/apply_suite_test.go | 16 ++++++++ pkg/utils/apply/apply_test.go | 16 ++++++++ pkg/utils/apply/patch.go | 16 ++++++++ pkg/utils/apply/patch_test.go | 16 ++++++++ pkg/utils/common/args.go | 16 ++++++++ pkg/utils/common/common.go | 16 ++++++++ pkg/utils/common/common_test.go | 16 ++++++++ pkg/utils/config/config.go | 16 ++++++++ pkg/utils/env/env.go | 16 ++++++++ pkg/utils/helm/helm.go | 16 ++++++++ pkg/utils/json.go | 2 +- pkg/utils/system/system.go | 16 ++++++++ pkg/utils/system/system_test.go | 16 ++++++++ pkg/utils/util/cmd.go | 16 ++++++++ pkg/utils/util/factory.go | 16 ++++++++ pkg/utils/util/init.go | 16 ++++++++ pkg/utils/util/init_test.go | 16 ++++++++ pkg/webhook/common/rollout/rollout_plan.go | 16 ++++++++ .../common/rollout/rollout_plan_test.go | 2 +- pkg/webhook/core.oam.dev/register.go | 16 ++++++++ .../v1alpha2/application/suite_test.go | 2 +- .../application/validating_handler.go | 16 ++++++++ .../application/validating_handler_test.go | 16 ++++++++ .../v1alpha2/application/validation.go | 16 ++++++++ .../applicationconfiguration/handler_test.go | 16 ++++++++ .../applicationconfiguration/helper.go | 16 ++++++++ .../applicationconfiguration/helper_test.go | 16 ++++++++ .../mutating_handler.go | 16 ++++++++ .../applicationconfiguration/suite_test.go | 16 ++++++++ .../validating_handler.go | 16 ++++++++ .../validating_handler_test.go | 16 ++++++++ .../v1alpha2/applicationrollout/common.go | 16 ++++++++ .../applicationrollout/common_test.go | 16 ++++++++ .../applicationrollout/mutating_handler.go | 16 ++++++++ .../v1alpha2/applicationrollout/suite_test.go | 16 ++++++++ .../applicationrollout/validating_handler.go | 16 ++++++++ .../v1alpha2/applicationrollout/validation.go | 16 ++++++++ .../component/component_suite_test.go | 16 ++++++++ .../v1alpha2/component/component_test.go | 16 ++++++++ .../v1alpha2/component/mutating_handler.go | 2 +- .../v1alpha2/component/validating_handler.go | 2 +- .../traitdefinition/validating_handler.go | 16 ++++++++ .../validating_handler_test.go | 16 ++++++++ .../traitdefinition/validator_test.go | 16 ++++++++ pkg/webhook/standard.oam.dev/register.go | 16 ++++++++ .../podspecworkload/mutating_handler.go | 2 +- .../podspecworkload/podspecworkload_test.go | 16 ++++++++ .../podspecworkload/validating_handler.go | 2 +- references/apiserver/api-server.go | 16 ++++++++ references/apiserver/apis/types.go | 16 ++++++++ references/apiserver/appHandlers.go | 16 ++++++++ references/apiserver/capabilityHandlers.go | 16 ++++++++ references/apiserver/componentHandlers.go | 16 ++++++++ references/apiserver/definitionHandler.go | 16 ++++++++ references/apiserver/docs/docs.go | 16 ++++++++ references/apiserver/envHandlers.go | 16 ++++++++ references/apiserver/miscHandlers.go | 16 ++++++++ references/apiserver/route.go | 16 ++++++++ references/apiserver/scopeHandlers.go | 16 ++++++++ references/apiserver/swaggerHandlers.go | 16 ++++++++ references/apiserver/traitHandler.go | 16 ++++++++ references/apiserver/util/api.go | 16 ++++++++ references/apiserver/util/errors.go | 16 ++++++++ references/apiserver/util/middleware.go | 16 ++++++++ references/apiserver/workloadHandler.go | 16 ++++++++ references/appfile/addon.go | 16 ++++++++ references/appfile/addon_suit_test.go | 16 ++++++++ references/appfile/addon_test.go | 16 ++++++++ references/appfile/api/appfile.go | 16 ++++++++ references/appfile/api/appfile_test.go | 16 ++++++++ references/appfile/api/driver.go | 16 ++++++++ references/appfile/api/service.go | 16 ++++++++ references/appfile/api/service_test.go | 16 ++++++++ references/appfile/app.go | 16 ++++++++ references/appfile/app_test.go | 16 ++++++++ references/appfile/driver/cfgmaps.go | 16 ++++++++ references/appfile/driver/cfgmaps_test.go | 16 ++++++++ references/appfile/driver/local.go | 16 ++++++++ references/appfile/driver/local_test.go | 16 ++++++++ references/appfile/modify.go | 16 ++++++++ references/appfile/run.go | 16 ++++++++ references/appfile/storage.go | 16 ++++++++ references/appfile/storage_test.go | 16 ++++++++ references/appfile/template/fake.go | 16 ++++++++ references/appfile/template/manager.go | 16 ++++++++ references/cli/capability.go | 16 ++++++++ references/cli/cli.go | 16 ++++++++ references/cli/completion.go | 16 ++++++++ references/cli/components.go | 16 ++++++++ references/cli/config.go | 16 ++++++++ references/cli/config_test.go | 16 ++++++++ references/cli/dashboard.go | 16 ++++++++ references/cli/delete.go | 16 ++++++++ references/cli/dryrun.go | 16 ++++++++ references/cli/env.go | 16 ++++++++ references/cli/env_test.go | 16 ++++++++ references/cli/exec.go | 16 ++++++++ references/cli/export.go | 16 ++++++++ references/cli/help.go | 16 ++++++++ references/cli/init.go | 16 ++++++++ references/cli/logs.go | 16 ++++++++ references/cli/ls.go | 16 ++++++++ references/cli/portforward.go | 16 ++++++++ references/cli/print.go | 16 ++++++++ references/cli/show.go | 16 ++++++++ references/cli/show_test.go | 16 ++++++++ references/cli/status.go | 16 ++++++++ references/cli/system.go | 16 ++++++++ references/cli/template.go | 16 ++++++++ references/cli/traits.go | 16 ++++++++ references/cli/traits_test.go | 16 ++++++++ references/cli/up.go | 16 ++++++++ references/cli/up_test.go | 16 ++++++++ references/cmd/apiserver/main.go | 16 ++++++++ references/cmd/cli/fake/chart_source.go | 16 ++++++++ references/cmd/cli/fake/source.go | 16 ++++++++ references/cmd/cli/main.go | 16 ++++++++ references/common/application.go | 16 ++++++++ references/common/capability.go | 16 ++++++++ references/common/capability_test.go | 16 ++++++++ references/common/component.go | 16 ++++++++ references/common/prometheus.go | 16 ++++++++ references/common/trait.go | 16 ++++++++ references/common/trait_test.go | 16 ++++++++ references/common/workload.go | 16 ++++++++ references/plugins/capcenter.go | 16 ++++++++ references/plugins/capcenter_test.go | 16 ++++++++ references/plugins/cluster.go | 16 ++++++++ references/plugins/cluster_test.go | 16 ++++++++ references/plugins/local.go | 16 ++++++++ references/plugins/local_test.go | 16 ++++++++ references/plugins/reference_test.go | 16 ++++++++ references/plugins/references.go | 16 ++++++++ references/plugins/suit_test.go | 16 ++++++++ test/compatibility-test/convert/main.go | 16 ++++++++ test/e2e-test/appconfig_finalizer_test.go | 16 ++++++++ .../appconfig_render_workload_test.go | 16 ++++++++ test/e2e-test/component_version_test.go | 16 ++++++++ test/e2e-test/containerized_workload_test.go | 16 ++++++++ test/e2e-test/health_scope_test.go | 16 ++++++++ test/e2e-test/helm_app_test.go | 16 ++++++++ test/e2e-test/kubernetes_workload_test.go | 16 ++++++++ test/e2e-test/rollout_plan_test.go | 16 ++++++++ test/e2e-test/suite_test.go | 1 + version/version.go | 16 ++++++++ 281 files changed, 4138 insertions(+), 51 deletions(-) create mode 100755 hack/licence/header-check.sh diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d94739b9e..2b8c32466 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -257,6 +257,9 @@ jobs: - name: Static Check run: go run honnef.co/go/tools/cmd/staticcheck -- ./... + - name: License Header Check + run: make check-license-header + lint: runs-on: ubuntu-20.04 needs: detect-noop diff --git a/Makefile b/Makefile index 3861d8c3d..7880e7a35 100644 --- a/Makefile +++ b/Makefile @@ -295,3 +295,6 @@ start-dashboard: swagger-gen: $(GOBIN)/swag init -g apiserver/route.go -d pkg/ -o references/apiserver/docs/ + +check-license-header: + ./hack/licence/header-check.sh diff --git a/apis/apis.go b/apis/apis.go index 891b458e2..2ab384d42 100644 --- a/apis/apis.go +++ b/apis/apis.go @@ -1,2 +1,18 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + // Package apis contains all api types of KubeVela package apis diff --git a/apis/core.oam.dev/common/doc.go b/apis/core.oam.dev/common/doc.go index d1be4535e..26424f50d 100644 --- a/apis/core.oam.dev/common/doc.go +++ b/apis/core.oam.dev/common/doc.go @@ -1,17 +1,17 @@ /* - Copyright 2021. The KubeVela Authors. +Copyright 2021 The KubeVela Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ // Package common contains types required for both v1alpha2 and v1beta1 diff --git a/apis/core.oam.dev/common/types.go b/apis/core.oam.dev/common/types.go index 90825da81..01400df94 100644 --- a/apis/core.oam.dev/common/types.go +++ b/apis/core.oam.dev/common/types.go @@ -1,17 +1,17 @@ /* - Copyright 2021. The KubeVela Authors. +Copyright 2021 The KubeVela Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package common diff --git a/apis/core.oam.dev/v1alpha2/application_types.go b/apis/core.oam.dev/v1alpha2/application_types.go index 194b570c7..9e22cf365 100644 --- a/apis/core.oam.dev/v1alpha2/application_types.go +++ b/apis/core.oam.dev/v1alpha2/application_types.go @@ -1,5 +1,5 @@ /* - +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/core.oam.dev/v1alpha2/application_types_test.go b/apis/core.oam.dev/v1alpha2/application_types_test.go index d7e99adc5..dc5e55ef1 100644 --- a/apis/core.oam.dev/v1alpha2/application_types_test.go +++ b/apis/core.oam.dev/v1alpha2/application_types_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1alpha2 import ( diff --git a/apis/core.oam.dev/v1alpha2/cluster_types.go b/apis/core.oam.dev/v1alpha2/cluster_types.go index e0f0634df..14bedece7 100644 --- a/apis/core.oam.dev/v1alpha2/cluster_types.go +++ b/apis/core.oam.dev/v1alpha2/cluster_types.go @@ -1,4 +1,6 @@ /* +Copyright 2021 The KubeVela Authors. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/apis/core.oam.dev/v1alpha2/conversion.go b/apis/core.oam.dev/v1alpha2/conversion.go index 09706fc54..872b73a4b 100644 --- a/apis/core.oam.dev/v1alpha2/conversion.go +++ b/apis/core.oam.dev/v1alpha2/conversion.go @@ -1,5 +1,5 @@ /* - Copyright 2021. The KubeVela Authors. + Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/core.oam.dev/v1beta1/appdeployment_types.go b/apis/core.oam.dev/v1beta1/appdeployment_types.go index b39acef9e..e326520dd 100644 --- a/apis/core.oam.dev/v1beta1/appdeployment_types.go +++ b/apis/core.oam.dev/v1beta1/appdeployment_types.go @@ -14,20 +14,6 @@ limitations under the License. */ -/* -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - package v1beta1 import ( diff --git a/apis/generate.go b/apis/generate.go index 46b7bab17..036a2a8f2 100644 --- a/apis/generate.go +++ b/apis/generate.go @@ -1,5 +1,21 @@ // +build generate +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + // See the below link for details on what is happening here. // https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module diff --git a/apis/standard.oam.dev/v1alpha1/groupversion_info.go b/apis/standard.oam.dev/v1alpha1/groupversion_info.go index 0972c366d..4ebff58fe 100644 --- a/apis/standard.oam.dev/v1alpha1/groupversion_info.go +++ b/apis/standard.oam.dev/v1alpha1/groupversion_info.go @@ -1,5 +1,5 @@ /* - +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/standard.oam.dev/v1alpha1/podspecworkload_types.go b/apis/standard.oam.dev/v1alpha1/podspecworkload_types.go index 845769587..82e45c4f6 100644 --- a/apis/standard.oam.dev/v1alpha1/podspecworkload_types.go +++ b/apis/standard.oam.dev/v1alpha1/podspecworkload_types.go @@ -1,5 +1,5 @@ /* - +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/standard.oam.dev/v1alpha1/rollout_plan_types.go b/apis/standard.oam.dev/v1alpha1/rollout_plan_types.go index f5d83767d..b8a872515 100644 --- a/apis/standard.oam.dev/v1alpha1/rollout_plan_types.go +++ b/apis/standard.oam.dev/v1alpha1/rollout_plan_types.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1alpha1 import ( diff --git a/apis/standard.oam.dev/v1alpha1/rollout_state.go b/apis/standard.oam.dev/v1alpha1/rollout_state.go index 162044054..b8da1a95b 100644 --- a/apis/standard.oam.dev/v1alpha1/rollout_state.go +++ b/apis/standard.oam.dev/v1alpha1/rollout_state.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1alpha1 import ( diff --git a/apis/standard.oam.dev/v1alpha1/rollouttrait_types.go b/apis/standard.oam.dev/v1alpha1/rollouttrait_types.go index f6836309e..6a9866e72 100644 --- a/apis/standard.oam.dev/v1alpha1/rollouttrait_types.go +++ b/apis/standard.oam.dev/v1alpha1/rollouttrait_types.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1alpha1 import ( diff --git a/apis/types/capability.go b/apis/types/capability.go index f9173f47c..7600e540d 100644 --- a/apis/types/capability.go +++ b/apis/types/capability.go @@ -1,5 +1,5 @@ /* - +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/types/types.go b/apis/types/types.go index 00003b3e1..fee0c92dc 100644 --- a/apis/types/types.go +++ b/apis/types/types.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package types const ( diff --git a/cmd/core/main.go b/cmd/core/main.go index b4d64b84e..3d62a1137 100644 --- a/cmd/core/main.go +++ b/cmd/core/main.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( diff --git a/cmd/core/main_test.go b/cmd/core/main_test.go index a13d926fa..7ba578297 100644 --- a/cmd/core/main_test.go +++ b/cmd/core/main_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( diff --git a/e2e/apiserver/apiserver_suite_test.go b/e2e/apiserver/apiserver_suite_test.go index cd01ee669..6cd6cade0 100644 --- a/e2e/apiserver/apiserver_suite_test.go +++ b/e2e/apiserver/apiserver_suite_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/e2e/apiserver/apiserver_test.go b/e2e/apiserver/apiserver_test.go index 6b907d42f..456f65c06 100644 --- a/e2e/apiserver/apiserver_test.go +++ b/e2e/apiserver/apiserver_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/e2e/application/application_suite_test.go b/e2e/application/application_suite_test.go index 05f817c76..54d2b0d60 100644 --- a/e2e/application/application_suite_test.go +++ b/e2e/application/application_suite_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/e2e/application/application_test.go b/e2e/application/application_test.go index 2be96836f..cd65b9709 100644 --- a/e2e/application/application_test.go +++ b/e2e/application/application_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/e2e/capability/capability_suite_test.go b/e2e/capability/capability_suite_test.go index 57fa4fb79..6c5500b54 100644 --- a/e2e/capability/capability_suite_test.go +++ b/e2e/capability/capability_suite_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/e2e/capability/capability_test.go b/e2e/capability/capability_test.go index fa2c2ddd0..59a43d653 100644 --- a/e2e/capability/capability_test.go +++ b/e2e/capability/capability_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/e2e/cli.go b/e2e/cli.go index 0b8f2b21b..759f379f0 100644 --- a/e2e/cli.go +++ b/e2e/cli.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/e2e/commonContext.go b/e2e/commonContext.go index 59c904b88..6b82b3ca4 100644 --- a/e2e/commonContext.go +++ b/e2e/commonContext.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/e2e/env/env_suite_test.go b/e2e/env/env_suite_test.go index 758ea6948..9616b4bd1 100644 --- a/e2e/env/env_suite_test.go +++ b/e2e/env/env_suite_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/e2e/env/env_test.go b/e2e/env/env_test.go index 4dd25445b..27e1aa2fb 100644 --- a/e2e/env/env_test.go +++ b/e2e/env/env_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/e2e/setup/setup_suite_test.go b/e2e/setup/setup_suite_test.go index 89b30a410..855547b5a 100644 --- a/e2e/setup/setup_suite_test.go +++ b/e2e/setup/setup_suite_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/e2e/setup/setup_test.go b/e2e/setup/setup_test.go index ff896e395..ab2e12540 100644 --- a/e2e/setup/setup_test.go +++ b/e2e/setup/setup_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/e2e/trait/trait_suite_test.go b/e2e/trait/trait_suite_test.go index a45db5b7a..2d03a185d 100644 --- a/e2e/trait/trait_suite_test.go +++ b/e2e/trait/trait_suite_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/e2e/trait/trait_test.go b/e2e/trait/trait_test.go index e38dc670a..4ccaa0800 100644 --- a/e2e/trait/trait_test.go +++ b/e2e/trait/trait_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/e2e/workload/workload_suite_test.go b/e2e/workload/workload_suite_test.go index 050136046..99a4d463e 100644 --- a/e2e/workload/workload_suite_test.go +++ b/e2e/workload/workload_suite_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/e2e/workload/workload_test.go b/e2e/workload/workload_test.go index ce331a991..ea8a93b19 100644 --- a/e2e/workload/workload_test.go +++ b/e2e/workload/workload_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package e2e import ( diff --git a/hack/chart/generate.go b/hack/chart/generate.go index ba01136ed..99d546c97 100644 --- a/hack/chart/generate.go +++ b/hack/chart/generate.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( diff --git a/hack/crd/update.go b/hack/crd/update.go index 1ce35d813..62b305cfa 100644 --- a/hack/crd/update.go +++ b/hack/crd/update.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( diff --git a/hack/docgen/gen.go b/hack/docgen/gen.go index ce40461d1..fd26b44e8 100644 --- a/hack/docgen/gen.go +++ b/hack/docgen/gen.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( diff --git a/hack/frontend/source.go b/hack/frontend/source.go index 07e9f1b08..cf1d7883f 100644 --- a/hack/frontend/source.go +++ b/hack/frontend/source.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( diff --git a/hack/licence/header-check.sh b/hack/licence/header-check.sh new file mode 100755 index 000000000..8dc8a6223 --- /dev/null +++ b/hack/licence/header-check.sh @@ -0,0 +1,41 @@ +#!/bin/bash +# Easy & Dumb header check for CI jobs, currently checks ".go" files only. +# +# This will be called by the CI system (with no args) to perform checking and +# fail the job if headers are not correctly set. It can also be called with the +# 'fix' argument to automatically add headers to the missing files. +# +# Check if headers are fine: +# $ ./hack/header-check.sh +# Check and fix headers: +# $ ./hack/header-check.sh fix + +set -e -o pipefail + +# Initialize vars +ERR=false +FAIL=false + +for file in $(git ls-files | grep "\.go$" | grep -v vendor/); do + echo -n "Header check: $file... " + if [[ -z $(cat ${file} | grep "Copyright [0-9]\{4\}.\? The KubeVela Authors") && -z $(cat ${file} | grep "Copyright [0-9]\{4\} The Crossplane Authors") ]]; then + ERR=true + fi + if [ $ERR == true ]; then + if [[ $# -gt 0 && $1 =~ [[:upper:]fix] ]]; then + cat ../boilerplate.go.txt ${file} > ${file}.new + mv ${file}.new ${file} + echo "$(tput -T xterm setaf 3)FIXING$(tput -T xterm sgr0)" + ERR=false + else + echo "$(tput -T xterm setaf 1)FAIL$(tput -T xterm sgr0)" + ERR=false + FAIL=true + fi + else + echo "$(tput -T xterm setaf 2)OK$(tput -T xterm sgr0)" + fi +done + +# If we failed one check, return 1 +[ $FAIL == true ] && exit 1 || exit 0 \ No newline at end of file diff --git a/hack/references/generate.go b/hack/references/generate.go index a1698e823..dab404817 100644 --- a/hack/references/generate.go +++ b/hack/references/generate.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( diff --git a/hack/utils/common.go b/hack/utils/common.go index fb46ea151..545fa6f17 100644 --- a/hack/utils/common.go +++ b/hack/utils/common.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package utils import ( diff --git a/legacy/convert/main.go b/legacy/convert/main.go index abd856728..9d7b92d35 100644 --- a/legacy/convert/main.go +++ b/legacy/convert/main.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main // #nosec import ( diff --git a/pkg/appfile/config/store.go b/pkg/appfile/config/store.go index 1423e2fec..7a656917f 100644 --- a/pkg/appfile/config/store.go +++ b/pkg/appfile/config/store.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package config import "errors" diff --git a/pkg/appfile/helm/flux2apis/apis.go b/pkg/appfile/helm/flux2apis/apis.go index cd50bef52..3b9a24bbe 100644 --- a/pkg/appfile/helm/flux2apis/apis.go +++ b/pkg/appfile/helm/flux2apis/apis.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + // Package apis contains typed structs from fluxcd/helm-controller and fluxcd/source-controller. // Because we cannot solve dependency inconsistencies between KubeVela and fluxcd/gotk, // so we pick up those APIs used in KubeVela to install helm resources. diff --git a/pkg/appfile/helm/flux2apis/helmrelease_types.go b/pkg/appfile/helm/flux2apis/helmrelease_types.go index 2d84d0133..33c08d105 100644 --- a/pkg/appfile/helm/flux2apis/helmrelease_types.go +++ b/pkg/appfile/helm/flux2apis/helmrelease_types.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apis // APIs copied from fluxcd/helm-controller/api/v2beta1 @ api/v0.7.0 diff --git a/pkg/appfile/helm/flux2apis/helmrepository_types.go b/pkg/appfile/helm/flux2apis/helmrepository_types.go index aa57c9a10..b4217485c 100644 --- a/pkg/appfile/helm/flux2apis/helmrepository_types.go +++ b/pkg/appfile/helm/flux2apis/helmrepository_types.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apis import ( diff --git a/pkg/appfile/helm/flux2apis/reference_types.go b/pkg/appfile/helm/flux2apis/reference_types.go index 7c81d8844..2576b379c 100644 --- a/pkg/appfile/helm/flux2apis/reference_types.go +++ b/pkg/appfile/helm/flux2apis/reference_types.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apis // APIs copied from fluxcd/helmcontroller diff --git a/pkg/appfile/helm/helm.go b/pkg/appfile/helm/helm.go index 03f480667..d584da511 100644 --- a/pkg/appfile/helm/helm.go +++ b/pkg/appfile/helm/helm.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package helm import ( diff --git a/pkg/appfile/helm/helm_test.go b/pkg/appfile/helm/helm_test.go index ccff4be44..9bc22c33a 100644 --- a/pkg/appfile/helm/helm_test.go +++ b/pkg/appfile/helm/helm_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package helm import ( diff --git a/pkg/appfile/helm/schema.go b/pkg/appfile/helm/schema.go index 3940a6b05..86711661d 100644 --- a/pkg/appfile/helm/schema.go +++ b/pkg/appfile/helm/schema.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package helm import ( diff --git a/pkg/appfile/helm/schema_test.go b/pkg/appfile/helm/schema_test.go index 83978d829..2a2ad819a 100644 --- a/pkg/appfile/helm/schema_test.go +++ b/pkg/appfile/helm/schema_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package helm import ( diff --git a/pkg/appfile/parser.go b/pkg/appfile/parser.go index 86a795b76..fa228ead3 100644 --- a/pkg/appfile/parser.go +++ b/pkg/appfile/parser.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package appfile import ( diff --git a/pkg/appfile/suit_test.go b/pkg/appfile/suit_test.go index 563a4a8cd..3558d60af 100644 --- a/pkg/appfile/suit_test.go +++ b/pkg/appfile/suit_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package appfile import ( diff --git a/pkg/builtin/build/build.go b/pkg/builtin/build/build.go index 904634324..3746f19c8 100644 --- a/pkg/builtin/build/build.go +++ b/pkg/builtin/build/build.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package build import ( diff --git a/pkg/builtin/build/build_test.go b/pkg/builtin/build/build_test.go index 9b9c2d1a8..b474098ea 100644 --- a/pkg/builtin/build/build_test.go +++ b/pkg/builtin/build/build_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package build import ( diff --git a/pkg/builtin/http/http.go b/pkg/builtin/http/http.go index bf653c932..fc676d0d2 100644 --- a/pkg/builtin/http/http.go +++ b/pkg/builtin/http/http.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package http import ( diff --git a/pkg/builtin/http/http_test.go b/pkg/builtin/http/http_test.go index 9c532b488..a09d6d07a 100644 --- a/pkg/builtin/http/http_test.go +++ b/pkg/builtin/http/http_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package http import ( diff --git a/pkg/builtin/registry/registry_runner.go b/pkg/builtin/registry/registry_runner.go index 36777be2b..52cd5cf87 100644 --- a/pkg/builtin/registry/registry_runner.go +++ b/pkg/builtin/registry/registry_runner.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package registry import ( diff --git a/pkg/builtin/registry/registry_runner_test.go b/pkg/builtin/registry/registry_runner_test.go index 278c6d066..3bbf53e16 100644 --- a/pkg/builtin/registry/registry_runner_test.go +++ b/pkg/builtin/registry/registry_runner_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package registry import ( diff --git a/pkg/builtin/registry/registry_test.go b/pkg/builtin/registry/registry_test.go index 74b11ebba..5be642ccf 100644 --- a/pkg/builtin/registry/registry_test.go +++ b/pkg/builtin/registry/registry_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package registry import ( diff --git a/pkg/builtin/task.go b/pkg/builtin/task.go index c0c0f7bf0..1b1a10356 100644 --- a/pkg/builtin/task.go +++ b/pkg/builtin/task.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package builtin import ( diff --git a/pkg/clustermanager/cluster_manager.go b/pkg/clustermanager/cluster_manager.go index e0eac22d2..7c600ca69 100644 --- a/pkg/clustermanager/cluster_manager.go +++ b/pkg/clustermanager/cluster_manager.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package clustermanager import ( diff --git a/pkg/controller/common/error.go b/pkg/controller/common/error.go index 0b7e2a4a2..c5c3bfefa 100644 --- a/pkg/controller/common/error.go +++ b/pkg/controller/common/error.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package common // error msg for common usage diff --git a/pkg/controller/common/logs.go b/pkg/controller/common/logs.go index 90b5a3f3e..b6669a039 100644 --- a/pkg/controller/common/logs.go +++ b/pkg/controller/common/logs.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package common import "k8s.io/klog/v2" diff --git a/pkg/controller/common/rollout/rollout_plan_controller.go b/pkg/controller/common/rollout/rollout_plan_controller.go index 3ac1dfe4c..902922dff 100644 --- a/pkg/controller/common/rollout/rollout_plan_controller.go +++ b/pkg/controller/common/rollout/rollout_plan_controller.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package rollout import ( diff --git a/pkg/controller/common/rollout/rollout_webhook.go b/pkg/controller/common/rollout/rollout_webhook.go index 3708fe4c7..6c0f856b0 100644 --- a/pkg/controller/common/rollout/rollout_webhook.go +++ b/pkg/controller/common/rollout/rollout_webhook.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package rollout import ( diff --git a/pkg/controller/common/rollout/rollout_webhook_test.go b/pkg/controller/common/rollout/rollout_webhook_test.go index 275786a06..bb4489884 100644 --- a/pkg/controller/common/rollout/rollout_webhook_test.go +++ b/pkg/controller/common/rollout/rollout_webhook_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package rollout import ( diff --git a/pkg/controller/common/rollout/workloads/cloneset_controller.go b/pkg/controller/common/rollout/workloads/cloneset_controller.go index e6da2adfe..69bf62789 100644 --- a/pkg/controller/common/rollout/workloads/cloneset_controller.go +++ b/pkg/controller/common/rollout/workloads/cloneset_controller.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package workloads import ( diff --git a/pkg/controller/common/rollout/workloads/common.go b/pkg/controller/common/rollout/workloads/common.go index b00f159fb..4c23ad59d 100644 --- a/pkg/controller/common/rollout/workloads/common.go +++ b/pkg/controller/common/rollout/workloads/common.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package workloads import ( diff --git a/pkg/controller/common/rollout/workloads/controller.go b/pkg/controller/common/rollout/workloads/controller.go index a116e4c42..4cb465f86 100644 --- a/pkg/controller/common/rollout/workloads/controller.go +++ b/pkg/controller/common/rollout/workloads/controller.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package workloads import ( diff --git a/pkg/controller/common/rollout/workloads/deployment_controller.go b/pkg/controller/common/rollout/workloads/deployment_controller.go index cfe468e46..3acba6156 100644 --- a/pkg/controller/common/rollout/workloads/deployment_controller.go +++ b/pkg/controller/common/rollout/workloads/deployment_controller.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package workloads import ( diff --git a/pkg/controller/common/types.go b/pkg/controller/common/types.go index 2c4157ce5..67ed6649a 100644 --- a/pkg/controller/common/types.go +++ b/pkg/controller/common/types.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package common import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/application/application_controller.go b/pkg/controller/core.oam.dev/v1alpha2/application/application_controller.go index 46357de58..39f550a49 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/application/application_controller.go +++ b/pkg/controller/core.oam.dev/v1alpha2/application/application_controller.go @@ -1,5 +1,5 @@ /* - +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/controller/core.oam.dev/v1alpha2/application/application_controller_test.go b/pkg/controller/core.oam.dev/v1alpha2/application/application_controller_test.go index 8b0aeccd6..1cdc9ee95 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/application/application_controller_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/application/application_controller_test.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The KubeVela Authors. +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/controller/core.oam.dev/v1alpha2/application/apply.go b/pkg/controller/core.oam.dev/v1alpha2/application/apply.go index 382c6e45d..e6a40ca3b 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/application/apply.go +++ b/pkg/controller/core.oam.dev/v1alpha2/application/apply.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package application import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/application/apply_test.go b/pkg/controller/core.oam.dev/v1alpha2/application/apply_test.go index e941ac484..cd7b6299e 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/application/apply_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/application/apply_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package application import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/application/revision_test.go b/pkg/controller/core.oam.dev/v1alpha2/application/revision_test.go index 4cc91d280..a1800f488 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/application/revision_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/application/revision_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package application import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/application/suite_test.go b/pkg/controller/core.oam.dev/v1alpha2/application/suite_test.go index c0221f2c1..c34b802cd 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/application/suite_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/application/suite_test.go @@ -1,5 +1,5 @@ /* - +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/appconfig_suit_test.go b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/appconfig_suit_test.go index a3928c0ea..49580bbd0 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/appconfig_suit_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/appconfig_suit_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/apply_once_only_test.go b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/apply_once_only_test.go index 3c0171820..4191654c8 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/apply_once_only_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/apply_once_only_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/apply_trait_test.go b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/apply_trait_test.go index 6837b42c9..8e7d9d785 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/apply_trait_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/apply_trait_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/component.go b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/component.go index 45d526e6e..4377c220a 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/component.go +++ b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/component.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/component_test.go b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/component_test.go index d02cc7216..3e5d9ba9c 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/component_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/component_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/dependency_test.go b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/dependency_test.go index faf6259e8..ecbfca894 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/dependency_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/dependency_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/suite_test.go b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/suite_test.go index d27f2d3a5..2f8d481c4 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/suite_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/suite_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/workloads.go b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/workloads.go index 6436b3a61..e7f09c5d6 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/workloads.go +++ b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/workloads.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/workloads_test.go b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/workloads_test.go index 16b63d888..313016405 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/workloads_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/applicationconfiguration/workloads_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/applicationcontext/applicationcontext_controller.go b/pkg/controller/core.oam.dev/v1alpha2/applicationcontext/applicationcontext_controller.go index f58508669..d36ccf55b 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/applicationcontext/applicationcontext_controller.go +++ b/pkg/controller/core.oam.dev/v1alpha2/applicationcontext/applicationcontext_controller.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationcontext import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/applicationrollout/applicationrollout_controller.go b/pkg/controller/core.oam.dev/v1alpha2/applicationrollout/applicationrollout_controller.go index 7ebd6698b..d99b0fd5b 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/applicationrollout/applicationrollout_controller.go +++ b/pkg/controller/core.oam.dev/v1alpha2/applicationrollout/applicationrollout_controller.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationrollout import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/applicationrollout/applicationrollout_helper.go b/pkg/controller/core.oam.dev/v1alpha2/applicationrollout/applicationrollout_helper.go index 5184a896d..b80e5702c 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/applicationrollout/applicationrollout_helper.go +++ b/pkg/controller/core.oam.dev/v1alpha2/applicationrollout/applicationrollout_helper.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationrollout import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/applicationrollout/suite_test.go b/pkg/controller/core.oam.dev/v1alpha2/applicationrollout/suite_test.go index 1e352814a..54b4386d7 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/applicationrollout/suite_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/applicationrollout/suite_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationrollout import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/core/scopes/healthscope/healthscope_controller_test.go b/pkg/controller/core.oam.dev/v1alpha2/core/scopes/healthscope/healthscope_controller_test.go index d6ca87e06..ecc9f005f 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/core/scopes/healthscope/healthscope_controller_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/core/scopes/healthscope/healthscope_controller_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package healthscope import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/core/scopes/healthscope/standard.go b/pkg/controller/core.oam.dev/v1alpha2/core/scopes/healthscope/standard.go index aaf82f7ba..bb495bfb6 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/core/scopes/healthscope/standard.go +++ b/pkg/controller/core.oam.dev/v1alpha2/core/scopes/healthscope/standard.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package healthscope import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/core/scopes/healthscope/standard_test.go b/pkg/controller/core.oam.dev/v1alpha2/core/scopes/healthscope/standard_test.go index 987a25173..9b2996440 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/core/scopes/healthscope/standard_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/core/scopes/healthscope/standard_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package healthscope import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/core/traits/manualscalertrait/manualscalertrait_controller.go b/pkg/controller/core.oam.dev/v1alpha2/core/traits/manualscalertrait/manualscalertrait_controller.go index 62c62c3c3..4228b1891 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/core/traits/manualscalertrait/manualscalertrait_controller.go +++ b/pkg/controller/core.oam.dev/v1alpha2/core/traits/manualscalertrait/manualscalertrait_controller.go @@ -1,4 +1,5 @@ /* +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/controller/core.oam.dev/v1alpha2/core/traits/manualscalertrait/manualscalertrait_controller_test.go b/pkg/controller/core.oam.dev/v1alpha2/core/traits/manualscalertrait/manualscalertrait_controller_test.go index 215d826b8..fd5a68f4a 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/core/traits/manualscalertrait/manualscalertrait_controller_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/core/traits/manualscalertrait/manualscalertrait_controller_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package manualscalertrait import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/core/workloads/containerizedworkload/containerizedworkload_controller.go b/pkg/controller/core.oam.dev/v1alpha2/core/workloads/containerizedworkload/containerizedworkload_controller.go index 0b382b283..6141c1a9d 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/core/workloads/containerizedworkload/containerizedworkload_controller.go +++ b/pkg/controller/core.oam.dev/v1alpha2/core/workloads/containerizedworkload/containerizedworkload_controller.go @@ -1,4 +1,5 @@ /* +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/controller/core.oam.dev/v1alpha2/core/workloads/containerizedworkload/containerizedworkload_controller_helper.go b/pkg/controller/core.oam.dev/v1alpha2/core/workloads/containerizedworkload/containerizedworkload_controller_helper.go index b0db9b832..4404184de 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/core/workloads/containerizedworkload/containerizedworkload_controller_helper.go +++ b/pkg/controller/core.oam.dev/v1alpha2/core/workloads/containerizedworkload/containerizedworkload_controller_helper.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package containerizedworkload import ( diff --git a/pkg/controller/core.oam.dev/v1alpha2/core/workloads/containerizedworkload/containerizedworkload_controller_helper_test.go b/pkg/controller/core.oam.dev/v1alpha2/core/workloads/containerizedworkload/containerizedworkload_controller_helper_test.go index 6166d8d6c..45ac4b23b 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/core/workloads/containerizedworkload/containerizedworkload_controller_helper_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/core/workloads/containerizedworkload/containerizedworkload_controller_helper_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package containerizedworkload import ( diff --git a/pkg/controller/standard.oam.dev/v1alpha1/podspecworkload/podspecworkload_controller.go b/pkg/controller/standard.oam.dev/v1alpha1/podspecworkload/podspecworkload_controller.go index 6d71459e5..f0e7ac84d 100644 --- a/pkg/controller/standard.oam.dev/v1alpha1/podspecworkload/podspecworkload_controller.go +++ b/pkg/controller/standard.oam.dev/v1alpha1/podspecworkload/podspecworkload_controller.go @@ -1,5 +1,5 @@ /* - +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/controller/standard.oam.dev/v1alpha1/podspecworkload/suite_test.go b/pkg/controller/standard.oam.dev/v1alpha1/podspecworkload/suite_test.go index a75712d86..ae64a4075 100644 --- a/pkg/controller/standard.oam.dev/v1alpha1/podspecworkload/suite_test.go +++ b/pkg/controller/standard.oam.dev/v1alpha1/podspecworkload/suite_test.go @@ -1,5 +1,5 @@ /* - +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/controller/utils/util_suite_test.go b/pkg/controller/utils/util_suite_test.go index 27c1dba83..c1c1b7453 100644 --- a/pkg/controller/utils/util_suite_test.go +++ b/pkg/controller/utils/util_suite_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package utils import ( diff --git a/pkg/controller/utils/utils.go b/pkg/controller/utils/utils.go index d144a2f3d..8ec4d43e8 100644 --- a/pkg/controller/utils/utils.go +++ b/pkg/controller/utils/utils.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package utils import ( diff --git a/pkg/controller/utils/utils_test.go b/pkg/controller/utils/utils_test.go index c7dae57a6..5649b9f53 100644 --- a/pkg/controller/utils/utils_test.go +++ b/pkg/controller/utils/utils_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package utils import ( diff --git a/pkg/cue/base_template.go b/pkg/cue/base_template.go index be02e6993..a17a414ba 100644 --- a/pkg/cue/base_template.go +++ b/pkg/cue/base_template.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cue // BaseTemplate include base info provided by KubeVela for CUE template diff --git a/pkg/cue/convert.go b/pkg/cue/convert.go index cd199423e..953b5c9e8 100644 --- a/pkg/cue/convert.go +++ b/pkg/cue/convert.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cue import ( diff --git a/pkg/cue/convert_test.go b/pkg/cue/convert_test.go index 4e5ec0e6c..9a10b5d2b 100644 --- a/pkg/cue/convert_test.go +++ b/pkg/cue/convert_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cue import ( diff --git a/pkg/dsl/definition/package.go b/pkg/dsl/definition/package.go index 982f2bd3d..5d100c9be 100644 --- a/pkg/dsl/definition/package.go +++ b/pkg/dsl/definition/package.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package definition import ( diff --git a/pkg/dsl/definition/package_test.go b/pkg/dsl/definition/package_test.go index 4d98dc4e1..cd7740f4c 100644 --- a/pkg/dsl/definition/package_test.go +++ b/pkg/dsl/definition/package_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package definition import ( diff --git a/pkg/dsl/definition/template.go b/pkg/dsl/definition/template.go index 5d0445922..a98ccac09 100644 --- a/pkg/dsl/definition/template.go +++ b/pkg/dsl/definition/template.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package definition import ( diff --git a/pkg/dsl/definition/template_test.go b/pkg/dsl/definition/template_test.go index efba6172d..7b0ea4f5e 100644 --- a/pkg/dsl/definition/template_test.go +++ b/pkg/dsl/definition/template_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package definition import ( diff --git a/pkg/dsl/model/instance.go b/pkg/dsl/model/instance.go index e8166ffa9..d6a6e7b62 100644 --- a/pkg/dsl/model/instance.go +++ b/pkg/dsl/model/instance.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package model import ( diff --git a/pkg/dsl/model/instance_test.go b/pkg/dsl/model/instance_test.go index 2a3de075d..b6cbe14d2 100644 --- a/pkg/dsl/model/instance_test.go +++ b/pkg/dsl/model/instance_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package model import ( diff --git a/pkg/dsl/model/sets/operation.go b/pkg/dsl/model/sets/operation.go index 127836a74..d965ad7c3 100644 --- a/pkg/dsl/model/sets/operation.go +++ b/pkg/dsl/model/sets/operation.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package sets import ( diff --git a/pkg/dsl/model/sets/operation_test.go b/pkg/dsl/model/sets/operation_test.go index be87c0093..c5e76fe03 100644 --- a/pkg/dsl/model/sets/operation_test.go +++ b/pkg/dsl/model/sets/operation_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package sets import ( diff --git a/pkg/dsl/model/sets/utils.go b/pkg/dsl/model/sets/utils.go index 023d7498a..0fcb86ced 100644 --- a/pkg/dsl/model/sets/utils.go +++ b/pkg/dsl/model/sets/utils.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package sets import ( diff --git a/pkg/dsl/model/sets/walk.go b/pkg/dsl/model/sets/walk.go index 538741650..dbd29d185 100644 --- a/pkg/dsl/model/sets/walk.go +++ b/pkg/dsl/model/sets/walk.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package sets import ( diff --git a/pkg/dsl/model/sets/walk_test.go b/pkg/dsl/model/sets/walk_test.go index 6efbc8bf9..82783b404 100644 --- a/pkg/dsl/model/sets/walk_test.go +++ b/pkg/dsl/model/sets/walk_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package sets import ( diff --git a/pkg/dsl/process/handle.go b/pkg/dsl/process/handle.go index 81c7e1ba2..c0e6e25cf 100644 --- a/pkg/dsl/process/handle.go +++ b/pkg/dsl/process/handle.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package process import ( diff --git a/pkg/dsl/process/handle_test.go b/pkg/dsl/process/handle_test.go index 1efec4585..dd68b5476 100644 --- a/pkg/dsl/process/handle_test.go +++ b/pkg/dsl/process/handle_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package process import ( diff --git a/pkg/dsl/task/process.go b/pkg/dsl/task/process.go index ac72c208c..12f8b4eaf 100644 --- a/pkg/dsl/task/process.go +++ b/pkg/dsl/task/process.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package task import ( diff --git a/pkg/dsl/task/process_test.go b/pkg/dsl/task/process_test.go index 76fc4095b..dccc0202b 100644 --- a/pkg/dsl/task/process_test.go +++ b/pkg/dsl/task/process_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package task import ( diff --git a/pkg/oam/discoverymapper/mapper.go b/pkg/oam/discoverymapper/mapper.go index fe8d17539..2d3a218b3 100644 --- a/pkg/oam/discoverymapper/mapper.go +++ b/pkg/oam/discoverymapper/mapper.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package discoverymapper import ( diff --git a/pkg/oam/discoverymapper/suit_test.go b/pkg/oam/discoverymapper/suit_test.go index 7d20f6715..774c9133c 100644 --- a/pkg/oam/discoverymapper/suit_test.go +++ b/pkg/oam/discoverymapper/suit_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package discoverymapper import ( diff --git a/pkg/oam/mock/mapper.go b/pkg/oam/mock/mapper.go index bf763e6bf..7c4188e98 100644 --- a/pkg/oam/mock/mapper.go +++ b/pkg/oam/mock/mapper.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package mock import ( diff --git a/pkg/oam/util/helper.go b/pkg/oam/util/helper.go index edf7206b9..d35914268 100644 --- a/pkg/oam/util/helper.go +++ b/pkg/oam/util/helper.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package util import ( diff --git a/pkg/oam/util/helper_test.go b/pkg/oam/util/helper_test.go index aa65f1575..57cc1766e 100644 --- a/pkg/oam/util/helper_test.go +++ b/pkg/oam/util/helper_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package util_test import ( diff --git a/pkg/oam/util/template.go b/pkg/oam/util/template.go index 8c8a35054..ba2de1d94 100644 --- a/pkg/oam/util/template.go +++ b/pkg/oam/util/template.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package util import ( diff --git a/pkg/oam/util/template_test.go b/pkg/oam/util/template_test.go index fce58cf2b..4cbf4bdd7 100644 --- a/pkg/oam/util/template_test.go +++ b/pkg/oam/util/template_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package util import ( diff --git a/pkg/oam/util/test_utils.go b/pkg/oam/util/test_utils.go index 39ad262a4..66dfbff61 100644 --- a/pkg/oam/util/test_utils.go +++ b/pkg/oam/util/test_utils.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package util import ( diff --git a/pkg/oam/util/test_utils_test.go b/pkg/oam/util/test_utils_test.go index ded0bfbf8..11c574979 100644 --- a/pkg/oam/util/test_utils_test.go +++ b/pkg/oam/util/test_utils_test.go @@ -1,4 +1,5 @@ /* +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/oam/var.go b/pkg/oam/var.go index c45506e45..3021a4b71 100644 --- a/pkg/oam/var.go +++ b/pkg/oam/var.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package oam // SystemDefinitonNamespace golbal value for controller and webhook systemlevel namespace diff --git a/pkg/utils/apply/apply.go b/pkg/utils/apply/apply.go index b985f3791..08d2eb3ca 100644 --- a/pkg/utils/apply/apply.go +++ b/pkg/utils/apply/apply.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apply import ( diff --git a/pkg/utils/apply/apply_resource_test.go b/pkg/utils/apply/apply_resource_test.go index 6020af625..5e167d3e0 100644 --- a/pkg/utils/apply/apply_resource_test.go +++ b/pkg/utils/apply/apply_resource_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apply import ( diff --git a/pkg/utils/apply/apply_suite_test.go b/pkg/utils/apply/apply_suite_test.go index af85df3a6..f7add3ab8 100644 --- a/pkg/utils/apply/apply_suite_test.go +++ b/pkg/utils/apply/apply_suite_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apply import ( diff --git a/pkg/utils/apply/apply_test.go b/pkg/utils/apply/apply_test.go index 4a50740b3..cab068b0f 100644 --- a/pkg/utils/apply/apply_test.go +++ b/pkg/utils/apply/apply_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apply import ( diff --git a/pkg/utils/apply/patch.go b/pkg/utils/apply/patch.go index 74c8c6500..c455acd0c 100644 --- a/pkg/utils/apply/patch.go +++ b/pkg/utils/apply/patch.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apply import ( diff --git a/pkg/utils/apply/patch_test.go b/pkg/utils/apply/patch_test.go index 7b1bfcbc3..1dc214923 100644 --- a/pkg/utils/apply/patch_test.go +++ b/pkg/utils/apply/patch_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apply import ( diff --git a/pkg/utils/common/args.go b/pkg/utils/common/args.go index e8fdfd443..0b6c97bdf 100644 --- a/pkg/utils/common/args.go +++ b/pkg/utils/common/args.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package common import ( diff --git a/pkg/utils/common/common.go b/pkg/utils/common/common.go index 7aff88ae5..277a34ac6 100644 --- a/pkg/utils/common/common.go +++ b/pkg/utils/common/common.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package common import ( diff --git a/pkg/utils/common/common_test.go b/pkg/utils/common/common_test.go index 4cd579841..b7e6a392e 100644 --- a/pkg/utils/common/common_test.go +++ b/pkg/utils/common/common_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package common import ( diff --git a/pkg/utils/config/config.go b/pkg/utils/config/config.go index 30176711a..b28c4b29a 100644 --- a/pkg/utils/config/config.go +++ b/pkg/utils/config/config.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package config import ( diff --git a/pkg/utils/env/env.go b/pkg/utils/env/env.go index dd21ecea4..da55b5c98 100644 --- a/pkg/utils/env/env.go +++ b/pkg/utils/env/env.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package env import ( diff --git a/pkg/utils/helm/helm.go b/pkg/utils/helm/helm.go index e883522c9..698282a54 100644 --- a/pkg/utils/helm/helm.go +++ b/pkg/utils/helm/helm.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package helm import ( diff --git a/pkg/utils/json.go b/pkg/utils/json.go index e756122cb..61cd3fee8 100644 --- a/pkg/utils/json.go +++ b/pkg/utils/json.go @@ -1,5 +1,5 @@ /* -Copyright 2019 The Kruise Authors. +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/utils/system/system.go b/pkg/utils/system/system.go index 045a54695..8f1bad86a 100644 --- a/pkg/utils/system/system.go +++ b/pkg/utils/system/system.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package system import ( diff --git a/pkg/utils/system/system_test.go b/pkg/utils/system/system_test.go index fb9a2033a..fc1b0dccb 100644 --- a/pkg/utils/system/system_test.go +++ b/pkg/utils/system/system_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package system import ( diff --git a/pkg/utils/util/cmd.go b/pkg/utils/util/cmd.go index 4e3fbddc6..2bacc724a 100644 --- a/pkg/utils/util/cmd.go +++ b/pkg/utils/util/cmd.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package util import ( diff --git a/pkg/utils/util/factory.go b/pkg/utils/util/factory.go index b25e50e42..fbf8ec07e 100644 --- a/pkg/utils/util/factory.go +++ b/pkg/utils/util/factory.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package util import ( diff --git a/pkg/utils/util/init.go b/pkg/utils/util/init.go index 88ac29a91..916653c42 100644 --- a/pkg/utils/util/init.go +++ b/pkg/utils/util/init.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package util import ( diff --git a/pkg/utils/util/init_test.go b/pkg/utils/util/init_test.go index 9294784b7..f1de35ee1 100644 --- a/pkg/utils/util/init_test.go +++ b/pkg/utils/util/init_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package util import ( diff --git a/pkg/webhook/common/rollout/rollout_plan.go b/pkg/webhook/common/rollout/rollout_plan.go index 474f1028d..fa9c7538d 100644 --- a/pkg/webhook/common/rollout/rollout_plan.go +++ b/pkg/webhook/common/rollout/rollout_plan.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package rollout import ( diff --git a/pkg/webhook/common/rollout/rollout_plan_test.go b/pkg/webhook/common/rollout/rollout_plan_test.go index 31ccc683a..01c14cecc 100644 --- a/pkg/webhook/common/rollout/rollout_plan_test.go +++ b/pkg/webhook/common/rollout/rollout_plan_test.go @@ -1,5 +1,5 @@ /* -Copyright 2021 KubeVela Authors +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/webhook/core.oam.dev/register.go b/pkg/webhook/core.oam.dev/register.go index 9d1f9ec9f..d31cb1f26 100644 --- a/pkg/webhook/core.oam.dev/register.go +++ b/pkg/webhook/core.oam.dev/register.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package core_oam_dev import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/application/suite_test.go b/pkg/webhook/core.oam.dev/v1alpha2/application/suite_test.go index 6d6457f16..acfe17abe 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/application/suite_test.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/application/suite_test.go @@ -1,5 +1,5 @@ /* - +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/webhook/core.oam.dev/v1alpha2/application/validating_handler.go b/pkg/webhook/core.oam.dev/v1alpha2/application/validating_handler.go index b67ce0a3f..5e93a3791 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/application/validating_handler.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/application/validating_handler.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package application import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/application/validating_handler_test.go b/pkg/webhook/core.oam.dev/v1alpha2/application/validating_handler_test.go index 0952fa571..b1ae2ffd2 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/application/validating_handler_test.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/application/validating_handler_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package application import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/application/validation.go b/pkg/webhook/core.oam.dev/v1alpha2/application/validation.go index 9d898334c..aae9cc201 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/application/validation.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/application/validation.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package application import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/handler_test.go b/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/handler_test.go index 43c2f45c6..e640e41bf 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/handler_test.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/handler_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/helper.go b/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/helper.go index 010cea5a8..ff9d347ae 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/helper.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/helper.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/helper_test.go b/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/helper_test.go index 4582a487c..4c3918f9c 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/helper_test.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/helper_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/mutating_handler.go b/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/mutating_handler.go index ccb8e7524..1e6e58ed4 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/mutating_handler.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/mutating_handler.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/suite_test.go b/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/suite_test.go index 623cd9664..a3e16de28 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/suite_test.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/suite_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/validating_handler.go b/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/validating_handler.go index 18153b232..df10e8745 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/validating_handler.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/validating_handler.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/validating_handler_test.go b/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/validating_handler_test.go index 9ddfdf899..933d92931 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/validating_handler_test.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/applicationconfiguration/validating_handler_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationconfiguration import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/common.go b/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/common.go index 9a67f97e6..ba19eda42 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/common.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/common.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationrollout import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/common_test.go b/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/common_test.go index 6507a4908..d5d1fd96a 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/common_test.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/common_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationrollout import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/mutating_handler.go b/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/mutating_handler.go index 5aa432b04..eb6a704be 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/mutating_handler.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/mutating_handler.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationrollout import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/suite_test.go b/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/suite_test.go index 14fd376eb..20dfb59e3 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/suite_test.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/suite_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationrollout import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/validating_handler.go b/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/validating_handler.go index 0336aa697..e304c07a0 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/validating_handler.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/validating_handler.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationrollout import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/validation.go b/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/validation.go index cdcdd2644..1fcf924ca 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/validation.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/applicationrollout/validation.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package applicationrollout import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/component/component_suite_test.go b/pkg/webhook/core.oam.dev/v1alpha2/component/component_suite_test.go index 09e7bb8bd..ec03ce0f9 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/component/component_suite_test.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/component/component_suite_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package component_test import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/component/component_test.go b/pkg/webhook/core.oam.dev/v1alpha2/component/component_test.go index 6d59a7218..a6c65e8c6 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/component/component_test.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/component/component_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package component_test import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/component/mutating_handler.go b/pkg/webhook/core.oam.dev/v1alpha2/component/mutating_handler.go index e2b210846..30d6e6db7 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/component/mutating_handler.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/component/mutating_handler.go @@ -1,5 +1,5 @@ /* -Copyright 2019 The Kruise Authors. +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/webhook/core.oam.dev/v1alpha2/component/validating_handler.go b/pkg/webhook/core.oam.dev/v1alpha2/component/validating_handler.go index 959f04bb5..ad18cb6ed 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/component/validating_handler.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/component/validating_handler.go @@ -1,5 +1,5 @@ /* -Copyright 2019 The Kruise Authors. +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/webhook/core.oam.dev/v1alpha2/traitdefinition/validating_handler.go b/pkg/webhook/core.oam.dev/v1alpha2/traitdefinition/validating_handler.go index cee993f6d..c1ef03c1c 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/traitdefinition/validating_handler.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/traitdefinition/validating_handler.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package traitdefinition import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/traitdefinition/validating_handler_test.go b/pkg/webhook/core.oam.dev/v1alpha2/traitdefinition/validating_handler_test.go index 79cde99a0..c9ecbe1eb 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/traitdefinition/validating_handler_test.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/traitdefinition/validating_handler_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package traitdefinition import ( diff --git a/pkg/webhook/core.oam.dev/v1alpha2/traitdefinition/validator_test.go b/pkg/webhook/core.oam.dev/v1alpha2/traitdefinition/validator_test.go index 16c0f023c..746857b1a 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/traitdefinition/validator_test.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/traitdefinition/validator_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package traitdefinition import ( diff --git a/pkg/webhook/standard.oam.dev/register.go b/pkg/webhook/standard.oam.dev/register.go index 437b80d04..fe71c6e91 100644 --- a/pkg/webhook/standard.oam.dev/register.go +++ b/pkg/webhook/standard.oam.dev/register.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package standard_oam_dev import ( diff --git a/pkg/webhook/standard.oam.dev/v1alpha1/podspecworkload/mutating_handler.go b/pkg/webhook/standard.oam.dev/v1alpha1/podspecworkload/mutating_handler.go index f68378ce7..12626be48 100644 --- a/pkg/webhook/standard.oam.dev/v1alpha1/podspecworkload/mutating_handler.go +++ b/pkg/webhook/standard.oam.dev/v1alpha1/podspecworkload/mutating_handler.go @@ -1,5 +1,5 @@ /* -Copyright 2019 The Kruise Authors. +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/webhook/standard.oam.dev/v1alpha1/podspecworkload/podspecworkload_test.go b/pkg/webhook/standard.oam.dev/v1alpha1/podspecworkload/podspecworkload_test.go index f61a64841..b80001808 100644 --- a/pkg/webhook/standard.oam.dev/v1alpha1/podspecworkload/podspecworkload_test.go +++ b/pkg/webhook/standard.oam.dev/v1alpha1/podspecworkload/podspecworkload_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package podspecworkload import ( diff --git a/pkg/webhook/standard.oam.dev/v1alpha1/podspecworkload/validating_handler.go b/pkg/webhook/standard.oam.dev/v1alpha1/podspecworkload/validating_handler.go index 4d0050613..798bc9227 100644 --- a/pkg/webhook/standard.oam.dev/v1alpha1/podspecworkload/validating_handler.go +++ b/pkg/webhook/standard.oam.dev/v1alpha1/podspecworkload/validating_handler.go @@ -1,5 +1,5 @@ /* -Copyright 2019 The Kruise Authors. +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/references/apiserver/api-server.go b/references/apiserver/api-server.go index 11660ad51..137e322f1 100644 --- a/references/apiserver/api-server.go +++ b/references/apiserver/api-server.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apiserver import ( diff --git a/references/apiserver/apis/types.go b/references/apiserver/apis/types.go index bc5a54116..ee1e93b04 100644 --- a/references/apiserver/apis/types.go +++ b/references/apiserver/apis/types.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apis import ( diff --git a/references/apiserver/appHandlers.go b/references/apiserver/appHandlers.go index ded434ec8..e2d022cc4 100644 --- a/references/apiserver/appHandlers.go +++ b/references/apiserver/appHandlers.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apiserver import ( diff --git a/references/apiserver/capabilityHandlers.go b/references/apiserver/capabilityHandlers.go index 036e8c0dd..1be3fab98 100644 --- a/references/apiserver/capabilityHandlers.go +++ b/references/apiserver/capabilityHandlers.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apiserver import ( diff --git a/references/apiserver/componentHandlers.go b/references/apiserver/componentHandlers.go index 64d017e2a..7fd1b9676 100644 --- a/references/apiserver/componentHandlers.go +++ b/references/apiserver/componentHandlers.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apiserver import ( diff --git a/references/apiserver/definitionHandler.go b/references/apiserver/definitionHandler.go index c87d52311..d5e5e3164 100644 --- a/references/apiserver/definitionHandler.go +++ b/references/apiserver/definitionHandler.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apiserver import ( diff --git a/references/apiserver/docs/docs.go b/references/apiserver/docs/docs.go index 5918ff17c..064773474 100644 --- a/references/apiserver/docs/docs.go +++ b/references/apiserver/docs/docs.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // This file was generated by swaggo/swag diff --git a/references/apiserver/envHandlers.go b/references/apiserver/envHandlers.go index ab535626e..01c50cb38 100644 --- a/references/apiserver/envHandlers.go +++ b/references/apiserver/envHandlers.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apiserver import ( diff --git a/references/apiserver/miscHandlers.go b/references/apiserver/miscHandlers.go index 30392d14d..d6d542565 100644 --- a/references/apiserver/miscHandlers.go +++ b/references/apiserver/miscHandlers.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apiserver import ( diff --git a/references/apiserver/route.go b/references/apiserver/route.go index b552eb7f3..9bed259c4 100644 --- a/references/apiserver/route.go +++ b/references/apiserver/route.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apiserver import ( diff --git a/references/apiserver/scopeHandlers.go b/references/apiserver/scopeHandlers.go index 3dc919c22..78f946b15 100644 --- a/references/apiserver/scopeHandlers.go +++ b/references/apiserver/scopeHandlers.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apiserver import "github.com/gin-gonic/gin" diff --git a/references/apiserver/swaggerHandlers.go b/references/apiserver/swaggerHandlers.go index 3d973fef2..53053a061 100644 --- a/references/apiserver/swaggerHandlers.go +++ b/references/apiserver/swaggerHandlers.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apiserver import ( diff --git a/references/apiserver/traitHandler.go b/references/apiserver/traitHandler.go index 3b6da13c1..260818805 100644 --- a/references/apiserver/traitHandler.go +++ b/references/apiserver/traitHandler.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apiserver import ( diff --git a/references/apiserver/util/api.go b/references/apiserver/util/api.go index c9bff1e22..16fd6deb1 100644 --- a/references/apiserver/util/api.go +++ b/references/apiserver/util/api.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package util import ( diff --git a/references/apiserver/util/errors.go b/references/apiserver/util/errors.go index 23847d176..3f7377864 100644 --- a/references/apiserver/util/errors.go +++ b/references/apiserver/util/errors.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package util import ( diff --git a/references/apiserver/util/middleware.go b/references/apiserver/util/middleware.go index f2b0d35d2..a1a163d33 100644 --- a/references/apiserver/util/middleware.go +++ b/references/apiserver/util/middleware.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package util import ( diff --git a/references/apiserver/workloadHandler.go b/references/apiserver/workloadHandler.go index b24e55ec7..9de2e4e64 100644 --- a/references/apiserver/workloadHandler.go +++ b/references/apiserver/workloadHandler.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package apiserver import ( diff --git a/references/appfile/addon.go b/references/appfile/addon.go index 60aa8c4ca..bbaec8ebf 100644 --- a/references/appfile/addon.go +++ b/references/appfile/addon.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package appfile import ( diff --git a/references/appfile/addon_suit_test.go b/references/appfile/addon_suit_test.go index 0af205e1a..5eb518e8d 100644 --- a/references/appfile/addon_suit_test.go +++ b/references/appfile/addon_suit_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package appfile import ( diff --git a/references/appfile/addon_test.go b/references/appfile/addon_test.go index 03cd3a7b6..f774d37d9 100644 --- a/references/appfile/addon_test.go +++ b/references/appfile/addon_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package appfile import ( diff --git a/references/appfile/api/appfile.go b/references/appfile/api/appfile.go index 2a17cb6c3..3eaa53434 100644 --- a/references/appfile/api/appfile.go +++ b/references/appfile/api/appfile.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package api import ( diff --git a/references/appfile/api/appfile_test.go b/references/appfile/api/appfile_test.go index 813133ec9..e17f7d1da 100644 --- a/references/appfile/api/appfile_test.go +++ b/references/appfile/api/appfile_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package api import ( diff --git a/references/appfile/api/driver.go b/references/appfile/api/driver.go index 73059bdfe..94e497e63 100644 --- a/references/appfile/api/driver.go +++ b/references/appfile/api/driver.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package api // Driver is mutli implement interface diff --git a/references/appfile/api/service.go b/references/appfile/api/service.go index 149ca3140..7cb39115e 100644 --- a/references/appfile/api/service.go +++ b/references/appfile/api/service.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package api import ( diff --git a/references/appfile/api/service_test.go b/references/appfile/api/service_test.go index de53a737b..aa0289fff 100644 --- a/references/appfile/api/service_test.go +++ b/references/appfile/api/service_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package api import ( diff --git a/references/appfile/app.go b/references/appfile/app.go index 3b7ff2d04..17c9e5009 100644 --- a/references/appfile/app.go +++ b/references/appfile/app.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package appfile import ( diff --git a/references/appfile/app_test.go b/references/appfile/app_test.go index 85d5f1c88..d6282c500 100644 --- a/references/appfile/app_test.go +++ b/references/appfile/app_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package appfile import ( diff --git a/references/appfile/driver/cfgmaps.go b/references/appfile/driver/cfgmaps.go index 70551d79c..21af06a46 100644 --- a/references/appfile/driver/cfgmaps.go +++ b/references/appfile/driver/cfgmaps.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package driver import ( diff --git a/references/appfile/driver/cfgmaps_test.go b/references/appfile/driver/cfgmaps_test.go index 5f31a7545..8fb50b62d 100644 --- a/references/appfile/driver/cfgmaps_test.go +++ b/references/appfile/driver/cfgmaps_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package driver import ( diff --git a/references/appfile/driver/local.go b/references/appfile/driver/local.go index 33772d843..15e6fbe8b 100644 --- a/references/appfile/driver/local.go +++ b/references/appfile/driver/local.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package driver import ( diff --git a/references/appfile/driver/local_test.go b/references/appfile/driver/local_test.go index fe9867cc0..91309cece 100644 --- a/references/appfile/driver/local_test.go +++ b/references/appfile/driver/local_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package driver import ( diff --git a/references/appfile/modify.go b/references/appfile/modify.go index fd44756e9..295ba1d8e 100644 --- a/references/appfile/modify.go +++ b/references/appfile/modify.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package appfile import ( diff --git a/references/appfile/run.go b/references/appfile/run.go index b81430e14..416c4e333 100644 --- a/references/appfile/run.go +++ b/references/appfile/run.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package appfile import ( diff --git a/references/appfile/storage.go b/references/appfile/storage.go index 4f86bc964..f794fe730 100644 --- a/references/appfile/storage.go +++ b/references/appfile/storage.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package appfile import ( diff --git a/references/appfile/storage_test.go b/references/appfile/storage_test.go index 6980bbf98..8f2e887e8 100644 --- a/references/appfile/storage_test.go +++ b/references/appfile/storage_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package appfile import ( diff --git a/references/appfile/template/fake.go b/references/appfile/template/fake.go index 8c4a9987e..ce6692303 100644 --- a/references/appfile/template/fake.go +++ b/references/appfile/template/fake.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package template // FakeTemplateManager defines a fake for test diff --git a/references/appfile/template/manager.go b/references/appfile/template/manager.go index 18f86b00d..b037b3d4b 100644 --- a/references/appfile/template/manager.go +++ b/references/appfile/template/manager.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package template import ( diff --git a/references/cli/capability.go b/references/cli/capability.go index e01985dda..0c0c29bba 100644 --- a/references/cli/capability.go +++ b/references/cli/capability.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/cli.go b/references/cli/cli.go index f00bb93af..57f55fc9f 100644 --- a/references/cli/cli.go +++ b/references/cli/cli.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/completion.go b/references/cli/completion.go index 4edee92e8..137b984de 100644 --- a/references/cli/completion.go +++ b/references/cli/completion.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/components.go b/references/cli/components.go index daf0ec1b5..6b4731d15 100644 --- a/references/cli/components.go +++ b/references/cli/components.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/config.go b/references/cli/config.go index de240ac41..133b4f387 100644 --- a/references/cli/config.go +++ b/references/cli/config.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/config_test.go b/references/cli/config_test.go index ed20a59b9..1b109b8c0 100644 --- a/references/cli/config_test.go +++ b/references/cli/config_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/dashboard.go b/references/cli/dashboard.go index 30bcee7cc..1cbe58455 100644 --- a/references/cli/dashboard.go +++ b/references/cli/dashboard.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/delete.go b/references/cli/delete.go index f01ad5f91..ec41f1906 100644 --- a/references/cli/delete.go +++ b/references/cli/delete.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/dryrun.go b/references/cli/dryrun.go index 6a6efa369..685f76f3c 100644 --- a/references/cli/dryrun.go +++ b/references/cli/dryrun.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/env.go b/references/cli/env.go index cb4fb7917..74ce8e3ec 100644 --- a/references/cli/env.go +++ b/references/cli/env.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/env_test.go b/references/cli/env_test.go index 4b95c3103..a247ef279 100644 --- a/references/cli/env_test.go +++ b/references/cli/env_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/exec.go b/references/cli/exec.go index 0085ee61a..d81680a6d 100644 --- a/references/cli/exec.go +++ b/references/cli/exec.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/export.go b/references/cli/export.go index c00d7e4d2..4b18763af 100644 --- a/references/cli/export.go +++ b/references/cli/export.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/help.go b/references/cli/help.go index d318a7a87..093d78538 100644 --- a/references/cli/help.go +++ b/references/cli/help.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/init.go b/references/cli/init.go index f417e794f..f102b9b9c 100644 --- a/references/cli/init.go +++ b/references/cli/init.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/logs.go b/references/cli/logs.go index 6e131d15f..9105be662 100644 --- a/references/cli/logs.go +++ b/references/cli/logs.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/ls.go b/references/cli/ls.go index bbdb2908b..f074ef06f 100644 --- a/references/cli/ls.go +++ b/references/cli/ls.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/portforward.go b/references/cli/portforward.go index af24dc15b..6a7a20c14 100644 --- a/references/cli/portforward.go +++ b/references/cli/portforward.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/print.go b/references/cli/print.go index 5e46fff11..404a2c1a7 100644 --- a/references/cli/print.go +++ b/references/cli/print.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/show.go b/references/cli/show.go index 867c9967b..58293f36d 100644 --- a/references/cli/show.go +++ b/references/cli/show.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/show_test.go b/references/cli/show_test.go index 8ce4ad001..dfa1628a7 100644 --- a/references/cli/show_test.go +++ b/references/cli/show_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/status.go b/references/cli/status.go index aa02b2c04..d3fd04e81 100644 --- a/references/cli/status.go +++ b/references/cli/status.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/system.go b/references/cli/system.go index 7504f2ce8..64fea1e21 100644 --- a/references/cli/system.go +++ b/references/cli/system.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/template.go b/references/cli/template.go index 60b7ba3d2..b0baff3d5 100644 --- a/references/cli/template.go +++ b/references/cli/template.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/traits.go b/references/cli/traits.go index fd4f8c324..88903fecc 100644 --- a/references/cli/traits.go +++ b/references/cli/traits.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/traits_test.go b/references/cli/traits_test.go index 6f9f82fb8..fb92d720f 100644 --- a/references/cli/traits_test.go +++ b/references/cli/traits_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/up.go b/references/cli/up.go index 693354805..ad96c0791 100644 --- a/references/cli/up.go +++ b/references/cli/up.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cli/up_test.go b/references/cli/up_test.go index ca7937b5f..57f6455d1 100644 --- a/references/cli/up_test.go +++ b/references/cli/up_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/references/cmd/apiserver/main.go b/references/cmd/apiserver/main.go index ffc2075d1..67ebd9529 100644 --- a/references/cmd/apiserver/main.go +++ b/references/cmd/apiserver/main.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( diff --git a/references/cmd/cli/fake/chart_source.go b/references/cmd/cli/fake/chart_source.go index 9143a76e0..97cb8a5ea 100644 --- a/references/cmd/cli/fake/chart_source.go +++ b/references/cmd/cli/fake/chart_source.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package fake // ChartSource is a base64-encoded, gzipped tarball of the default Helm chart(charts/vela-core). diff --git a/references/cmd/cli/fake/source.go b/references/cmd/cli/fake/source.go index a762ca95b..dc83b1b6f 100644 --- a/references/cmd/cli/fake/source.go +++ b/references/cmd/cli/fake/source.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package fake // FrontendSource is a base64-encoded, gzipped tarball of the default Frontend Static files. diff --git a/references/cmd/cli/main.go b/references/cmd/cli/main.go index 8d975280c..5dd4ab21a 100644 --- a/references/cmd/cli/main.go +++ b/references/cmd/cli/main.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main import ( diff --git a/references/common/application.go b/references/common/application.go index a0c8056b0..9a7642e2a 100644 --- a/references/common/application.go +++ b/references/common/application.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package common import ( diff --git a/references/common/capability.go b/references/common/capability.go index 4e9438a1e..d0576a74f 100644 --- a/references/common/capability.go +++ b/references/common/capability.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package common import ( diff --git a/references/common/capability_test.go b/references/common/capability_test.go index e9f3e9229..c6dae1851 100644 --- a/references/common/capability_test.go +++ b/references/common/capability_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package common import ( diff --git a/references/common/component.go b/references/common/component.go index d39c9cbeb..9f5dd14ca 100644 --- a/references/common/component.go +++ b/references/common/component.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package common import ( diff --git a/references/common/prometheus.go b/references/common/prometheus.go index a5aaee1cc..8626dcd9b 100644 --- a/references/common/prometheus.go +++ b/references/common/prometheus.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package common import ( diff --git a/references/common/trait.go b/references/common/trait.go index a378a364c..f1865eb56 100644 --- a/references/common/trait.go +++ b/references/common/trait.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package common import ( diff --git a/references/common/trait_test.go b/references/common/trait_test.go index cda368851..3903f05dd 100644 --- a/references/common/trait_test.go +++ b/references/common/trait_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package common import ( diff --git a/references/common/workload.go b/references/common/workload.go index d76c7dacd..cbc611b67 100644 --- a/references/common/workload.go +++ b/references/common/workload.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package common import ( diff --git a/references/plugins/capcenter.go b/references/plugins/capcenter.go index dc0eb3f77..53ea2147c 100644 --- a/references/plugins/capcenter.go +++ b/references/plugins/capcenter.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package plugins import ( diff --git a/references/plugins/capcenter_test.go b/references/plugins/capcenter_test.go index 8a7ed5148..f578f4525 100644 --- a/references/plugins/capcenter_test.go +++ b/references/plugins/capcenter_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package plugins import ( diff --git a/references/plugins/cluster.go b/references/plugins/cluster.go index 120c6f9a1..f14bdc9d8 100644 --- a/references/plugins/cluster.go +++ b/references/plugins/cluster.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package plugins import ( diff --git a/references/plugins/cluster_test.go b/references/plugins/cluster_test.go index 26e577540..ecd43013f 100644 --- a/references/plugins/cluster_test.go +++ b/references/plugins/cluster_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package plugins import ( diff --git a/references/plugins/local.go b/references/plugins/local.go index f4797a17a..d258e94f7 100644 --- a/references/plugins/local.go +++ b/references/plugins/local.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package plugins import ( diff --git a/references/plugins/local_test.go b/references/plugins/local_test.go index 5afb7f7ca..94790ab2c 100644 --- a/references/plugins/local_test.go +++ b/references/plugins/local_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package plugins import ( diff --git a/references/plugins/reference_test.go b/references/plugins/reference_test.go index fbf766f3f..d33557fcb 100644 --- a/references/plugins/reference_test.go +++ b/references/plugins/reference_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package plugins import ( diff --git a/references/plugins/references.go b/references/plugins/references.go index dd57f1573..ba5a0b0c8 100644 --- a/references/plugins/references.go +++ b/references/plugins/references.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package plugins import ( diff --git a/references/plugins/suit_test.go b/references/plugins/suit_test.go index eb25f768e..739afaa83 100644 --- a/references/plugins/suit_test.go +++ b/references/plugins/suit_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package plugins import ( diff --git a/test/compatibility-test/convert/main.go b/test/compatibility-test/convert/main.go index 0332a0a8c..1f2d536d7 100644 --- a/test/compatibility-test/convert/main.go +++ b/test/compatibility-test/convert/main.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package main // #nosec // generate compatibility testdata diff --git a/test/e2e-test/appconfig_finalizer_test.go b/test/e2e-test/appconfig_finalizer_test.go index fe7497565..47c4fe455 100644 --- a/test/e2e-test/appconfig_finalizer_test.go +++ b/test/e2e-test/appconfig_finalizer_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controllers_test import ( diff --git a/test/e2e-test/appconfig_render_workload_test.go b/test/e2e-test/appconfig_render_workload_test.go index 3c23f846a..fe00d3061 100644 --- a/test/e2e-test/appconfig_render_workload_test.go +++ b/test/e2e-test/appconfig_render_workload_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controllers_test import ( diff --git a/test/e2e-test/component_version_test.go b/test/e2e-test/component_version_test.go index 4bf3cad50..f3abe3057 100644 --- a/test/e2e-test/component_version_test.go +++ b/test/e2e-test/component_version_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controllers_test import ( diff --git a/test/e2e-test/containerized_workload_test.go b/test/e2e-test/containerized_workload_test.go index 16bb769a1..c914acd04 100644 --- a/test/e2e-test/containerized_workload_test.go +++ b/test/e2e-test/containerized_workload_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controllers_test import ( diff --git a/test/e2e-test/health_scope_test.go b/test/e2e-test/health_scope_test.go index 6ec756445..582e3b227 100644 --- a/test/e2e-test/health_scope_test.go +++ b/test/e2e-test/health_scope_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controllers_test import ( diff --git a/test/e2e-test/helm_app_test.go b/test/e2e-test/helm_app_test.go index caf741b45..b84c4bb76 100644 --- a/test/e2e-test/helm_app_test.go +++ b/test/e2e-test/helm_app_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controllers_test import ( diff --git a/test/e2e-test/kubernetes_workload_test.go b/test/e2e-test/kubernetes_workload_test.go index 0d6900274..9f4122def 100644 --- a/test/e2e-test/kubernetes_workload_test.go +++ b/test/e2e-test/kubernetes_workload_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controllers_test import ( diff --git a/test/e2e-test/rollout_plan_test.go b/test/e2e-test/rollout_plan_test.go index ad6b2d02d..00f564a12 100644 --- a/test/e2e-test/rollout_plan_test.go +++ b/test/e2e-test/rollout_plan_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package controllers_test import ( diff --git a/test/e2e-test/suite_test.go b/test/e2e-test/suite_test.go index fb115342f..5d2b8d465 100644 --- a/test/e2e-test/suite_test.go +++ b/test/e2e-test/suite_test.go @@ -1,4 +1,5 @@ /* +Copyright 2021 The KubeVela Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/version/version.go b/version/version.go index 05257f68f..a99e8fa1c 100644 --- a/version/version.go +++ b/version/version.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The KubeVela Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package version // GitRevision is the commit of repo