From d6caf163024ebb109fc4bc3354b47d64241961eb Mon Sep 17 00:00:00 2001 From: tompsota <72520867+tompsota@users.noreply.github.com> Date: Fri, 17 Dec 2021 16:29:44 +0100 Subject: [PATCH] Fix goheader linter (#947) * Edit goheader template The goheader linter treated the original template as incorrect. It expects only 1 newline instead of 2. Signed-off-by: Tomas Psota * Goheader linter - silence warnings Solved warnings from goheader linter Signed-off-by: Tomas Psota --- .golangci.yml | 2 +- cmd/operator/main.go | 1 + controllers/handler/handler_suite_test.go | 17 +++++++++++++++++ controllers/handler/labels.go | 17 +++++++++++++++++ controllers/handler/node_controller_test.go | 17 +++++++++++++++++ ...orkconfigurationenactment_controller_test.go | 17 +++++++++++++++++ ...etworkconfigurationpolicy_controller_test.go | 17 +++++++++++++++++ controllers/operator/nmstate_controller_test.go | 17 +++++++++++++++++ controllers/operator/operator_suite_test.go | 17 +++++++++++++++++ hack/header.tpl | 1 - hack/render-manifests.go | 17 +++++++++++++++++ pkg/enactment/enactment.go | 17 +++++++++++++++++ pkg/enactment/refresh.go | 17 +++++++++++++++++ pkg/enactmentstatus/conditions/conditions.go | 17 +++++++++++++++++ .../conditions/conditions_suite_test.go | 17 +++++++++++++++++ pkg/enactmentstatus/conditions/counter.go | 17 +++++++++++++++++ pkg/enactmentstatus/conditions/counter_test.go | 17 +++++++++++++++++ .../enactmentstatus_suite_test.go | 17 +++++++++++++++++ pkg/enactmentstatus/message_test.go | 17 +++++++++++++++++ pkg/enactmentstatus/status.go | 17 +++++++++++++++++ pkg/environment/environment.go | 17 +++++++++++++++++ pkg/file/touch.go | 17 +++++++++++++++++ pkg/helper/bridges.go | 17 +++++++++++++++++ pkg/helper/bridges_test.go | 17 +++++++++++++++++ pkg/helper/client.go | 17 +++++++++++++++++ pkg/helper/helper_suite_test.go | 17 +++++++++++++++++ pkg/helper/node.go | 17 +++++++++++++++++ pkg/nmpolicy/generate.go | 17 +++++++++++++++++ pkg/nmpolicy/generate_test.go | 17 +++++++++++++++++ pkg/nmpolicy/nmpolicy_suite_test.go | 17 +++++++++++++++++ pkg/nmstatectl/nmstatectl.go | 17 +++++++++++++++++ pkg/nmstatectl/unavailable_link_workaround.go | 17 +++++++++++++++++ pkg/node/node_suite_test.go | 17 +++++++++++++++++ pkg/node/nodes.go | 17 +++++++++++++++++ pkg/node/nodes_test.go | 17 +++++++++++++++++ pkg/node/refresh.go | 17 +++++++++++++++++ pkg/policyconditions/conditions.go | 17 +++++++++++++++++ pkg/policyconditions/conditions_test.go | 17 +++++++++++++++++ .../policyconditions_suite_test.go | 17 +++++++++++++++++ pkg/probe/probes.go | 17 +++++++++++++++++ pkg/render/yaml.go | 17 +++++++++++++++++ pkg/selectors/labels.go | 17 +++++++++++++++++ pkg/selectors/labels_test.go | 17 +++++++++++++++++ pkg/selectors/selectors.go | 17 +++++++++++++++++ pkg/selectors/selectors_suite_test.go | 17 +++++++++++++++++ pkg/state/filter.go | 17 +++++++++++++++++ pkg/state/filter_test.go | 17 +++++++++++++++++ pkg/state/state_suite_test.go | 17 +++++++++++++++++ pkg/state/type.go | 17 +++++++++++++++++ .../add_nodenetworkconfigurationpolicy.go | 17 +++++++++++++++++ .../conditions.go | 17 +++++++++++++++++ .../conditions_test.go | 17 +++++++++++++++++ .../nodenetworkconfigurationpolicy/handler.go | 17 +++++++++++++++++ ...nodenetworkconfigurationpolicy_suite_test.go | 17 +++++++++++++++++ .../nodenetworkconfigurationpolicy/server.go | 17 +++++++++++++++++ .../nodenetworkconfigurationpolicy/timestamp.go | 17 +++++++++++++++++ .../timestamp_test.go | 17 +++++++++++++++++ .../validation.go | 17 +++++++++++++++++ .../validation_test.go | 17 +++++++++++++++++ pkg/webhook/webhook.go | 17 +++++++++++++++++ test/cmd/kubectl.go | 17 +++++++++++++++++ test/cmd/run.go | 17 +++++++++++++++++ test/e2e/daemonset/daemonset.go | 17 +++++++++++++++++ test/e2e/daemonset/matchers.go | 17 +++++++++++++++++ test/e2e/deployment/deployment.go | 17 +++++++++++++++++ test/e2e/deployment/matchers.go | 17 +++++++++++++++++ .../handler/bonding_default_interface_test.go | 17 +++++++++++++++++ test/e2e/handler/conditions.go | 17 +++++++++++++++++ .../e2e/handler/default_bridged_network_test.go | 17 +++++++++++++++++ ...efault_bridged_network_with_nmpolicy_test.go | 17 +++++++++++++++++ .../handler/default_ovs_bridged_network_test.go | 17 +++++++++++++++++ test/e2e/handler/dns_test.go | 17 +++++++++++++++++ .../handler/error_messages_formatting_test.go | 17 +++++++++++++++++ test/e2e/handler/examples_test.go | 17 +++++++++++++++++ test/e2e/handler/linuxbridge/gjson.go | 17 +++++++++++++++++ test/e2e/handler/main_test.go | 17 +++++++++++++++++ .../multiple_policies_for_same_node_test.go | 17 +++++++++++++++++ test/e2e/handler/nnce_conditions_test.go | 17 +++++++++++++++++ test/e2e/handler/nnce_desiredstate_test.go | 17 +++++++++++++++++ test/e2e/handler/nncp_cleanup_test.go | 17 +++++++++++++++++ test/e2e/handler/nncp_parallel_test.go | 17 +++++++++++++++++ test/e2e/handler/nns_dependencies_test.go | 17 +++++++++++++++++ test/e2e/handler/nns_filter_test.go | 17 +++++++++++++++++ test/e2e/handler/nns_update_timestamp_test.go | 17 +++++++++++++++++ test/e2e/handler/node_selector_test.go | 17 +++++++++++++++++ test/e2e/handler/nodes_test.go | 17 +++++++++++++++++ test/e2e/handler/rollback_test.go | 17 +++++++++++++++++ test/e2e/handler/simple_bridge_and_bond_test.go | 17 +++++++++++++++++ .../handler/simple_ovs_bridge_and_bond_test.go | 17 +++++++++++++++++ test/e2e/handler/simple_ovs_bridge_test.go | 17 +++++++++++++++++ test/e2e/handler/simple_vlan_and_ip_test.go | 17 +++++++++++++++++ test/e2e/handler/states.go | 17 +++++++++++++++++ test/e2e/handler/static_addr_and_route_test.go | 17 +++++++++++++++++ test/e2e/handler/upgrade_test.go | 17 +++++++++++++++++ test/e2e/handler/user_guide_test.go | 17 +++++++++++++++++ test/e2e/handler/utils.go | 17 +++++++++++++++++ test/e2e/handler/webhook_test.go | 17 +++++++++++++++++ test/e2e/operator/main_test.go | 17 +++++++++++++++++ test/e2e/operator/nmstate_install_test.go | 17 +++++++++++++++++ test/env/env.go | 17 +++++++++++++++++ test/environment/environment.go | 17 +++++++++++++++++ test/reporter/reporter.go | 17 +++++++++++++++++ test/reporter/writers.go | 17 +++++++++++++++++ test/runner/node.go | 17 +++++++++++++++++ test/runner/pod.go | 17 +++++++++++++++++ 105 files changed, 1736 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index b2b1bf5c1d..3b505ede07 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -65,7 +65,7 @@ linters: #- gocritic #- gocyclo - gofmt - #- goheader + - goheader #- goimports #- gomnd - goprintffuncname diff --git a/cmd/operator/main.go b/cmd/operator/main.go index 191e86c54e..5dc872d6f2 100644 --- a/cmd/operator/main.go +++ b/cmd/operator/main.go @@ -1,6 +1,7 @@ /* Copyright The Kubernetes NMState Authors. + 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 diff --git a/controllers/handler/handler_suite_test.go b/controllers/handler/handler_suite_test.go index 656664b51e..99bad4e229 100644 --- a/controllers/handler/handler_suite_test.go +++ b/controllers/handler/handler_suite_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 controllers import ( diff --git a/controllers/handler/labels.go b/controllers/handler/labels.go index 19cfc811a6..b0bebbc112 100644 --- a/controllers/handler/labels.go +++ b/controllers/handler/labels.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 controllers const ( diff --git a/controllers/handler/node_controller_test.go b/controllers/handler/node_controller_test.go index a40b60d43b..49d253bd01 100644 --- a/controllers/handler/node_controller_test.go +++ b/controllers/handler/node_controller_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 controllers import ( diff --git a/controllers/handler/nodenetworkconfigurationenactment_controller_test.go b/controllers/handler/nodenetworkconfigurationenactment_controller_test.go index 829511dfe1..e0792c31ae 100644 --- a/controllers/handler/nodenetworkconfigurationenactment_controller_test.go +++ b/controllers/handler/nodenetworkconfigurationenactment_controller_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 controllers import ( diff --git a/controllers/handler/nodenetworkconfigurationpolicy_controller_test.go b/controllers/handler/nodenetworkconfigurationpolicy_controller_test.go index b66aa7f1e8..48a792e2c0 100644 --- a/controllers/handler/nodenetworkconfigurationpolicy_controller_test.go +++ b/controllers/handler/nodenetworkconfigurationpolicy_controller_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 controllers import ( diff --git a/controllers/operator/nmstate_controller_test.go b/controllers/operator/nmstate_controller_test.go index 750fd6e3ac..fca4864be0 100644 --- a/controllers/operator/nmstate_controller_test.go +++ b/controllers/operator/nmstate_controller_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 controllers import ( diff --git a/controllers/operator/operator_suite_test.go b/controllers/operator/operator_suite_test.go index e2de49524f..62fadfa68e 100644 --- a/controllers/operator/operator_suite_test.go +++ b/controllers/operator/operator_suite_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 controllers import ( diff --git a/hack/header.tpl b/hack/header.tpl index ade96eec20..b1ec6f6f33 100644 --- a/hack/header.tpl +++ b/hack/header.tpl @@ -1,6 +1,5 @@ Copyright The Kubernetes NMState Authors. - 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 diff --git a/hack/render-manifests.go b/hack/render-manifests.go index 748142ff5b..675d62ca97 100644 --- a/hack/render-manifests.go +++ b/hack/render-manifests.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 main import ( diff --git a/pkg/enactment/enactment.go b/pkg/enactment/enactment.go index c09c47e9d6..645662606a 100644 --- a/pkg/enactment/enactment.go +++ b/pkg/enactment/enactment.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 enactment import ( diff --git a/pkg/enactment/refresh.go b/pkg/enactment/refresh.go index a92fcc38a8..3adf628eda 100644 --- a/pkg/enactment/refresh.go +++ b/pkg/enactment/refresh.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 enactment import ( diff --git a/pkg/enactmentstatus/conditions/conditions.go b/pkg/enactmentstatus/conditions/conditions.go index bf32cdec8f..44687acc86 100644 --- a/pkg/enactmentstatus/conditions/conditions.go +++ b/pkg/enactmentstatus/conditions/conditions.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 conditions import ( diff --git a/pkg/enactmentstatus/conditions/conditions_suite_test.go b/pkg/enactmentstatus/conditions/conditions_suite_test.go index 3b983cc067..2b3eedcb25 100644 --- a/pkg/enactmentstatus/conditions/conditions_suite_test.go +++ b/pkg/enactmentstatus/conditions/conditions_suite_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 conditions import ( diff --git a/pkg/enactmentstatus/conditions/counter.go b/pkg/enactmentstatus/conditions/counter.go index 9edeb05516..687db14716 100644 --- a/pkg/enactmentstatus/conditions/counter.go +++ b/pkg/enactmentstatus/conditions/counter.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 conditions import ( diff --git a/pkg/enactmentstatus/conditions/counter_test.go b/pkg/enactmentstatus/conditions/counter_test.go index 2914517f6f..2970c1ae2b 100644 --- a/pkg/enactmentstatus/conditions/counter_test.go +++ b/pkg/enactmentstatus/conditions/counter_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 conditions import ( diff --git a/pkg/enactmentstatus/enactmentstatus_suite_test.go b/pkg/enactmentstatus/enactmentstatus_suite_test.go index 98188c0abe..f840919f98 100644 --- a/pkg/enactmentstatus/enactmentstatus_suite_test.go +++ b/pkg/enactmentstatus/enactmentstatus_suite_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 enactmentstatus import ( diff --git a/pkg/enactmentstatus/message_test.go b/pkg/enactmentstatus/message_test.go index b747302bc6..6882e7f637 100644 --- a/pkg/enactmentstatus/message_test.go +++ b/pkg/enactmentstatus/message_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 enactmentstatus import ( diff --git a/pkg/enactmentstatus/status.go b/pkg/enactmentstatus/status.go index 12d854cfec..8f522ef783 100644 --- a/pkg/enactmentstatus/status.go +++ b/pkg/enactmentstatus/status.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 enactmentstatus import ( diff --git a/pkg/environment/environment.go b/pkg/environment/environment.go index 4d0f05c80a..d32c9dba3e 100644 --- a/pkg/environment/environment.go +++ b/pkg/environment/environment.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 environment import ( diff --git a/pkg/file/touch.go b/pkg/file/touch.go index 485df2a11e..f8a2433489 100644 --- a/pkg/file/touch.go +++ b/pkg/file/touch.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 file import ( diff --git a/pkg/helper/bridges.go b/pkg/helper/bridges.go index 43b83e041f..474ff7a067 100644 --- a/pkg/helper/bridges.go +++ b/pkg/helper/bridges.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 helper import ( diff --git a/pkg/helper/bridges_test.go b/pkg/helper/bridges_test.go index 53fb3351e5..9d0db4efd7 100644 --- a/pkg/helper/bridges_test.go +++ b/pkg/helper/bridges_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 helper import ( diff --git a/pkg/helper/client.go b/pkg/helper/client.go index 060f176c8c..75720c00a8 100644 --- a/pkg/helper/client.go +++ b/pkg/helper/client.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 helper import ( diff --git a/pkg/helper/helper_suite_test.go b/pkg/helper/helper_suite_test.go index fe51331785..ec410ae992 100644 --- a/pkg/helper/helper_suite_test.go +++ b/pkg/helper/helper_suite_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 helper import ( diff --git a/pkg/helper/node.go b/pkg/helper/node.go index e0e0528368..eaeb607f55 100644 --- a/pkg/helper/node.go +++ b/pkg/helper/node.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 helper import ( diff --git a/pkg/nmpolicy/generate.go b/pkg/nmpolicy/generate.go index 0c5874ae59..ca118af5a8 100644 --- a/pkg/nmpolicy/generate.go +++ b/pkg/nmpolicy/generate.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 nmpolicy import ( diff --git a/pkg/nmpolicy/generate_test.go b/pkg/nmpolicy/generate_test.go index b24a96e9b1..1b8ae0b7d4 100644 --- a/pkg/nmpolicy/generate_test.go +++ b/pkg/nmpolicy/generate_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 nmpolicy import ( diff --git a/pkg/nmpolicy/nmpolicy_suite_test.go b/pkg/nmpolicy/nmpolicy_suite_test.go index 59f2e795a5..3d8643188d 100644 --- a/pkg/nmpolicy/nmpolicy_suite_test.go +++ b/pkg/nmpolicy/nmpolicy_suite_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 nmpolicy import ( diff --git a/pkg/nmstatectl/nmstatectl.go b/pkg/nmstatectl/nmstatectl.go index 5d35a8df6a..7291d1fc93 100644 --- a/pkg/nmstatectl/nmstatectl.go +++ b/pkg/nmstatectl/nmstatectl.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 nmstatectl import ( diff --git a/pkg/nmstatectl/unavailable_link_workaround.go b/pkg/nmstatectl/unavailable_link_workaround.go index eab853386a..3809f3d87b 100644 --- a/pkg/nmstatectl/unavailable_link_workaround.go +++ b/pkg/nmstatectl/unavailable_link_workaround.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 nmstatectl import ( diff --git a/pkg/node/node_suite_test.go b/pkg/node/node_suite_test.go index 81e36af277..4071d34fd9 100644 --- a/pkg/node/node_suite_test.go +++ b/pkg/node/node_suite_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 node import ( diff --git a/pkg/node/nodes.go b/pkg/node/nodes.go index 2cf7c1613d..a56ef9bdf9 100644 --- a/pkg/node/nodes.go +++ b/pkg/node/nodes.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 node import ( diff --git a/pkg/node/nodes_test.go b/pkg/node/nodes_test.go index be99fb8c95..128c98fb68 100644 --- a/pkg/node/nodes_test.go +++ b/pkg/node/nodes_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 node import ( diff --git a/pkg/node/refresh.go b/pkg/node/refresh.go index 604440ab3d..fae1d4cbd5 100644 --- a/pkg/node/refresh.go +++ b/pkg/node/refresh.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 node import ( diff --git a/pkg/policyconditions/conditions.go b/pkg/policyconditions/conditions.go index befe6d95d9..af164e6f0f 100644 --- a/pkg/policyconditions/conditions.go +++ b/pkg/policyconditions/conditions.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 policyconditions import ( diff --git a/pkg/policyconditions/conditions_test.go b/pkg/policyconditions/conditions_test.go index 8f7396efa5..18a3fb7dc4 100644 --- a/pkg/policyconditions/conditions_test.go +++ b/pkg/policyconditions/conditions_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 policyconditions import ( diff --git a/pkg/policyconditions/policyconditions_suite_test.go b/pkg/policyconditions/policyconditions_suite_test.go index 19618f3fbd..86359b98ab 100644 --- a/pkg/policyconditions/policyconditions_suite_test.go +++ b/pkg/policyconditions/policyconditions_suite_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 policyconditions import ( diff --git a/pkg/probe/probes.go b/pkg/probe/probes.go index 77376e0f03..922eb1c514 100644 --- a/pkg/probe/probes.go +++ b/pkg/probe/probes.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 probe import ( diff --git a/pkg/render/yaml.go b/pkg/render/yaml.go index 4abe71e748..e4e0b49e95 100644 --- a/pkg/render/yaml.go +++ b/pkg/render/yaml.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 render import ( diff --git a/pkg/selectors/labels.go b/pkg/selectors/labels.go index 942638e26e..a0ecca4190 100644 --- a/pkg/selectors/labels.go +++ b/pkg/selectors/labels.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 selectors import ( diff --git a/pkg/selectors/labels_test.go b/pkg/selectors/labels_test.go index 27b016c1c4..879597470c 100644 --- a/pkg/selectors/labels_test.go +++ b/pkg/selectors/labels_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 selectors import ( diff --git a/pkg/selectors/selectors.go b/pkg/selectors/selectors.go index 075e6b48bf..45cf2ccbe7 100644 --- a/pkg/selectors/selectors.go +++ b/pkg/selectors/selectors.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 selectors import ( diff --git a/pkg/selectors/selectors_suite_test.go b/pkg/selectors/selectors_suite_test.go index 0c03249868..78078632dc 100644 --- a/pkg/selectors/selectors_suite_test.go +++ b/pkg/selectors/selectors_suite_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 selectors import ( diff --git a/pkg/state/filter.go b/pkg/state/filter.go index 0554392781..bb471eeb64 100644 --- a/pkg/state/filter.go +++ b/pkg/state/filter.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 state import ( diff --git a/pkg/state/filter_test.go b/pkg/state/filter_test.go index af7ddd29d6..8fc294e7d4 100644 --- a/pkg/state/filter_test.go +++ b/pkg/state/filter_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 state import ( diff --git a/pkg/state/state_suite_test.go b/pkg/state/state_suite_test.go index 86dc41154d..bd9857c7d5 100644 --- a/pkg/state/state_suite_test.go +++ b/pkg/state/state_suite_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 state import ( diff --git a/pkg/state/type.go b/pkg/state/type.go index 19f9bf7c60..2ece551662 100644 --- a/pkg/state/type.go +++ b/pkg/state/type.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 state import ( diff --git a/pkg/webhook/add_nodenetworkconfigurationpolicy.go b/pkg/webhook/add_nodenetworkconfigurationpolicy.go index 27d2a5fc34..2c51ac6b68 100644 --- a/pkg/webhook/add_nodenetworkconfigurationpolicy.go +++ b/pkg/webhook/add_nodenetworkconfigurationpolicy.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 webhook import ( diff --git a/pkg/webhook/nodenetworkconfigurationpolicy/conditions.go b/pkg/webhook/nodenetworkconfigurationpolicy/conditions.go index f3b22780a6..7eb3868a9e 100644 --- a/pkg/webhook/nodenetworkconfigurationpolicy/conditions.go +++ b/pkg/webhook/nodenetworkconfigurationpolicy/conditions.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 nodenetworkconfigurationpolicy import ( diff --git a/pkg/webhook/nodenetworkconfigurationpolicy/conditions_test.go b/pkg/webhook/nodenetworkconfigurationpolicy/conditions_test.go index 4d47f4e362..495276accc 100644 --- a/pkg/webhook/nodenetworkconfigurationpolicy/conditions_test.go +++ b/pkg/webhook/nodenetworkconfigurationpolicy/conditions_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 nodenetworkconfigurationpolicy import ( diff --git a/pkg/webhook/nodenetworkconfigurationpolicy/handler.go b/pkg/webhook/nodenetworkconfigurationpolicy/handler.go index dea04c5897..66d4f04d51 100644 --- a/pkg/webhook/nodenetworkconfigurationpolicy/handler.go +++ b/pkg/webhook/nodenetworkconfigurationpolicy/handler.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 nodenetworkconfigurationpolicy import ( diff --git a/pkg/webhook/nodenetworkconfigurationpolicy/nodenetworkconfigurationpolicy_suite_test.go b/pkg/webhook/nodenetworkconfigurationpolicy/nodenetworkconfigurationpolicy_suite_test.go index aa15a8ca96..79dd965f21 100644 --- a/pkg/webhook/nodenetworkconfigurationpolicy/nodenetworkconfigurationpolicy_suite_test.go +++ b/pkg/webhook/nodenetworkconfigurationpolicy/nodenetworkconfigurationpolicy_suite_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 nodenetworkconfigurationpolicy import ( diff --git a/pkg/webhook/nodenetworkconfigurationpolicy/server.go b/pkg/webhook/nodenetworkconfigurationpolicy/server.go index 1985112534..4a2094119c 100644 --- a/pkg/webhook/nodenetworkconfigurationpolicy/server.go +++ b/pkg/webhook/nodenetworkconfigurationpolicy/server.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 nodenetworkconfigurationpolicy import ( diff --git a/pkg/webhook/nodenetworkconfigurationpolicy/timestamp.go b/pkg/webhook/nodenetworkconfigurationpolicy/timestamp.go index 3219d86343..117acccdda 100644 --- a/pkg/webhook/nodenetworkconfigurationpolicy/timestamp.go +++ b/pkg/webhook/nodenetworkconfigurationpolicy/timestamp.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 nodenetworkconfigurationpolicy import ( diff --git a/pkg/webhook/nodenetworkconfigurationpolicy/timestamp_test.go b/pkg/webhook/nodenetworkconfigurationpolicy/timestamp_test.go index f0b5ebcabb..329ea72ed3 100644 --- a/pkg/webhook/nodenetworkconfigurationpolicy/timestamp_test.go +++ b/pkg/webhook/nodenetworkconfigurationpolicy/timestamp_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 nodenetworkconfigurationpolicy import ( diff --git a/pkg/webhook/nodenetworkconfigurationpolicy/validation.go b/pkg/webhook/nodenetworkconfigurationpolicy/validation.go index 9b41f801c2..3bb01f865e 100644 --- a/pkg/webhook/nodenetworkconfigurationpolicy/validation.go +++ b/pkg/webhook/nodenetworkconfigurationpolicy/validation.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 nodenetworkconfigurationpolicy import ( diff --git a/pkg/webhook/nodenetworkconfigurationpolicy/validation_test.go b/pkg/webhook/nodenetworkconfigurationpolicy/validation_test.go index be9ab451ca..b9177729c6 100644 --- a/pkg/webhook/nodenetworkconfigurationpolicy/validation_test.go +++ b/pkg/webhook/nodenetworkconfigurationpolicy/validation_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 nodenetworkconfigurationpolicy import ( diff --git a/pkg/webhook/webhook.go b/pkg/webhook/webhook.go index 2630b11b94..102724a9ec 100644 --- a/pkg/webhook/webhook.go +++ b/pkg/webhook/webhook.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 webhook import ( diff --git a/test/cmd/kubectl.go b/test/cmd/kubectl.go index 0605857f70..2b0956ef62 100644 --- a/test/cmd/kubectl.go +++ b/test/cmd/kubectl.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 cmd import ( diff --git a/test/cmd/run.go b/test/cmd/run.go index 071e43758b..9961adc377 100644 --- a/test/cmd/run.go +++ b/test/cmd/run.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 cmd import ( diff --git a/test/e2e/daemonset/daemonset.go b/test/e2e/daemonset/daemonset.go index eb7ce77378..3d3515a2d5 100644 --- a/test/e2e/daemonset/daemonset.go +++ b/test/e2e/daemonset/daemonset.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 daemonset import ( diff --git a/test/e2e/daemonset/matchers.go b/test/e2e/daemonset/matchers.go index 927b6929bf..e57015c5f8 100644 --- a/test/e2e/daemonset/matchers.go +++ b/test/e2e/daemonset/matchers.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 daemonset import ( diff --git a/test/e2e/deployment/deployment.go b/test/e2e/deployment/deployment.go index 50737180e8..1af5ed251c 100644 --- a/test/e2e/deployment/deployment.go +++ b/test/e2e/deployment/deployment.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 deployment import ( diff --git a/test/e2e/deployment/matchers.go b/test/e2e/deployment/matchers.go index ff843e87b3..28e7c2db86 100644 --- a/test/e2e/deployment/matchers.go +++ b/test/e2e/deployment/matchers.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 deployment import ( diff --git a/test/e2e/handler/bonding_default_interface_test.go b/test/e2e/handler/bonding_default_interface_test.go index 32348adbf3..6d3d5b5399 100644 --- a/test/e2e/handler/bonding_default_interface_test.go +++ b/test/e2e/handler/bonding_default_interface_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/conditions.go b/test/e2e/handler/conditions.go index 8657fa1434..2cc41e779a 100644 --- a/test/e2e/handler/conditions.go +++ b/test/e2e/handler/conditions.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/default_bridged_network_test.go b/test/e2e/handler/default_bridged_network_test.go index e1b751c5bf..30d8f2d5a2 100644 --- a/test/e2e/handler/default_bridged_network_test.go +++ b/test/e2e/handler/default_bridged_network_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/default_bridged_network_with_nmpolicy_test.go b/test/e2e/handler/default_bridged_network_with_nmpolicy_test.go index 028b4a80d6..bcf10870e1 100644 --- a/test/e2e/handler/default_bridged_network_with_nmpolicy_test.go +++ b/test/e2e/handler/default_bridged_network_with_nmpolicy_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/default_ovs_bridged_network_test.go b/test/e2e/handler/default_ovs_bridged_network_test.go index 887ea164c8..1de882fd9b 100644 --- a/test/e2e/handler/default_ovs_bridged_network_test.go +++ b/test/e2e/handler/default_ovs_bridged_network_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/dns_test.go b/test/e2e/handler/dns_test.go index 9fc6a80691..b3959d74f9 100644 --- a/test/e2e/handler/dns_test.go +++ b/test/e2e/handler/dns_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/error_messages_formatting_test.go b/test/e2e/handler/error_messages_formatting_test.go index 98529dd4e3..40da20fcec 100644 --- a/test/e2e/handler/error_messages_formatting_test.go +++ b/test/e2e/handler/error_messages_formatting_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/examples_test.go b/test/e2e/handler/examples_test.go index 68411f3e4a..c23e1fd415 100644 --- a/test/e2e/handler/examples_test.go +++ b/test/e2e/handler/examples_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/linuxbridge/gjson.go b/test/e2e/handler/linuxbridge/gjson.go index 310e99e7af..52c1e63f7f 100644 --- a/test/e2e/handler/linuxbridge/gjson.go +++ b/test/e2e/handler/linuxbridge/gjson.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 linuxbridge import ( diff --git a/test/e2e/handler/main_test.go b/test/e2e/handler/main_test.go index bbb6590322..677b6e9c39 100644 --- a/test/e2e/handler/main_test.go +++ b/test/e2e/handler/main_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/multiple_policies_for_same_node_test.go b/test/e2e/handler/multiple_policies_for_same_node_test.go index b4f16e670e..8997701cf1 100644 --- a/test/e2e/handler/multiple_policies_for_same_node_test.go +++ b/test/e2e/handler/multiple_policies_for_same_node_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/nnce_conditions_test.go b/test/e2e/handler/nnce_conditions_test.go index 306b9b6288..3e7f96deb5 100644 --- a/test/e2e/handler/nnce_conditions_test.go +++ b/test/e2e/handler/nnce_conditions_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/nnce_desiredstate_test.go b/test/e2e/handler/nnce_desiredstate_test.go index 6d13607125..7a9840abbd 100644 --- a/test/e2e/handler/nnce_desiredstate_test.go +++ b/test/e2e/handler/nnce_desiredstate_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/nncp_cleanup_test.go b/test/e2e/handler/nncp_cleanup_test.go index c1199410fb..14cb8529ec 100644 --- a/test/e2e/handler/nncp_cleanup_test.go +++ b/test/e2e/handler/nncp_cleanup_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/nncp_parallel_test.go b/test/e2e/handler/nncp_parallel_test.go index a72b3598c8..5caee3e0c3 100644 --- a/test/e2e/handler/nncp_parallel_test.go +++ b/test/e2e/handler/nncp_parallel_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/nns_dependencies_test.go b/test/e2e/handler/nns_dependencies_test.go index 6ba690f714..5aa5c67821 100644 --- a/test/e2e/handler/nns_dependencies_test.go +++ b/test/e2e/handler/nns_dependencies_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/nns_filter_test.go b/test/e2e/handler/nns_filter_test.go index 7616a1e2e8..8a58164ac5 100644 --- a/test/e2e/handler/nns_filter_test.go +++ b/test/e2e/handler/nns_filter_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/nns_update_timestamp_test.go b/test/e2e/handler/nns_update_timestamp_test.go index 19529223c6..43571f8ea8 100644 --- a/test/e2e/handler/nns_update_timestamp_test.go +++ b/test/e2e/handler/nns_update_timestamp_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/node_selector_test.go b/test/e2e/handler/node_selector_test.go index feda55b1fc..33a1fb2b7e 100644 --- a/test/e2e/handler/node_selector_test.go +++ b/test/e2e/handler/node_selector_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/nodes_test.go b/test/e2e/handler/nodes_test.go index 8e864bf428..cd99893610 100644 --- a/test/e2e/handler/nodes_test.go +++ b/test/e2e/handler/nodes_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/rollback_test.go b/test/e2e/handler/rollback_test.go index d72d1c4e80..02f6d77b90 100644 --- a/test/e2e/handler/rollback_test.go +++ b/test/e2e/handler/rollback_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/simple_bridge_and_bond_test.go b/test/e2e/handler/simple_bridge_and_bond_test.go index 0f7c85c22e..8af2592a5c 100644 --- a/test/e2e/handler/simple_bridge_and_bond_test.go +++ b/test/e2e/handler/simple_bridge_and_bond_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/simple_ovs_bridge_and_bond_test.go b/test/e2e/handler/simple_ovs_bridge_and_bond_test.go index f7fa7dd483..67a82b1c72 100644 --- a/test/e2e/handler/simple_ovs_bridge_and_bond_test.go +++ b/test/e2e/handler/simple_ovs_bridge_and_bond_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/simple_ovs_bridge_test.go b/test/e2e/handler/simple_ovs_bridge_test.go index c54e039ea1..68d2341a78 100644 --- a/test/e2e/handler/simple_ovs_bridge_test.go +++ b/test/e2e/handler/simple_ovs_bridge_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/simple_vlan_and_ip_test.go b/test/e2e/handler/simple_vlan_and_ip_test.go index 419ecf2f79..266aa9ce6f 100644 --- a/test/e2e/handler/simple_vlan_and_ip_test.go +++ b/test/e2e/handler/simple_vlan_and_ip_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/states.go b/test/e2e/handler/states.go index ee1eb01b2b..eb0549a68c 100644 --- a/test/e2e/handler/states.go +++ b/test/e2e/handler/states.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/static_addr_and_route_test.go b/test/e2e/handler/static_addr_and_route_test.go index 1934b5267d..6c2730f31c 100644 --- a/test/e2e/handler/static_addr_and_route_test.go +++ b/test/e2e/handler/static_addr_and_route_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/upgrade_test.go b/test/e2e/handler/upgrade_test.go index a4d0a54a9e..552e72c8a8 100644 --- a/test/e2e/handler/upgrade_test.go +++ b/test/e2e/handler/upgrade_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/user_guide_test.go b/test/e2e/handler/user_guide_test.go index 8c361991e0..cff80215bc 100644 --- a/test/e2e/handler/user_guide_test.go +++ b/test/e2e/handler/user_guide_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 module is meant to cover all the demos as we show them. To make it as close // to the reality as possible, we use only kubectl direcly package handler diff --git a/test/e2e/handler/utils.go b/test/e2e/handler/utils.go index bd18a0392e..96c16adfac 100644 --- a/test/e2e/handler/utils.go +++ b/test/e2e/handler/utils.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/handler/webhook_test.go b/test/e2e/handler/webhook_test.go index 281b303f84..b3614db4d9 100644 --- a/test/e2e/handler/webhook_test.go +++ b/test/e2e/handler/webhook_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 handler import ( diff --git a/test/e2e/operator/main_test.go b/test/e2e/operator/main_test.go index 8e02c204b2..fd4ac7d7d5 100644 --- a/test/e2e/operator/main_test.go +++ b/test/e2e/operator/main_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 operator import ( diff --git a/test/e2e/operator/nmstate_install_test.go b/test/e2e/operator/nmstate_install_test.go index 066ee8a3f5..f2a78812c2 100644 --- a/test/e2e/operator/nmstate_install_test.go +++ b/test/e2e/operator/nmstate_install_test.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 operator import ( diff --git a/test/env/env.go b/test/env/env.go index a72a6f1160..64f48344c2 100644 --- a/test/env/env.go +++ b/test/env/env.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 env import ( diff --git a/test/environment/environment.go b/test/environment/environment.go index 3537a54cb2..efb59edb36 100644 --- a/test/environment/environment.go +++ b/test/environment/environment.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 environment import ( diff --git a/test/reporter/reporter.go b/test/reporter/reporter.go index 76e55886e1..be8c84fb67 100644 --- a/test/reporter/reporter.go +++ b/test/reporter/reporter.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 reporter import ( diff --git a/test/reporter/writers.go b/test/reporter/writers.go index b84ad8a78a..4d604f781a 100644 --- a/test/reporter/writers.go +++ b/test/reporter/writers.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 reporter import ( diff --git a/test/runner/node.go b/test/runner/node.go index 4c0a6aec1f..2e16ff6ee8 100644 --- a/test/runner/node.go +++ b/test/runner/node.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 runner import ( diff --git a/test/runner/pod.go b/test/runner/pod.go index 13469ef23b..db6638f3cd 100644 --- a/test/runner/pod.go +++ b/test/runner/pod.go @@ -1,3 +1,20 @@ +/* +Copyright The Kubernetes NMState Authors. + + +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 runner import (