Skip to content

Commit

Permalink
licensing: switch to SPDX tags for some more files
Browse files Browse the repository at this point in the history
Commit a8e3fa2 ("licensing: spdx convert code base") dropped the
license boilerplates in favour of SPDX tags for a large portion of the
code base. However, some files were not updated. This happened for a
variety of reasons:

- Some were not yet committed (work-in-progress) at the time this commit
  was merged.
- Some had an additional space between the comment marker and the
  beginning of the copyright/license mention, making them pass through
  the search pattern undetected.
- Some may be in directories that were not processed at the time, or may
  have been skipped for some other reasons.

This commit turns more files to the SPDX tags. However, it does not
touch files for which the copyright does not go to the authors of
Cilium, only.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
  • Loading branch information
qmonnet authored and joestringer committed Feb 17, 2022
1 parent 42a31d9 commit 962694e
Show file tree
Hide file tree
Showing 47 changed files with 64 additions and 595 deletions.
14 changes: 1 addition & 13 deletions bpf/init.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2016-2020 Authors of Cilium
#
# 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.

LIB=$1
RUNDIR=$2
Expand Down
14 changes: 1 addition & 13 deletions contrib/backporting/common.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2019-2021 Authors of Cilium
#
# 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.

set -e

Expand Down
14 changes: 1 addition & 13 deletions contrib/backporting/start-backport
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2019-2021 Authors of Cilium
#
# 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.

source $(dirname $(readlink -ne $BASH_SOURCE))/../release/lib/common.sh
source $TOOL_LIB_PATH/gitlib.sh
Expand Down
14 changes: 1 addition & 13 deletions contrib/backporting/submit-backport
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2020-2021 Authors of Cilium
#
# 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.

DIR=$(dirname $(readlink -ne $BASH_SOURCE))
source $DIR/../release/lib/common.sh
Expand Down
14 changes: 1 addition & 13 deletions contrib/k8s/k8s-cilium-exec.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2018 Authors of Cilium
#
# 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.

trap cleanup EXIT

Expand Down
14 changes: 1 addition & 13 deletions contrib/k8s/k8s-extract-clustermesh-nodeport-secret.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2020 Authors of Cilium
#
# 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.

# Extract a clustermesh secret from the local cluster to be used in other clusters
set -e
Expand Down
14 changes: 1 addition & 13 deletions contrib/k8s/k8s-get-cilium-pod.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2018 Authors of Cilium
#
# 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.

# Given an app pod and namespace; get corresponding cilium pod

Expand Down
14 changes: 1 addition & 13 deletions contrib/k8s/k8s-heap-dump.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2018 Authors of Cilium
#
# 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.

set -x

Expand Down
14 changes: 1 addition & 13 deletions contrib/k8s/k8s-import-clustermesh-secrets.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2020 Authors of Cilium
#
# 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.

# Combine given secrets (in JSON) into one
set -e
Expand Down
14 changes: 1 addition & 13 deletions contrib/k8s/k8s-unmanaged.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2018 Authors of Cilium
#
# 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.

ALL_CEPS=$(kubectl get cep --all-namespaces -o json | jq -r '.items[].metadata | .namespace + "/" + .name')
ALL_PODS=$(kubectl get pods --all-namespaces -o json | jq -r '.items[] | select(.spec.hostNetwork==true | not) | .metadata | .namespace + "/" + .name')
Expand Down
14 changes: 1 addition & 13 deletions contrib/k8s/nsexec
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
#!/usr/bin/env bash
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2020 Authors of Cilium
#
# 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.

#
# Execute command in the network namespace of the named k8s POD
Expand Down
14 changes: 1 addition & 13 deletions contrib/scripts/check-viper-get-string-map-string.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2022 Authors of Cilium
#
# 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.

# Simple script to make sure viper.GetStringMapString should not be used.
# Related upstream issue https://github.com/spf13/viper/issues/911
Expand Down
14 changes: 1 addition & 13 deletions contrib/scripts/custom-vet-check.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2020 Authors of Cilium
#
# 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.

# "customvet" is a custom go vet tool that can be found at
# https://github.com/cilium/customvet
Expand Down
14 changes: 1 addition & 13 deletions contrib/scripts/lock-check.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2017 Authors of Cilium
#
# 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.

# Used to cause failure when pkg/lock is not used
for l in sync.Mutex sync.RWMutex; do
Expand Down
17 changes: 2 additions & 15 deletions contrib/scripts/netperf_reporter.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
#!/usr/bin/env python3

# SPDX-License-Identifier: Apache-2.0
# Copyright 2018 Authors of Cilium

# 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.

# ----------------------------------------------------------------------
# This script read the output of netperf results from Kubernetes upstream
# This script reads the output of netperf results from Kubernetes upstream
# project and pushes the results to the given Prometheus server.
# Needed variables to run this script:
# - PROMETHEUS_URL: metrics gateway URL, example:
Expand Down
13 changes: 1 addition & 12 deletions contrib/shell/test.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright 2017-2019 Authors of Cilium
#
# 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.

readonly t_reset=$(tput sgr0)
readonly red=$(tput bold; tput setaf 1)
Expand Down
13 changes: 1 addition & 12 deletions envoy/Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2017-2019 Authors of Cilium
#
# 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.

include ../Makefile.defs

Expand Down
13 changes: 1 addition & 12 deletions operator/pkg/ciliumendpointslice/ceptocesmap.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 Authors of Cilium
//
// 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 ciliumendpointslice

Expand Down
13 changes: 1 addition & 12 deletions operator/pkg/ciliumendpointslice/ceptocesmap_test.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 Authors of Cilium
//
// 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.

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
13 changes: 1 addition & 12 deletions operator/pkg/ciliumendpointslice/endpointslice.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 Authors of Cilium
//
// 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 ciliumendpointslice

Expand Down
Loading

0 comments on commit 962694e

Please sign in to comment.