From 59d48ff347bb75fd9d5f231d3939a1ed2e1e8ee7 Mon Sep 17 00:00:00 2001 From: liubo02 Date: Fri, 3 Jan 2025 17:45:20 +0800 Subject: [PATCH] fix license Signed-off-by: liubo02 --- pkg/controllers/common/revision.go | 14 ++++++++++++++ pkg/controllers/common/revision_test.go | 14 ++++++++++++++ pkg/controllers/common/task_finalizer.go | 14 ++++++++++++++ pkg/controllers/common/task_finalizer_test.go | 14 ++++++++++++++ pkg/controllers/common/task_status.go | 14 ++++++++++++++ pkg/controllers/common/task_status_test.go | 14 ++++++++++++++ pkg/updater/hook.go | 14 ++++++++++++++ 7 files changed, 98 insertions(+) diff --git a/pkg/controllers/common/revision.go b/pkg/controllers/common/revision.go index 5cd8aa9302..6a6830b811 100644 --- a/pkg/controllers/common/revision.go +++ b/pkg/controllers/common/revision.go @@ -1,3 +1,17 @@ +// Copyright 2024 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.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/controllers/common/revision_test.go b/pkg/controllers/common/revision_test.go index b8889ab8ba..7d11e1b182 100644 --- a/pkg/controllers/common/revision_test.go +++ b/pkg/controllers/common/revision_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.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/controllers/common/task_finalizer.go b/pkg/controllers/common/task_finalizer.go index 9392dd9e55..2ea8bb5441 100644 --- a/pkg/controllers/common/task_finalizer.go +++ b/pkg/controllers/common/task_finalizer.go @@ -1,3 +1,17 @@ +// Copyright 2024 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.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/controllers/common/task_finalizer_test.go b/pkg/controllers/common/task_finalizer_test.go index 0be872361e..d4ead8f355 100644 --- a/pkg/controllers/common/task_finalizer_test.go +++ b/pkg/controllers/common/task_finalizer_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.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/controllers/common/task_status.go b/pkg/controllers/common/task_status.go index ebe6af4f00..473434352d 100644 --- a/pkg/controllers/common/task_status.go +++ b/pkg/controllers/common/task_status.go @@ -1,3 +1,17 @@ +// Copyright 2024 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.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/controllers/common/task_status_test.go b/pkg/controllers/common/task_status_test.go index 455082b805..25f925deb2 100644 --- a/pkg/controllers/common/task_status_test.go +++ b/pkg/controllers/common/task_status_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.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/updater/hook.go b/pkg/updater/hook.go index d51def8070..44a588c7cf 100644 --- a/pkg/updater/hook.go +++ b/pkg/updater/hook.go @@ -1,3 +1,17 @@ +// Copyright 2024 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.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 updater import "github.com/pingcap/tidb-operator/pkg/runtime"