From e4a787f2e324bc4a611abb3c5e14b8de96e00119 Mon Sep 17 00:00:00 2001 From: helen Date: Wed, 20 Nov 2024 20:28:18 +0800 Subject: [PATCH] fix license Signed-off-by: helen --- README.md | 10 +++++++--- cmd/controller/main.go | 2 -- hack/boilerplate.sh | 2 +- pkg/apis/apis.go | 2 -- pkg/cache/cache.go | 2 -- pkg/cache/unavailableofferings.go | 2 -- pkg/cache/unavailableofferings_test.go | 2 -- pkg/cloudprovider/cloudprovider.go | 2 -- pkg/cloudprovider/drift.go | 2 -- pkg/cloudprovider/events/events.go | 4 +--- pkg/controllers/controllers.go | 4 +--- pkg/controllers/interruption/controller.go | 2 -- pkg/controllers/interruption/events/events.go | 2 -- .../nodeclaim/garbagecollection/controller.go | 2 -- pkg/controllers/nodeclaim/tagging/controller.go | 2 -- .../nodeclaim/unregisteredtaint/controller.go | 5 +++-- pkg/controllers/nodeclass/hash/controller.go | 2 -- pkg/controllers/nodeclass/status/controller.go | 2 -- pkg/controllers/nodeclass/status/image.go | 2 -- pkg/controllers/nodeclass/status/securitygroup.go | 5 +---- pkg/controllers/nodeclass/termination/controller.go | 2 -- pkg/controllers/nodeclass/termination/events.go | 2 -- pkg/controllers/providers/instancetype/instancetype.go | 2 -- pkg/operator/operator.go | 2 -- pkg/operator/options/options.go | 2 -- pkg/operator/options/options_validation.go | 4 +--- pkg/providers/instance/types.go | 2 -- pkg/providers/instancetype/instancetype.go | 2 -- pkg/providers/instancetype/types.go | 4 +--- 29 files changed, 16 insertions(+), 64 deletions(-) diff --git a/README.md b/README.md index a5ec673e..65abf6c1 100644 --- a/README.md +++ b/README.md @@ -44,12 +44,16 @@ Full documentation is available at [karpenter alibabacloud provider docs](https: We want your contributions and suggestions! One of the easiest ways to contribute is to participate in discussions on the Github Issues/Discussion, chat on IM or the bi-weekly community calls. -- [Slack channel](https://kubernetes.slack.com/archives/C02SFFZSA2K) -- [Community calls](https://calendar.google.com/calendar/u/0?cid=N3FmZGVvZjVoZWJkZjZpMnJrMmplZzVqYmtAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ) -- WeChat Group: Broker wechat to add you into the user group. +* [Slack channel](https://kubernetes.slack.com/archives/C02SFFZSA2K) +* [Community calls](https://calendar.google.com/calendar/u/0?cid=N3FmZGVvZjVoZWJkZjZpMnJrMmplZzVqYmtAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ) +* WeChat Group: Broker wechat to add you into the user group. +## Attribution Notice + +This project includes code derived from karpenter-provider-aws, used under the Apache License, Version 2.0 terms. We acknowledge the contributions of the original authors and thank them for making their work available. For more details, see the [karpenter-provider-aws](https://github.com/aws/karpenter-provider-aws). + ## Code Of Conduct Karpenter Alibaba Cloud Provider adopts [CNCF code of conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). diff --git a/cmd/controller/main.go b/cmd/controller/main.go index 966fc710..f2460c35 100644 --- a/cmd/controller/main.go +++ b/cmd/controller/main.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/hack/boilerplate.sh b/hack/boilerplate.sh index fb6df918..ac529c6b 100755 --- a/hack/boilerplate.sh +++ b/hack/boilerplate.sh @@ -4,7 +4,7 @@ set -eu -o pipefail for i in $( find ./cmd ./pkg ./hack -name "*.go" ); do - if ! grep -q "CloudPilot AI" $i; then + if ! grep -q "Apache License, Version 2.0" $i; then cat hack/boilerplate.go.txt $i >$i.new && mv $i.new $i fi done diff --git a/pkg/apis/apis.go b/pkg/apis/apis.go index 04b36335..c8223a32 100644 --- a/pkg/apis/apis.go +++ b/pkg/apis/apis.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/cache/cache.go b/pkg/cache/cache.go index 5219bb79..55e84c37 100644 --- a/pkg/cache/cache.go +++ b/pkg/cache/cache.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/cache/unavailableofferings.go b/pkg/cache/unavailableofferings.go index 76093dde..f058ea62 100644 --- a/pkg/cache/unavailableofferings.go +++ b/pkg/cache/unavailableofferings.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/cache/unavailableofferings_test.go b/pkg/cache/unavailableofferings_test.go index 21aaf0b0..18389d8d 100644 --- a/pkg/cache/unavailableofferings_test.go +++ b/pkg/cache/unavailableofferings_test.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/cloudprovider/cloudprovider.go b/pkg/cloudprovider/cloudprovider.go index c6b7b9ed..71233f1c 100644 --- a/pkg/cloudprovider/cloudprovider.go +++ b/pkg/cloudprovider/cloudprovider.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/cloudprovider/drift.go b/pkg/cloudprovider/drift.go index 110926e2..20e98181 100644 --- a/pkg/cloudprovider/drift.go +++ b/pkg/cloudprovider/drift.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/cloudprovider/events/events.go b/pkg/cloudprovider/events/events.go index 9c30c2bd..8f2cca5d 100644 --- a/pkg/cloudprovider/events/events.go +++ b/pkg/cloudprovider/events/events.go @@ -1,11 +1,9 @@ /* -Copyright 2024 The CloudPilot AI 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 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/controllers/controllers.go b/pkg/controllers/controllers.go index f602fb5e..5e1b60a6 100644 --- a/pkg/controllers/controllers.go +++ b/pkg/controllers/controllers.go @@ -1,11 +1,9 @@ /* -Copyright 2024 The CloudPilot AI 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 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/controllers/interruption/controller.go b/pkg/controllers/interruption/controller.go index 16099153..d93a53b4 100644 --- a/pkg/controllers/interruption/controller.go +++ b/pkg/controllers/interruption/controller.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/controllers/interruption/events/events.go b/pkg/controllers/interruption/events/events.go index 8481ac94..edefb9d0 100644 --- a/pkg/controllers/interruption/events/events.go +++ b/pkg/controllers/interruption/events/events.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/controllers/nodeclaim/garbagecollection/controller.go b/pkg/controllers/nodeclaim/garbagecollection/controller.go index aad5f6c4..167ba291 100644 --- a/pkg/controllers/nodeclaim/garbagecollection/controller.go +++ b/pkg/controllers/nodeclaim/garbagecollection/controller.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/controllers/nodeclaim/tagging/controller.go b/pkg/controllers/nodeclaim/tagging/controller.go index 29223e41..fb9da45d 100644 --- a/pkg/controllers/nodeclaim/tagging/controller.go +++ b/pkg/controllers/nodeclaim/tagging/controller.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/controllers/nodeclaim/unregisteredtaint/controller.go b/pkg/controllers/nodeclaim/unregisteredtaint/controller.go index 77a3499a..77500e1e 100644 --- a/pkg/controllers/nodeclaim/unregisteredtaint/controller.go +++ b/pkg/controllers/nodeclaim/unregisteredtaint/controller.go @@ -1,5 +1,3 @@ -package unregisteredtaint - /* Copyright 2024 The CloudPilot AI Authors. @@ -15,6 +13,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ + +package unregisteredtaint + import ( "context" "time" diff --git a/pkg/controllers/nodeclass/hash/controller.go b/pkg/controllers/nodeclass/hash/controller.go index c38035ed..5f38c968 100644 --- a/pkg/controllers/nodeclass/hash/controller.go +++ b/pkg/controllers/nodeclass/hash/controller.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/controllers/nodeclass/status/controller.go b/pkg/controllers/nodeclass/status/controller.go index 19feccf0..888c1074 100644 --- a/pkg/controllers/nodeclass/status/controller.go +++ b/pkg/controllers/nodeclass/status/controller.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/controllers/nodeclass/status/image.go b/pkg/controllers/nodeclass/status/image.go index 7b926cfb..c647eef2 100644 --- a/pkg/controllers/nodeclass/status/image.go +++ b/pkg/controllers/nodeclass/status/image.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/controllers/nodeclass/status/securitygroup.go b/pkg/controllers/nodeclass/status/securitygroup.go index 9ef579e8..70d120bf 100644 --- a/pkg/controllers/nodeclass/status/securitygroup.go +++ b/pkg/controllers/nodeclass/status/securitygroup.go @@ -1,11 +1,9 @@ /* -Copyright 2024 The CloudPilot AI 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 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -13,7 +11,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ - package status import ( diff --git a/pkg/controllers/nodeclass/termination/controller.go b/pkg/controllers/nodeclass/termination/controller.go index 831e0425..ba25b2c9 100644 --- a/pkg/controllers/nodeclass/termination/controller.go +++ b/pkg/controllers/nodeclass/termination/controller.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/controllers/nodeclass/termination/events.go b/pkg/controllers/nodeclass/termination/events.go index e6773798..cacc3b49 100644 --- a/pkg/controllers/nodeclass/termination/events.go +++ b/pkg/controllers/nodeclass/termination/events.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/controllers/providers/instancetype/instancetype.go b/pkg/controllers/providers/instancetype/instancetype.go index a58b6afa..dfc7820d 100644 --- a/pkg/controllers/providers/instancetype/instancetype.go +++ b/pkg/controllers/providers/instancetype/instancetype.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/operator/operator.go b/pkg/operator/operator.go index 01966e39..710b09c8 100644 --- a/pkg/operator/operator.go +++ b/pkg/operator/operator.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/operator/options/options.go b/pkg/operator/options/options.go index 88019594..3bfeb682 100644 --- a/pkg/operator/options/options.go +++ b/pkg/operator/options/options.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/operator/options/options_validation.go b/pkg/operator/options/options_validation.go index 6a63a0b6..0959e815 100644 --- a/pkg/operator/options/options_validation.go +++ b/pkg/operator/options/options_validation.go @@ -1,11 +1,9 @@ /* -Copyright 2024 The CloudPilot AI 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 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/providers/instance/types.go b/pkg/providers/instance/types.go index d238ad39..b8b31570 100644 --- a/pkg/providers/instance/types.go +++ b/pkg/providers/instance/types.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/providers/instancetype/instancetype.go b/pkg/providers/instancetype/instancetype.go index 04722ad5..c078aafb 100644 --- a/pkg/providers/instancetype/instancetype.go +++ b/pkg/providers/instancetype/instancetype.go @@ -1,6 +1,4 @@ /* -Copyright 2024 The CloudPilot AI 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/pkg/providers/instancetype/types.go b/pkg/providers/instancetype/types.go index a2b105f8..2b96698d 100644 --- a/pkg/providers/instancetype/types.go +++ b/pkg/providers/instancetype/types.go @@ -1,11 +1,9 @@ /* -Copyright 2024 The CloudPilot AI 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 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,