From 77111b91bae5690df8ca75e5ee8ad6be263265cb Mon Sep 17 00:00:00 2001 From: liubo02 Date: Tue, 21 Jan 2025 09:32:38 +0800 Subject: [PATCH] fix license Signed-off-by: liubo02 --- cmd/testing-workload/ping.go | 14 ++++++++++++++ cmd/testing-workload/workload.go | 14 ++++++++++++++ hack/lib/build.sh | 2 +- manifests/crd/core.pingcap.com_clusters.yaml | 2 +- tests/e2e/framework/workload.go | 14 ++++++++++++++ tests/e2e/tidb/tidb.go | 14 ++++++++++++++ tests/e2e/utils/waiter/job.go | 14 ++++++++++++++ tests/e2e/utils/waiter/tidb.go | 14 ++++++++++++++ tests/e2e/utils/waiter/tikv.go | 14 ++++++++++++++ 9 files changed, 100 insertions(+), 2 deletions(-) diff --git a/cmd/testing-workload/ping.go b/cmd/testing-workload/ping.go index ad2d97a76b..89bffdd16e 100644 --- a/cmd/testing-workload/ping.go +++ b/cmd/testing-workload/ping.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 main import ( diff --git a/cmd/testing-workload/workload.go b/cmd/testing-workload/workload.go index 9b612a2746..e8b7f6a4bd 100644 --- a/cmd/testing-workload/workload.go +++ b/cmd/testing-workload/workload.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 main import ( diff --git a/hack/lib/build.sh b/hack/lib/build.sh index b9bfc1ece0..8d6972518f 100644 --- a/hack/lib/build.sh +++ b/hack/lib/build.sh @@ -36,7 +36,7 @@ function build::go() { go build -v \ -ldflags "$(version::ldflags)" \ -o ${OUTPUT_DIR}/${os}/${arch}/bin/${target} \ - ${ROOT}/cmd/${target}/... + ${ROOT}/cmd/${target}/. } function build::all() { diff --git a/manifests/crd/core.pingcap.com_clusters.yaml b/manifests/crd/core.pingcap.com_clusters.yaml index 09de019fed..246cb953c2 100644 --- a/manifests/crd/core.pingcap.com_clusters.yaml +++ b/manifests/crd/core.pingcap.com_clusters.yaml @@ -61,7 +61,7 @@ spec: properties: bootstrapSQL: description: |- - BootstrapSQL refer to a configmap which contains the bootstrap SQL file with the key `bootstrap-sql`, + BootstrapSQL refers to a configmap which contains the bootstrap SQL file with the key `bootstrap-sql`, which will only be executed when a TiDB cluster bootstrap on the first time. Only v6.5.1+ supports this feature. properties: diff --git a/tests/e2e/framework/workload.go b/tests/e2e/framework/workload.go index a60dc93ddc..16facb866d 100644 --- a/tests/e2e/framework/workload.go +++ b/tests/e2e/framework/workload.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 framework import ( diff --git a/tests/e2e/tidb/tidb.go b/tests/e2e/tidb/tidb.go index dd13d9eddd..e730f9ef4e 100644 --- a/tests/e2e/tidb/tidb.go +++ b/tests/e2e/tidb/tidb.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 tidb import ( diff --git a/tests/e2e/utils/waiter/job.go b/tests/e2e/utils/waiter/job.go index 21c231e9de..ccbd44ccf6 100644 --- a/tests/e2e/utils/waiter/job.go +++ b/tests/e2e/utils/waiter/job.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 waiter import ( diff --git a/tests/e2e/utils/waiter/tidb.go b/tests/e2e/utils/waiter/tidb.go index 5c59b16446..3ba83f867d 100644 --- a/tests/e2e/utils/waiter/tidb.go +++ b/tests/e2e/utils/waiter/tidb.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 waiter import ( diff --git a/tests/e2e/utils/waiter/tikv.go b/tests/e2e/utils/waiter/tikv.go index 89dd384025..319be69680 100644 --- a/tests/e2e/utils/waiter/tikv.go +++ b/tests/e2e/utils/waiter/tikv.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 waiter import (