Skip to content

Commit

Permalink
Merge pull request #4373 from whitewindmills/fix-es-license
Browse files Browse the repository at this point in the history
fix estimator license
  • Loading branch information
karmada-bot authored Dec 6, 2023
2 parents 1cafe7f + e6be7a2 commit 5e3f34c
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 3 deletions.
2 changes: 0 additions & 2 deletions hack/verify-license.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ missing_license_header_files="$($ADDLICENSE_BIN \
-ignore "docs/**" \
-ignore ".github/**" \
-ignore "third_party/**" \
-ignore "**/pb/**" \
-ignore "**/*.md" \
-ignore "**/*.yaml" \
-ignore "**/*.yml" \
-ignore "**/*.json" \
-ignore "**/*.proto" \
.)" || true

if [[ "$missing_license_header_files" ]]; then
Expand Down
16 changes: 16 additions & 0 deletions pkg/estimator/pb/types.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright 2022 The Karmada Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package pb

import (
Expand Down
2 changes: 1 addition & 1 deletion pkg/estimator/service/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ limitations under the License.
package service

//go:generate protoc --gogo_opt=paths=source_relative -I . -I ../../.. -I ../../../vendor --gogo_out=plugins=grpc:. --gogo_opt=Mpkg/estimator/pb/generated.proto=github.com/karmada-io/karmada/pkg/estimator/pb service.proto
//go:generate mockery --name=EstimatorClient --inpackage
//go:generate mockery --name=EstimatorClient --inpackage --boilerplate-file=../../../hack/boilerplate/boilerplate.go.txt
16 changes: 16 additions & 0 deletions pkg/estimator/service/mock_EstimatorClient.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions pkg/estimator/service/service.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright 2022 The Karmada Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

syntax = "proto2";

package github.com.karmada_io.karmada.pkg.estimator.service;
Expand Down

0 comments on commit 5e3f34c

Please sign in to comment.