Skip to content

Commit

Permalink
hubble: drop year in copyright notice
Browse files Browse the repository at this point in the history
Similarly to what we did in the previous commit, drop the copyright year
(or year range) from copyright notices attributing the code to Hubble
authors.

    $ cat years_hubble.sed
    6, $ b
    /^\(#\|\/\/\|\/\*\) *SPDX-License-Identifier: \(GPL-2\.0\|Apache-2\.0\)\( \*\/\)\?$/ {
        N; s/Copyright .* Authors of Hubble/Copyright Authors of Hubble/
    }
    /^\(#\|\/\/\|\/\*\) *Copyright .* Authors of Hubble\( \*\/\)\?$/ {
        N; {
            /\(#\|\/\/\|\/\*\) *SPDX-License-Identifier: \(GPL-2\.0\|Apache-2\.0\)\( \*\/\)\?$/ s/Copyright .* Authors of Hubble/Copyright Authors of Hubble/
        }
    }

    $ find pkg/hubble -type f -print0 | \
        xargs -0 -P 8 sed -i -f years_hubble.sed

Signed-off-by: Quentin Monnet <[email protected]>
  • Loading branch information
qmonnet authored and joestringer committed Feb 17, 2022
1 parent 314ca7b commit e6ce5c1
Show file tree
Hide file tree
Showing 94 changed files with 94 additions and 94 deletions.
2 changes: 1 addition & 1 deletion pkg/hubble/api/v1/const.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package v1

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/api/v1/flow.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package v1

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/api/v1/interface.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package v1

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/api/v1/types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package v1

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/container/ring.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

package container

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/container/ring_reader.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Hubble
// Copyright Authors of Hubble

package container

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/container/ring_reader_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/container/ring_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/event_type.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

package filters

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/filters.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

package filters

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/filters_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/fqdn.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

package filters

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/fqdn_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/http.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

package filters

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/http_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/identity.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

package filters

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/identity_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/ip.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

package filters

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/ip_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/k8s.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

package filters

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/k8s_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/labels.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

package filters

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/labels_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/nodename.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Hubble
// Copyright Authors of Hubble

package filters

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/nodename_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/patterns.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Hubble
// Copyright Authors of Hubble

package filters

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/patterns_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/port.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

package filters

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/port_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/protocol.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

package filters

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/protocol_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/reply.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

package filters

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/reply_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/tcp.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Hubble
// Copyright Authors of Hubble

package filters

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/tcp_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/verdict.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

package filters

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/filters/verdict_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/k8s/utils.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package k8s

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/k8s/utils_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/math/bits.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package math

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/math/bits_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/api/api.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package api

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/api/api_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/api/context.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package api

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/api/context_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/api/options.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package api

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/api/options_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/api/registry.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package api

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/api/registry_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/dns/handler.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package dns

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/dns/plugin.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package dns

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/dns/rcode.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package dns

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/drop/handler.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package drop

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/drop/plugin.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package drop

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/flow/handler.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package flow

Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/flow/handler_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

//go:build !privileged_tests
// +build !privileged_tests
Expand Down
2 changes: 1 addition & 1 deletion pkg/hubble/metrics/flow/plugin.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
// Copyright Authors of Hubble

package flow

Expand Down
Loading

0 comments on commit e6ce5c1

Please sign in to comment.