Skip to content

Commit 9f9e74a

Browse files
committed
Fixed license header on proto.
Added standard license to our .proto files. Put in a hack to cat our license to the files generated from our .proto files.
1 parent 1b575d8 commit 9f9e74a

File tree

6 files changed

+77
-0
lines changed

6 files changed

+77
-0
lines changed

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ bin:
2121

2222
proto/agent/agent.pb.go: proto/agent/agent.proto
2323
protoc -I proto proto/agent/agent.proto --go_out=plugins=grpc:proto
24+
cat hack/go-license-header.txt proto/agent/agent.pb.go > proto/agent/agent.licensed.go
25+
mv proto/agent/agent.licensed.go proto/agent/agent.pb.go
2426

2527
proto/proxy.pb.go: proto/proxy.proto
2628
protoc -I proto proto/proxy.proto --go_out=plugins=grpc:proto
29+
cat hack/go-license-header.txt proto/proxy.pb.go > proto/proxy.licensed.go
30+
mv proto/proxy.licensed.go proto/proxy.pb.go
2731

2832
bin/proxy-agent: bin cmd/agent/main.go proto/agent/agent.pb.go
2933
go build -o bin/proxy-agent cmd/agent/main.go

hack/go-license-header.txt

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
Copyright The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/

proto/agent/agent.pb.go

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/agent/agent.proto

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright The Kubernetes Authors.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
syntax = "proto3";
216

317
// Retransmit?

proto/proxy.pb.go

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/proxy.proto

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright The Kubernetes Authors.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
// LEGACY
216

317
syntax = "proto3";

0 commit comments

Comments
 (0)