Skip to content

Commit 911fedd

Browse files
committed
chore: Add Apache 2.0 license headers to all files
This commit adds standardized Apache 2.0 license headers to all relevant files, replacing any existing inconsistent or incomplete license comments. The changes ensure compliance with the project's licensing requirements and improve consistency across the codebase. A new LICENSE file has also been added to the root directory. # Conflicts: # Makefile
1 parent f14c95e commit 911fedd

File tree

110 files changed

+1259
-376
lines changed

Some content is hidden

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

110 files changed

+1259
-376
lines changed

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 (

api/v1alpha1/gatewayproxy_types.go

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
/*
2-
Copyright 2024.
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-
*/
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.
1612

1713
package v1alpha1
1814

0 commit comments

Comments
 (0)