From 588f02b50f4564cc521f640e73937300921182ff Mon Sep 17 00:00:00 2001 From: Roman Dodin Date: Fri, 19 Aug 2022 11:23:16 +0200 Subject: [PATCH] added licensing information --- .github/workflows/cicd.yml | 4 ++++ .github/workflows/linters/.golangci.yml | 4 ++++ Dockerfile | 4 ++++ api/clientset/v1alpha1/srlinux.go | 4 ++++ api/clientset/v1alpha1/srlinux_test.go | 4 ++++ api/types/v1alpha1/groupversion_info.go | 18 +++--------------- api/types/v1alpha1/srl_version.go | 4 ++++ api/types/v1alpha1/srl_version_test.go | 4 ++++ api/types/v1alpha1/srlinux_types.go | 18 +++--------------- api/types/v1alpha1/srlinux_types_test.go | 4 ++++ api/types/v1alpha1/types.go | 4 ++++ .../crd/bases/kne.srlinux.dev_srlinuxes.yaml | 4 ++++ config/crd/kustomization.yaml | 4 ++++ config/crd/kustomizeconfig.yaml | 4 ++++ .../crd/patches/cainjection_in_srlinuxes.yaml | 4 ++++ config/crd/patches/webhook_in_srlinuxes.yaml | 4 ++++ config/default/kustomization.yaml | 4 ++++ config/default/manager_auth_proxy_patch.yaml | 4 ++++ config/default/manager_config_patch.yaml | 4 ++++ config/manager/controller_manager_config.yaml | 4 ++++ config/manager/kustomization.yaml | 4 ++++ config/manager/manager.yaml | 4 ++++ config/namespace/kustomization.yml | 4 ++++ config/namespace/namespace.yml | 4 ++++ config/prometheus/kustomization.yaml | 4 ++++ config/prometheus/monitor.yaml | 4 ++++ config/rbac/auth_proxy_client_clusterrole.yaml | 4 ++++ config/rbac/auth_proxy_role.yaml | 4 ++++ config/rbac/auth_proxy_role_binding.yaml | 4 ++++ config/rbac/auth_proxy_service.yaml | 4 ++++ config/rbac/kustomization.yaml | 4 ++++ config/rbac/leader_election_role.yaml | 4 ++++ config/rbac/leader_election_role_binding.yaml | 4 ++++ config/rbac/role.yaml | 4 ++++ config/rbac/role_binding.yaml | 4 ++++ config/rbac/service_account.yaml | 4 ++++ config/rbac/srlinux_editor_role.yaml | 4 ++++ config/rbac/srlinux_viewer_role.yaml | 4 ++++ config/samples/kne_v1alpha1_srlinux.yaml | 4 ++++ controllers/cfgmap.go | 4 ++++ controllers/pod.go | 4 ++++ controllers/secret.go | 4 ++++ controllers/srlinux_controller.go | 18 +++--------------- controllers/suite_test.go | 18 +++--------------- main.go | 18 +++--------------- manifests/variants/kne-entrypoint.yml | 4 ++++ manifests/variants/kustomization.yml | 4 ++++ manifests/variants/srl_variants.yml | 4 ++++ manifests/variants/topomac.yml | 4 ++++ scripts/srlpod.yml | 4 ++++ scripts/test-topo.yml | 4 ++++ scripts/topomac.sh | 4 ++++ 52 files changed, 203 insertions(+), 75 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index b986278..f171405 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + --- name: CICD on: diff --git a/.github/workflows/linters/.golangci.yml b/.github/workflows/linters/.golangci.yml index 4d27067..9411be8 100644 --- a/.github/workflows/linters/.golangci.yml +++ b/.github/workflows/linters/.golangci.yml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + run: # running w/ 1.17 because we dont actually need/use 1.18 things and 1.18 breaks some linters. go: "1.17" diff --git a/Dockerfile b/Dockerfile index e019d08..96a0338 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # Build the manager binary FROM golang:1.17 as builder diff --git a/api/clientset/v1alpha1/srlinux.go b/api/clientset/v1alpha1/srlinux.go index 3b94050..28d5b89 100644 --- a/api/clientset/v1alpha1/srlinux.go +++ b/api/clientset/v1alpha1/srlinux.go @@ -1,3 +1,7 @@ +// Copyright 2022 Nokia +// Licensed under the BSD 3-Clause License. +// SPDX-License-Identifier: BSD-3-Clause + // Package v1alpha1 is an v1alpha version of a Clientset for SR Linux customer resource. package v1alpha1 diff --git a/api/clientset/v1alpha1/srlinux_test.go b/api/clientset/v1alpha1/srlinux_test.go index adfce38..34377ba 100644 --- a/api/clientset/v1alpha1/srlinux_test.go +++ b/api/clientset/v1alpha1/srlinux_test.go @@ -1,3 +1,7 @@ +// Copyright 2022 Nokia +// Licensed under the BSD 3-Clause License. +// SPDX-License-Identifier: BSD-3-Clause + package v1alpha1 import ( diff --git a/api/types/v1alpha1/groupversion_info.go b/api/types/v1alpha1/groupversion_info.go index 08e76d9..e2eeeaf 100644 --- a/api/types/v1alpha1/groupversion_info.go +++ b/api/types/v1alpha1/groupversion_info.go @@ -1,18 +1,6 @@ -/* -Copyright 2021. - -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. -*/ +// Copyright 2022 Nokia +// Licensed under the BSD 3-Clause License. +// SPDX-License-Identifier: BSD-3-Clause // Package v1alpha1 contains API Schema definitions for the kne v1alpha1 API group // +kubebuilder:object:generate=true diff --git a/api/types/v1alpha1/srl_version.go b/api/types/v1alpha1/srl_version.go index b766c18..dce2e32 100644 --- a/api/types/v1alpha1/srl_version.go +++ b/api/types/v1alpha1/srl_version.go @@ -1,3 +1,7 @@ +// Copyright 2022 Nokia +// Licensed under the BSD 3-Clause License. +// SPDX-License-Identifier: BSD-3-Clause + package v1alpha1 import ( diff --git a/api/types/v1alpha1/srl_version_test.go b/api/types/v1alpha1/srl_version_test.go index 92c76f2..071072e 100644 --- a/api/types/v1alpha1/srl_version_test.go +++ b/api/types/v1alpha1/srl_version_test.go @@ -1,3 +1,7 @@ +// Copyright 2022 Nokia +// Licensed under the BSD 3-Clause License. +// SPDX-License-Identifier: BSD-3-Clause + package v1alpha1 import ( diff --git a/api/types/v1alpha1/srlinux_types.go b/api/types/v1alpha1/srlinux_types.go index 70171b7..d2e1a01 100644 --- a/api/types/v1alpha1/srlinux_types.go +++ b/api/types/v1alpha1/srlinux_types.go @@ -1,18 +1,6 @@ -/* -Copyright 2021. - -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. -*/ +// Copyright 2022 Nokia +// Licensed under the BSD 3-Clause License. +// SPDX-License-Identifier: BSD-3-Clause package v1alpha1 diff --git a/api/types/v1alpha1/srlinux_types_test.go b/api/types/v1alpha1/srlinux_types_test.go index f57bd2b..b07c300 100644 --- a/api/types/v1alpha1/srlinux_types_test.go +++ b/api/types/v1alpha1/srlinux_types_test.go @@ -1,3 +1,7 @@ +// Copyright 2022 Nokia +// Licensed under the BSD 3-Clause License. +// SPDX-License-Identifier: BSD-3-Clause + package v1alpha1 import ( diff --git a/api/types/v1alpha1/types.go b/api/types/v1alpha1/types.go index 53d6779..0a0e8a2 100644 --- a/api/types/v1alpha1/types.go +++ b/api/types/v1alpha1/types.go @@ -1,3 +1,7 @@ +// Copyright 2022 Nokia +// Licensed under the BSD 3-Clause License. +// SPDX-License-Identifier: BSD-3-Clause + package v1alpha1 const ( diff --git a/config/crd/bases/kne.srlinux.dev_srlinuxes.yaml b/config/crd/bases/kne.srlinux.dev_srlinuxes.yaml index 3196ff2..44627e7 100644 --- a/config/crd/bases/kne.srlinux.dev_srlinuxes.yaml +++ b/config/crd/bases/kne.srlinux.dev_srlinuxes.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + --- apiVersion: apiextensions.k8s.io/v1 diff --git a/config/crd/kustomization.yaml b/config/crd/kustomization.yaml index ec67d49..925d91f 100644 --- a/config/crd/kustomization.yaml +++ b/config/crd/kustomization.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # This kustomization.yaml is not intended to be run by itself, # since it depends on service name and namespace that are out of this kustomize package. # It should be run by config/default diff --git a/config/crd/kustomizeconfig.yaml b/config/crd/kustomizeconfig.yaml index ec5c150..9b39b92 100644 --- a/config/crd/kustomizeconfig.yaml +++ b/config/crd/kustomizeconfig.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # This file is for teaching kustomize how to substitute name and namespace reference in CRD nameReference: - kind: Service diff --git a/config/crd/patches/cainjection_in_srlinuxes.yaml b/config/crd/patches/cainjection_in_srlinuxes.yaml index 07cbe06..c0f8549 100644 --- a/config/crd/patches/cainjection_in_srlinuxes.yaml +++ b/config/crd/patches/cainjection_in_srlinuxes.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/patches/webhook_in_srlinuxes.yaml b/config/crd/patches/webhook_in_srlinuxes.yaml index 75387af..345dc5c 100644 --- a/config/crd/patches/webhook_in_srlinuxes.yaml +++ b/config/crd/patches/webhook_in_srlinuxes.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml index d52abc7..852a946 100644 --- a/config/default/kustomization.yaml +++ b/config/default/kustomization.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # Adds namespace to all resources. namespace: srlinux-controller diff --git a/config/default/manager_auth_proxy_patch.yaml b/config/default/manager_auth_proxy_patch.yaml index a224be1..0533ebd 100644 --- a/config/default/manager_auth_proxy_patch.yaml +++ b/config/default/manager_auth_proxy_patch.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # This patch inject a sidecar container which is a HTTP proxy for the # controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews. apiVersion: apps/v1 diff --git a/config/default/manager_config_patch.yaml b/config/default/manager_config_patch.yaml index 6c40015..bb9117d 100644 --- a/config/default/manager_config_patch.yaml +++ b/config/default/manager_config_patch.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/config/manager/controller_manager_config.yaml b/config/manager/controller_manager_config.yaml index dd13b92..7006965 100644 --- a/config/manager/controller_manager_config.yaml +++ b/config/manager/controller_manager_config.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 kind: ControllerManagerConfig health: diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index 5161c05..22db866 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + resources: - manager.yaml diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 79adfe7..5c35205 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + apiVersion: v1 kind: Namespace metadata: diff --git a/config/namespace/kustomization.yml b/config/namespace/kustomization.yml index 6235606..c903614 100644 --- a/config/namespace/kustomization.yml +++ b/config/namespace/kustomization.yml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # this namespace resource is created separately to support # license secrets to be created with a namespace provisioned automatically # if srl controller is created first, then this namespace will be already created diff --git a/config/namespace/namespace.yml b/config/namespace/namespace.yml index 8b55c3c..9fa87b2 100644 --- a/config/namespace/namespace.yml +++ b/config/namespace/namespace.yml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + apiVersion: v1 kind: Namespace metadata: diff --git a/config/prometheus/kustomization.yaml b/config/prometheus/kustomization.yaml index ed13716..b7ee800 100644 --- a/config/prometheus/kustomization.yaml +++ b/config/prometheus/kustomization.yaml @@ -1,2 +1,6 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + resources: - monitor.yaml diff --git a/config/prometheus/monitor.yaml b/config/prometheus/monitor.yaml index d19136a..dc31804 100644 --- a/config/prometheus/monitor.yaml +++ b/config/prometheus/monitor.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # Prometheus Monitor Service (Metrics) apiVersion: monitoring.coreos.com/v1 diff --git a/config/rbac/auth_proxy_client_clusterrole.yaml b/config/rbac/auth_proxy_client_clusterrole.yaml index 51a75db..01305ba 100644 --- a/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/config/rbac/auth_proxy_client_clusterrole.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/config/rbac/auth_proxy_role.yaml b/config/rbac/auth_proxy_role.yaml index 80e1857..adf0fbd 100644 --- a/config/rbac/auth_proxy_role.yaml +++ b/config/rbac/auth_proxy_role.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/config/rbac/auth_proxy_role_binding.yaml b/config/rbac/auth_proxy_role_binding.yaml index ec7acc0..f869ea2 100644 --- a/config/rbac/auth_proxy_role_binding.yaml +++ b/config/rbac/auth_proxy_role_binding.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/config/rbac/auth_proxy_service.yaml b/config/rbac/auth_proxy_service.yaml index 6cf656b..f78df4f 100644 --- a/config/rbac/auth_proxy_service.yaml +++ b/config/rbac/auth_proxy_service.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + apiVersion: v1 kind: Service metadata: diff --git a/config/rbac/kustomization.yaml b/config/rbac/kustomization.yaml index 731832a..fe54b88 100644 --- a/config/rbac/kustomization.yaml +++ b/config/rbac/kustomization.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + resources: # All RBAC will be applied under this service account in # the deployment namespace. You may comment out this resource diff --git a/config/rbac/leader_election_role.yaml b/config/rbac/leader_election_role.yaml index 4190ec8..7797d0a 100644 --- a/config/rbac/leader_election_role.yaml +++ b/config/rbac/leader_election_role.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # permissions to do leader election. apiVersion: rbac.authorization.k8s.io/v1 kind: Role diff --git a/config/rbac/leader_election_role_binding.yaml b/config/rbac/leader_election_role_binding.yaml index 1d1321e..18ebdf7 100644 --- a/config/rbac/leader_election_role_binding.yaml +++ b/config/rbac/leader_election_role_binding.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 944349a..49f5131 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + --- apiVersion: rbac.authorization.k8s.io/v1 diff --git a/config/rbac/role_binding.yaml b/config/rbac/role_binding.yaml index 2070ede..fe4df27 100644 --- a/config/rbac/role_binding.yaml +++ b/config/rbac/role_binding.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/config/rbac/service_account.yaml b/config/rbac/service_account.yaml index 7cd6025..a5bcb8d 100644 --- a/config/rbac/service_account.yaml +++ b/config/rbac/service_account.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + apiVersion: v1 kind: ServiceAccount metadata: diff --git a/config/rbac/srlinux_editor_role.yaml b/config/rbac/srlinux_editor_role.yaml index 23166df..bd0e486 100644 --- a/config/rbac/srlinux_editor_role.yaml +++ b/config/rbac/srlinux_editor_role.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # permissions for end users to edit srlinuxes. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/srlinux_viewer_role.yaml b/config/rbac/srlinux_viewer_role.yaml index 46de172..705507f 100644 --- a/config/rbac/srlinux_viewer_role.yaml +++ b/config/rbac/srlinux_viewer_role.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # permissions for end users to view srlinuxes. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/samples/kne_v1alpha1_srlinux.yaml b/config/samples/kne_v1alpha1_srlinux.yaml index 590485c..bb6e205 100644 --- a/config/samples/kne_v1alpha1_srlinux.yaml +++ b/config/samples/kne_v1alpha1_srlinux.yaml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + apiVersion: kne.srlinux.dev/v1alpha1 kind: Srlinux metadata: diff --git a/controllers/cfgmap.go b/controllers/cfgmap.go index 9820717..9cfb61d 100644 --- a/controllers/cfgmap.go +++ b/controllers/cfgmap.go @@ -1,3 +1,7 @@ +// Copyright 2022 Nokia +// Licensed under the BSD 3-Clause License. +// SPDX-License-Identifier: BSD-3-Clause + package controllers import ( diff --git a/controllers/pod.go b/controllers/pod.go index 3a257df..7b61503 100644 --- a/controllers/pod.go +++ b/controllers/pod.go @@ -1,3 +1,7 @@ +// Copyright 2022 Nokia +// Licensed under the BSD 3-Clause License. +// SPDX-License-Identifier: BSD-3-Clause + package controllers import ( diff --git a/controllers/secret.go b/controllers/secret.go index e68fc15..3b39d7e 100644 --- a/controllers/secret.go +++ b/controllers/secret.go @@ -1,3 +1,7 @@ +// Copyright 2022 Nokia +// Licensed under the BSD 3-Clause License. +// SPDX-License-Identifier: BSD-3-Clause + package controllers import ( diff --git a/controllers/srlinux_controller.go b/controllers/srlinux_controller.go index 2d31f7e..3dfa4f6 100644 --- a/controllers/srlinux_controller.go +++ b/controllers/srlinux_controller.go @@ -1,18 +1,6 @@ -/* -Copyright 2021. - -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. -*/ +// Copyright 2022 Nokia +// Licensed under the BSD 3-Clause License. +// SPDX-License-Identifier: BSD-3-Clause // Package controllers contains srlinux k8s/kne controller code package controllers diff --git a/controllers/suite_test.go b/controllers/suite_test.go index a0cbd35..de7a9ff 100644 --- a/controllers/suite_test.go +++ b/controllers/suite_test.go @@ -1,18 +1,6 @@ -/* -Copyright 2021. - -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. -*/ +// Copyright 2022 Nokia +// Licensed under the BSD 3-Clause License. +// SPDX-License-Identifier: BSD-3-Clause package controllers_test diff --git a/main.go b/main.go index 2cf8b53..430714c 100644 --- a/main.go +++ b/main.go @@ -1,18 +1,6 @@ -/* -Copyright 2021. - -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. -*/ +// Copyright 2022 Nokia +// Licensed under the BSD 3-Clause License. +// SPDX-License-Identifier: BSD-3-Clause package main diff --git a/manifests/variants/kne-entrypoint.yml b/manifests/variants/kne-entrypoint.yml index 907cbd6..f29a187 100644 --- a/manifests/variants/kne-entrypoint.yml +++ b/manifests/variants/kne-entrypoint.yml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # this config maps contains an entrypoint script that ensures that we first call the # topomac script before executing the main entrypoint apiVersion: v1 diff --git a/manifests/variants/kustomization.yml b/manifests/variants/kustomization.yml index fc94ab0..c1cbcfe 100644 --- a/manifests/variants/kustomization.yml +++ b/manifests/variants/kustomization.yml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + resources: - srl_variants.yml - topomac.yml diff --git a/manifests/variants/srl_variants.yml b/manifests/variants/srl_variants.yml index 30a0f51..0b8e403 100644 --- a/manifests/variants/srl_variants.yml +++ b/manifests/variants/srl_variants.yml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + apiVersion: v1 kind: ConfigMap metadata: diff --git a/manifests/variants/topomac.yml b/manifests/variants/topomac.yml index c21f57e..4276e4c 100644 --- a/manifests/variants/topomac.yml +++ b/manifests/variants/topomac.yml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + apiVersion: v1 kind: ConfigMap metadata: diff --git a/scripts/srlpod.yml b/scripts/srlpod.yml index 351b5e5..dc58cb2 100644 --- a/scripts/srlpod.yml +++ b/scripts/srlpod.yml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + apiVersion: v1 kind: Pod metadata: diff --git a/scripts/test-topo.yml b/scripts/test-topo.yml index 63d3921..a1fe0ca 100644 --- a/scripts/test-topo.yml +++ b/scripts/test-topo.yml @@ -1,3 +1,7 @@ +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + chassis_configuration: "chassis_type": 64 "base_mac": 02:__RANDMAC__:00:00:00 diff --git a/scripts/topomac.sh b/scripts/topomac.sh index 2709fe5..1b5a01d 100644 --- a/scripts/topomac.sh +++ b/scripts/topomac.sh @@ -1,4 +1,8 @@ #!/bin/bash +# Copyright 2022 Nokia +# Licensed under the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # this script is used to generate random OUI for base mac entry of an SR Linux topology yaml file # template_path="/tmp/topo-template.yml"