Skip to content

Commit 8e158ce

Browse files
authored
chore: Add Apache 2.0 license headers to all Go files (#127)
1 parent e9f614d commit 8e158ce

File tree

111 files changed

+1195
-351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+1195
-351
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626

2727
- name: 🛩️ golangci-lint
2828
run: make lint
29+
30+
- name: ©️ check-copyright
31+
run: make check-copyright
32+
2933
crd-docs-check:
3034
name: Check CRD Docs
3135
runs-on: ubuntu-latest

LICENSE

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

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,10 @@ sort-import:
352352
@./scripts/goimports-reviser.sh >/dev/null 2>&1
353353
.PHONY: sort-import
354354

355+
# check copyright header
356+
check-copyright:
357+
go run scripts/go-copyright/main.go
358+
355359
.PHONY: generate-crd-docs
356360
generate-crd-docs: manifests ## Generate CRD reference documentation in a single file
357361
@mkdir -p $(dir $(CRD_DOCS_OUTPUT))

api/adc/types.go

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

315
import (

api/dashboard/v1/doc.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
// Licensed to the Apache Software Foundation (ASF) under one or more
2-
// contributor license agreements. See the NOTICE file distributed with
3-
// this work for additional information regarding copyright ownership.
4-
// The ASF licenses this file to You under the Apache License, Version 2.0
5-
// (the "License"); you may not use this file except in compliance with
6-
// the License. You may obtain a copy of the License at
1+
// Licensed under the Apache License, Version 2.0 (the "License");
2+
// you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at
74
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
5+
// http://www.apache.org/licenses/LICENSE-2.0
96
//
107
// Unless required by applicable law or agreed to in writing, software
118
// distributed under the License is distributed on an "AS IS" BASIS,
129
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1310
// See the License for the specific language governing permissions and
1411
// limitations under the License.
12+
1513
package v1

api/dashboard/v1/plugin_types.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
// Licensed to the Apache Software Foundation (ASF) under one or more
2-
// contributor license agreements. See the NOTICE file distributed with
3-
// this work for additional information regarding copyright ownership.
4-
// The ASF licenses this file to You under the Apache License, Version 2.0
5-
// (the "License"); you may not use this file except in compliance with
6-
// the License. You may obtain a copy of the License at
1+
// Licensed under the Apache License, Version 2.0 (the "License");
2+
// you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at
74
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
5+
// http://www.apache.org/licenses/LICENSE-2.0
96
//
107
// Unless required by applicable law or agreed to in writing, software
118
// distributed under the License is distributed on an "AS IS" BASIS,
129
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1310
// See the License for the specific language governing permissions and
1411
// limitations under the License.
12+
1513
package v1
1614

1715
import (

api/dashboard/v1/types.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
// Licensed to the Apache Software Foundation (ASF) under one or more
2-
// contributor license agreements. See the NOTICE file distributed with
3-
// this work for additional information regarding copyright ownership.
4-
// The ASF licenses this file to You under the Apache License, Version 2.0
5-
// (the "License"); you may not use this file except in compliance with
6-
// the License. You may obtain a copy of the License at
1+
// Licensed under the Apache License, Version 2.0 (the "License");
2+
// you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at
74
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
5+
// http://www.apache.org/licenses/LICENSE-2.0
96
//
107
// Unless required by applicable law or agreed to in writing, software
118
// distributed under the License is distributed on an "AS IS" BASIS,
129
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1310
// See the License for the specific language governing permissions and
1411
// limitations under the License.
12+
1513
package v1
1614

1715
import (

api/dashboard/v1/zz_generated.deepcopy.go

Lines changed: 11 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha1/backendtrafficpolicy_types.go

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

315
import (

api/v1alpha1/consumer_types.go

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

315
import (

0 commit comments

Comments
 (0)