diff --git a/Dockerfile b/Dockerfile index fa0ed5ddc338d32b50b93a54894dc2597db1178c..d1dd03933c92b0d98cf83d3f1e885f81dbd705ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + # Build the manager binary FROM golang:1.21 AS builder ARG TARGETOS diff --git a/Makefile b/Makefile index 43415683550fd0c2e68c434194eb156b50fa4645..ebd41f4845816523ba2c524f637f2ec0d571aad0 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,8 @@ CONTAINER_TOOL ?= sudo docker SHELL = /usr/bin/env bash -o pipefail .SHELLFLAGS = -ec +REPOSITORY=L2S-M + .PHONY: all all: build @@ -182,6 +184,22 @@ undeploy-dev: kustomize ## Undeploy validating and mutating webhooks from the K8 $(KUSTOMIZE) build config/dev | $(KUBECTL) delete --ignore-not-found=$(ignore-not-found) -f - +# Define file extensions for various formats +FILES := $(shell find . -type f \( -name "*.go" -o -name "*.json" -o -name "*.yaml" -o -name "*.yml" -o -name "*.md" \)) + +# Install the addlicense tool if not installed +.PHONY: install-tools +install-tools: + @go install github.com/google/addlicense@latest + +# Add license headers to the files +.PHONY: add-license +add-license: install-tools + @for file in $(FILES); do \ + addlicense -f ./hack/LICENSE.txt -l apache "$${file}"; \ + done + + ##@ Dependencies ## Location to install dependencies to @@ -222,6 +240,7 @@ golangci-lint: $(GOLANGCI_LINT) ## Download golangci-lint locally if necessary. $(GOLANGCI_LINT): $(LOCALBIN) $(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/cmd/golangci-lint,${GOLANGCI_LINT_VERSION}) + # go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist # $1 - target path with name of binary (ideally with version) # $2 - package url which can be installed @@ -235,3 +254,4 @@ GOBIN=$(LOCALBIN) go install $${package} ;\ mv "$$(echo "$(1)" | sed "s/-$(3)$$//")" $(1) ;\ } endef + diff --git a/api/v1/groupversion_info.go b/api/v1/groupversion_info.go index 117c5a890cc7a388bd6ce398dfe70260015d64d1..84e2a29aed43e1c2a36f6ece00a1b1ce379329ae 100644 --- a/api/v1/groupversion_info.go +++ b/api/v1/groupversion_info.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 v1 contains API Schema definitions for the l2sm v1 API group // +kubebuilder:object:generate=true diff --git a/api/v1/l2network_types.go b/api/v1/l2network_types.go index 74536b4e8c11b7686b371973385fc1f013de6beb..6645b79df7258f297a3d58854980e3c931be4dd2 100644 --- a/api/v1/l2network_types.go +++ b/api/v1/l2network_types.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 v1 diff --git a/api/v1/networkedgedevice_types.go b/api/v1/networkedgedevice_types.go index 8ce50c4f8caea6b27317c99fe8713eb99cca6fe6..c7f9c18f4ce2ee12f8f57bd1effe18811040f97e 100644 --- a/api/v1/networkedgedevice_types.go +++ b/api/v1/networkedgedevice_types.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 v1 diff --git a/api/v1/overlay_types.go b/api/v1/overlay_types.go index 9af3a45f835b5cb6480ae5c06389bcc466a84cc8..191aaf340e611d5e8445be13fd31e3a3565516cc 100644 --- a/api/v1/overlay_types.go +++ b/api/v1/overlay_types.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 v1 diff --git a/api/v1/zz_generated.deepcopy.go b/api/v1/zz_generated.deepcopy.go index 0377207ecf104812c3ed34f2cd989597c09b0f5c..deb5ad3c723a3cca4c5a06c4f96a1eb5f233c398 100644 --- a/api/v1/zz_generated.deepcopy.go +++ b/api/v1/zz_generated.deepcopy.go @@ -1,20 +1,18 @@ //go:build !ignore_autogenerated -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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. // Code generated by controller-gen. DO NOT EDIT. diff --git a/cmd/main.go b/cmd/main.go index 1d9f6214d93236df28fa2f3b585156d526630d66..25b2c4eb53587247ef69d67220117cbcd205c45b 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 diff --git a/config/certmanager/certificate.yaml b/config/certmanager/certificate.yaml index 71d942d2cd11e98fbabe7f69463e35f90e6ed074..ab6227c9f66a2fdf389c8cba375bcaf8e4963b47 100644 --- a/config/certmanager/certificate.yaml +++ b/config/certmanager/certificate.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + # The following manifests contain a self-signed issuer CR and a certificate CR. # More document can be found at https://docs.cert-manager.io # WARNING: Targets CertManager v1.0. Check https://cert-manager.io/docs/installation/upgrading/ for breaking changes. diff --git a/config/certmanager/kustomization.yaml b/config/certmanager/kustomization.yaml index bebea5a595ee6ca488a3c3a5c820edbbb02bff8a..9ed8178a21f9246048f84d6c373b98235dd81e15 100644 --- a/config/certmanager/kustomization.yaml +++ b/config/certmanager/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + resources: - certificate.yaml diff --git a/config/certmanager/kustomizeconfig.yaml b/config/certmanager/kustomizeconfig.yaml index cf6f89e88928b87c5a2e472cb61aa99f5da07f6c..f5b004f5ac34e0af358591125e452dd7c5369646 100644 --- a/config/certmanager/kustomizeconfig.yaml +++ b/config/certmanager/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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 configuration is for teaching kustomize how to update name ref substitution nameReference: - kind: Issuer diff --git a/config/crd/bases/l2sm.l2sm.k8s.local_l2networks.yaml b/config/crd/bases/l2sm.l2sm.k8s.local_l2networks.yaml index d4714606ff07a0969290cb47d045dd71551dd4ef..d0ea7de301c3184e234205ddff4e8b3a21055b82 100644 --- a/config/crd/bases/l2sm.l2sm.k8s.local_l2networks.yaml +++ b/config/crd/bases/l2sm.l2sm.k8s.local_l2networks.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/bases/l2sm.l2sm.k8s.local_networkedgedevices.yaml b/config/crd/bases/l2sm.l2sm.k8s.local_networkedgedevices.yaml index 03cb2988ee922d2603644806652b3b7a29b52bd0..006ffbaf226c221b8f54958327591be62a4e7cd4 100644 --- a/config/crd/bases/l2sm.l2sm.k8s.local_networkedgedevices.yaml +++ b/config/crd/bases/l2sm.l2sm.k8s.local_networkedgedevices.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/bases/l2sm.l2sm.k8s.local_overlays.yaml b/config/crd/bases/l2sm.l2sm.k8s.local_overlays.yaml index 28e19475a8aba36e12f1c56e3fe6f93ee6e476f4..e2c5e8508943ddfca9e725952e5cbae98cb694ea 100644 --- a/config/crd/bases/l2sm.l2sm.k8s.local_overlays.yaml +++ b/config/crd/bases/l2sm.l2sm.k8s.local_overlays.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/kustomization.yaml b/config/crd/kustomization.yaml index ea3e4860e556c1f4dc6980f0da1a79af4f4d60a4..4d89c69443deec020089b94f7fa44bd09f1512b2 100644 --- a/config/crd/kustomization.yaml +++ b/config/crd/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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 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 ec5c150a9df257f152db0dbe2fbab375c1c1156b..f852d1907b6ce67c08e86c704e18ee0de260d6f0 100644 --- a/config/crd/kustomizeconfig.yaml +++ b/config/crd/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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 file is for teaching kustomize how to substitute name and namespace reference in CRD nameReference: - kind: Service diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml index e155b41a323c9f335ae21c308c5864a193a6c929..50bdc2f2c2a0e6dc8c8c95287341bc9c27993b0b 100644 --- a/config/default/kustomization.yaml +++ b/config/default/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + # Adds namespace to all resources. namespace: l2sm-system diff --git a/config/default/manager_auth_proxy_patch.yaml b/config/default/manager_auth_proxy_patch.yaml index 70c3437f4b40e27f4915ef2de953a7d9f5938ff1..38276e4692ba8eb113367cb73d8976012dcdfdde 100644 --- a/config/default/manager_auth_proxy_patch.yaml +++ b/config/default/manager_auth_proxy_patch.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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 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 f6f58916922f62fa4d00d86846bee27eafb3c05d..ee4b75428fcd6d9066ee830c8739bb56eef4fde3 100644 --- a/config/default/manager_config_patch.yaml +++ b/config/default/manager_config_patch.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/config/default/manager_webhook_patch.yaml b/config/default/manager_webhook_patch.yaml index 738de350b71e1c37a8f91eef98ce30bd3fdc1f60..0060c9064da216389bdaf68c52426388111b3938 100644 --- a/config/default/manager_webhook_patch.yaml +++ b/config/default/manager_webhook_patch.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/config/default/webhookcainjection_patch.yaml b/config/default/webhookcainjection_patch.yaml index 430e24a352c8c8d72a5ea3d053ee80d516533633..6e177fd2ec19b4ee09f953b2a5a9c44d6ac4882b 100644 --- a/config/default/webhookcainjection_patch.yaml +++ b/config/default/webhookcainjection_patch.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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 patch add annotation to admission webhook config and # CERTIFICATE_NAMESPACE and CERTIFICATE_NAME will be substituted by kustomize apiVersion: admissionregistration.k8s.io/v1 diff --git a/config/dev/kustomization.yaml b/config/dev/kustomization.yaml index 1b5adc4dd9200192a25a0920e39fcd7b9f57a3e8..5b65a642b0813388314dedcd4388700b1215189c 100644 --- a/config/dev/kustomization.yaml +++ b/config/dev/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + # # Adds namespace to all resources. #namespace: l2sm-system diff --git a/config/dev/webhookcainjection_patch.yaml b/config/dev/webhookcainjection_patch.yaml index 963e835bdf053c942046719060b812cc178a3900..0f98e68e16fdfc182efaf7404f3f4e9f1d1d6dfe 100644 --- a/config/dev/webhookcainjection_patch.yaml +++ b/config/dev/webhookcainjection_patch.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index 6ca6a37a80d3fe9ce037db4875ea9cb155d037d0..aaf2697b620f746e34ee021ffdf017fc6ba22f15 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + resources: - manager.yaml apiVersion: kustomize.config.k8s.io/v1beta1 diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 2093a3f702910b1febfe3d011ba01a3fd97a3784..40b53d310fa2898a804d5d7d75cc5716c271af5a 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: v1 kind: Namespace metadata: diff --git a/config/prometheus/kustomization.yaml b/config/prometheus/kustomization.yaml index ed137168a1dbc962c3e057efce714960f8c5624c..dc2d0e522e80eb02485ccce356c2c02be07eee0e 100644 --- a/config/prometheus/kustomization.yaml +++ b/config/prometheus/kustomization.yaml @@ -1,2 +1,16 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + resources: - monitor.yaml diff --git a/config/prometheus/monitor.yaml b/config/prometheus/monitor.yaml index ffdd827c6a02b8ec3b4b1923d0144b8f50c25a11..d92d95fd139a1565d51cca400a1ae333f54d37dc 100644 --- a/config/prometheus/monitor.yaml +++ b/config/prometheus/monitor.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + # Prometheus Monitor Service (Metrics) apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor diff --git a/config/rbac/auth_proxy_client_clusterrole.yaml b/config/rbac/auth_proxy_client_clusterrole.yaml index bdd10d3087fba68de48c5216648d417513ddf352..e937328c87f37fae7255807654a97c686187bf93 100644 --- a/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/config/rbac/auth_proxy_client_clusterrole.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + 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 9f5c3cb515aebcdaf02346fdb77b96a076bddf05..872af579c39474c75a33c56ed84c40ba920e3aa3 100644 --- a/config/rbac/auth_proxy_role.yaml +++ b/config/rbac/auth_proxy_role.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + 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 6b9a1ff799215bb884649a41019aa69dde16eeb4..a5212a15bbb1c170d8e78aab37b675bc83915cb5 100644 --- a/config/rbac/auth_proxy_role_binding.yaml +++ b/config/rbac/auth_proxy_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + 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 447e07eddb04880f900c84cdbf6af960262b5d6e..23237ce4d4aeeb597e02f19dee1a2dff8ee8bd9a 100644 --- a/config/rbac/auth_proxy_service.yaml +++ b/config/rbac/auth_proxy_service.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: v1 kind: Service metadata: diff --git a/config/rbac/kustomization.yaml b/config/rbac/kustomization.yaml index 731832a6ac3b6a55814601f2e86edcdec995f520..ea304e19dcaf3742ceb42c8eb094933553125375 100644 --- a/config/rbac/kustomization.yaml +++ b/config/rbac/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + 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/l2overlay_editor_role.yaml b/config/rbac/l2overlay_editor_role.yaml index f9f8b323417b03dcd72811b90f75a02042937c1a..7773329fc8fb3c1d721bfcddacb7d88579136546 100644 --- a/config/rbac/l2overlay_editor_role.yaml +++ b/config/rbac/l2overlay_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + # permissions for end users to edit networkedgedevices. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/l2smmdnoverlay_viewer_role.yaml b/config/rbac/l2smmdnoverlay_viewer_role.yaml index a5e62da325af4f8f8d3e2801835d5c8cd1806d05..b34c34f95673a66c20dc0c53916c49f60d55fc93 100644 --- a/config/rbac/l2smmdnoverlay_viewer_role.yaml +++ b/config/rbac/l2smmdnoverlay_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + # permissions for end users to view networkedgedevices. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/l2smnetwork_editor_role.yaml b/config/rbac/l2smnetwork_editor_role.yaml index 93b25a8c0919166e498923258c0bd4af2321f212..cf921ffa83295a257f49320d20a7b46062bc47cd 100644 --- a/config/rbac/l2smnetwork_editor_role.yaml +++ b/config/rbac/l2smnetwork_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + # permissions for end users to edit l2networks. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/l2smnetwork_viewer_role.yaml b/config/rbac/l2smnetwork_viewer_role.yaml index 88d1a63f9bb6af4ea4e2507846a06357edaac374..8995b662782db6912f65847ac07ac839e0beacb0 100644 --- a/config/rbac/l2smnetwork_viewer_role.yaml +++ b/config/rbac/l2smnetwork_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + # permissions for end users to view l2networks. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/l2smoverlay_viewer_role.yaml b/config/rbac/l2smoverlay_viewer_role.yaml index a5e62da325af4f8f8d3e2801835d5c8cd1806d05..b34c34f95673a66c20dc0c53916c49f60d55fc93 100644 --- a/config/rbac/l2smoverlay_viewer_role.yaml +++ b/config/rbac/l2smoverlay_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + # permissions for end users to view networkedgedevices. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/leader_election_role.yaml b/config/rbac/leader_election_role.yaml index e5c7c7519dd7f57dd79ad101a122835b41a3fac0..b49417f24eed7c967a4c0d222e666f3b25c6e40d 100644 --- a/config/rbac/leader_election_role.yaml +++ b/config/rbac/leader_election_role.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + # 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 4abffc928d48a580ae1198cce4ee00540d4cf8ab..c6efb60f73d08c8bc6c14521ae24db98720a5135 100644 --- a/config/rbac/leader_election_role_binding.yaml +++ b/config/rbac/leader_election_role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: diff --git a/config/rbac/overlay_editor_role.yaml b/config/rbac/overlay_editor_role.yaml index 977e8a844de5d153bd3c35a32b17ccbcb53f7480..f43697b824f8e24cb105022d4c5c8d2100b6ecd5 100644 --- a/config/rbac/overlay_editor_role.yaml +++ b/config/rbac/overlay_editor_role.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + # permissions for end users to edit overlays. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/overlay_viewer_role.yaml b/config/rbac/overlay_viewer_role.yaml index d71fbdf934744e175b464e888dad8c82ba1b5792..c2e992a3f8bfe5fc8055d91e3cdac222b1aa5c8d 100644 --- a/config/rbac/overlay_viewer_role.yaml +++ b/config/rbac/overlay_viewer_role.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + # permissions for end users to view overlays. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 2d0b278f6b8a9390a6f54a6d1160c31aa2db8b2d..41f6e90320c7937247a52bc7789dc86e76d0b484 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/role_binding.yaml b/config/rbac/role_binding.yaml index a315f590777e49733c4396d9979420439c4d4712..266ef5908ae3dec107804471d2b2edc5c06a58cb 100644 --- a/config/rbac/role_binding.yaml +++ b/config/rbac/role_binding.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/config/rbac/service_account.yaml b/config/rbac/service_account.yaml index 3304d24f3f674d445edde62f75942ed32561b60e..1791cb2a53dc58c259e71c0e7eab9050763b9fca 100644 --- a/config/rbac/service_account.yaml +++ b/config/rbac/service_account.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: v1 kind: ServiceAccount metadata: diff --git a/config/samples/kustomization.yaml b/config/samples/kustomization.yaml index bc4c61efceb818b7ee991a887888463610ab0c25..8d15b7be5c9842724d65bc7f17473cdf3f80a256 100644 --- a/config/samples/kustomization.yaml +++ b/config/samples/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + ## Append samples of your project ## resources: - l2sm_v1_l2network.yaml diff --git a/config/samples/l2sm_v1_l2network.yaml b/config/samples/l2sm_v1_l2network.yaml index 073d66e22d7d93fbc61335c3f7e8131cc6688611..909e43368b7e6e0c8562ab50f71e1c21292dea3b 100644 --- a/config/samples/l2sm_v1_l2network.yaml +++ b/config/samples/l2sm_v1_l2network.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: l2sm.l2sm.k8s.local/v1 kind: L2Network metadata: diff --git a/config/samples/l2sm_v1_networkedgedevice.yaml b/config/samples/l2sm_v1_networkedgedevice.yaml index 38ed9694ff3d35d01503208f347884d654c41952..6be3cca2e0139b7206a371305ffb893637c945c6 100644 --- a/config/samples/l2sm_v1_networkedgedevice.yaml +++ b/config/samples/l2sm_v1_networkedgedevice.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: l2sm.l2sm.k8s.local/v1 kind: NetworkEdgeDevice metadata: diff --git a/config/samples/l2sm_v1_overlay.yaml b/config/samples/l2sm_v1_overlay.yaml index 17259116998c93794af84e8e744fc262c8e74495..8df97f3501fb0d79cf2e0bb5d5ca6f9e52169761 100644 --- a/config/samples/l2sm_v1_overlay.yaml +++ b/config/samples/l2sm_v1_overlay.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: l2sm.l2sm.k8s.local/v1 kind: Overlay metadata: diff --git a/config/sdncontroller/kustomization.yaml b/config/sdncontroller/kustomization.yaml index 33699b3dafef121aaa1f189e4fee70b76e235371..5350348f53f5e2a759a32e05e5539d226e2b18f9 100644 --- a/config/sdncontroller/kustomization.yaml +++ b/config/sdncontroller/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + resources: - manifests.yaml - service.yaml \ No newline at end of file diff --git a/config/sdncontroller/manifests.yaml b/config/sdncontroller/manifests.yaml index c59d0904db71cb07dc31a6c05b2d8042b3261c6c..bdea6e334f7cbd6cf752be1110f5bc214e7b7738 100644 --- a/config/sdncontroller/manifests.yaml +++ b/config/sdncontroller/manifests.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/config/sdncontroller/service.yaml b/config/sdncontroller/service.yaml index aedbfc44f523aeedd600ba0b2682dc845a2c503e..d02598210ae1ebaf389a48b06505b971233525fd 100644 --- a/config/sdncontroller/service.yaml +++ b/config/sdncontroller/service.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: v1 kind: Service metadata: diff --git a/config/tmp/kustomization.yaml b/config/tmp/kustomization.yaml index 2d3fbf2b24c34d8b0846fcac609568129bb45d6a..a9303b4e2868f4d48ea3d24697ac067455f38c81 100644 --- a/config/tmp/kustomization.yaml +++ b/config/tmp/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + namespace: l2sm-system resources: - vhost1.yaml diff --git a/config/tmp/vhost1.yaml b/config/tmp/vhost1.yaml index 35ec50b0ac7c00c5baa36be96599a779af1424e6..1d2e76dfa7d566c0347a6f15d36b2eb055cda9c5 100644 --- a/config/tmp/vhost1.yaml +++ b/config/tmp/vhost1.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition diff --git a/config/tmp/vhost10.yaml b/config/tmp/vhost10.yaml index 4937c129f16f1cc33e6cdbb7aaff0e2456757b92..ba43d7f0e6068e479dbca36944752018b48038d4 100644 --- a/config/tmp/vhost10.yaml +++ b/config/tmp/vhost10.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition diff --git a/config/tmp/vhost2.yaml b/config/tmp/vhost2.yaml index cb536e681008834ae3b702b7f7c41470208129a8..49d690aaf65c0c01e2b8a923b80a0754d9a2333d 100644 --- a/config/tmp/vhost2.yaml +++ b/config/tmp/vhost2.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition diff --git a/config/tmp/vhost3.yaml b/config/tmp/vhost3.yaml index e9895a6da6c6da23e1c83e7d553793b0d642a0d6..32231b49fd7f0daf55ba8e56a8910f6d28f2a7ab 100644 --- a/config/tmp/vhost3.yaml +++ b/config/tmp/vhost3.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition diff --git a/config/tmp/vhost4.yaml b/config/tmp/vhost4.yaml index c78bb1d57a718cd43507e1d455444f18d2813192..8738478693fb2a9429be0f5840e08f7ee589ce59 100644 --- a/config/tmp/vhost4.yaml +++ b/config/tmp/vhost4.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition diff --git a/config/tmp/vhost5.yaml b/config/tmp/vhost5.yaml index 624a4e0f005f9fc99d03d8d1c3823633f1799f09..44c449efb3520a3ffc668f9eca6dd75dd2332ae3 100644 --- a/config/tmp/vhost5.yaml +++ b/config/tmp/vhost5.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition diff --git a/config/tmp/vhost6.yaml b/config/tmp/vhost6.yaml index 2de8c5a2023f3f20c63ab2ee72fd375e8f45fb7c..4deed49f2cd1c69b82c10bb196a7531e120cee7f 100644 --- a/config/tmp/vhost6.yaml +++ b/config/tmp/vhost6.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition diff --git a/config/tmp/vhost7.yaml b/config/tmp/vhost7.yaml index f4d707ba5c6dd123b1fbb4552a79ba2aeec80074..b5e2022e5fa06a64b6b668d48490ced53554bdc2 100644 --- a/config/tmp/vhost7.yaml +++ b/config/tmp/vhost7.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition diff --git a/config/tmp/vhost8.yaml b/config/tmp/vhost8.yaml index 2369034c16798bf196874c31c28d6d59dc824bc2..b05b60f32c13c32b2e1f478d58e9730e8ea58e29 100644 --- a/config/tmp/vhost8.yaml +++ b/config/tmp/vhost8.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition diff --git a/config/tmp/vhost9.yaml b/config/tmp/vhost9.yaml index b2a6f9bd1b0d60bdc0b000e7d6eccf774e1f81f4..6e9f2777d6d93ebcc6ab282e67ae4f9b61f8c962 100644 --- a/config/tmp/vhost9.yaml +++ b/config/tmp/vhost9.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition diff --git a/config/webhook/kustomization.yaml b/config/webhook/kustomization.yaml index 9cf26134e4d532aaa13b204462db91163493d188..68193e6a4bbd7ad41a18551951a2a96576c99feb 100644 --- a/config/webhook/kustomization.yaml +++ b/config/webhook/kustomization.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + resources: - manifests.yaml - service.yaml diff --git a/config/webhook/kustomizeconfig.yaml b/config/webhook/kustomizeconfig.yaml index 02ea918a1aa2cac078fea803ebbc4d2229cfb172..e9f56f8fca4585cbc72b0e8b16dbf9c56fc2bfb1 100644 --- a/config/webhook/kustomizeconfig.yaml +++ b/config/webhook/kustomizeconfig.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + # the following config is for teaching kustomize where to look at when substituting nameReference. # It requires kustomize v2.1.0 or newer to work properly. nameReference: diff --git a/config/webhook/manifests.yaml b/config/webhook/manifests.yaml index b3c7ff907cecaac6df334a22cf1b7ac7b937845d..eaefcbf71e73b427214f71c70dbaf8afc1a73d83 100644 --- a/config/webhook/manifests.yaml +++ b/config/webhook/manifests.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + --- apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration diff --git a/config/webhook/service.yaml b/config/webhook/service.yaml index 67e4c17d93a2e35923740eb6b78f6321ced50790..4f4940d147a976c8dee2a666d64ab373934a6887 100644 --- a/config/webhook/service.yaml +++ b/config/webhook/service.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: v1 kind: Service metadata: diff --git a/deployments/l2sm-deployment.yaml b/deployments/l2sm-deployment.yaml index 92c519de85d4bac7f1c01a2977623fa7788f8de2..c492519edcd62e79c64b72afad4c68ecdc3a4576 100644 --- a/deployments/l2sm-deployment.yaml +++ b/deployments/l2sm-deployment.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + --- apiVersion: v1 diff --git a/examples/cdn/cdn-server.yaml b/examples/cdn/cdn-server.yaml index 520318d397eb324b137ccbbbfd9cd9cd4b2bc499..27db00aa4271f8758514ac6db14b16bd34b2ed84 100644 --- a/examples/cdn/cdn-server.yaml +++ b/examples/cdn/cdn-server.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: v1 kind: Pod metadata: diff --git a/examples/cdn/content-server.yaml b/examples/cdn/content-server.yaml index 2ce71c02c48e5895d164b4904256039eaadbf641..0991c4a48e86adef5ca92921e812f6a923a6882a 100644 --- a/examples/cdn/content-server.yaml +++ b/examples/cdn/content-server.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/examples/cdn/router.yaml b/examples/cdn/router.yaml index 8cfb66146e7a116d8a46e4a665b5c447fbffd90e..0504dda7ff66688fdc452a9623c9c9955ea233f8 100644 --- a/examples/cdn/router.yaml +++ b/examples/cdn/router.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: v1 kind: Pod metadata: diff --git a/examples/cdn/v-network-1.yaml b/examples/cdn/v-network-1.yaml index a0e8bd9dcbfb3aa385719569a926c4a13924930a..6f1e7e2aeabfe7ba94899207cf3743750eaeaffe 100644 --- a/examples/cdn/v-network-1.yaml +++ b/examples/cdn/v-network-1.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: l2sm.l2sm.k8s.local/v1 kind: L2Network metadata: diff --git a/examples/cdn/v-network-2.yaml b/examples/cdn/v-network-2.yaml index 32c3090b38030959e37df84d5abafde99c2dd3fe..2845e06bc5c8a4a323ba5b417b20b1a8128dd16f 100644 --- a/examples/cdn/v-network-2.yaml +++ b/examples/cdn/v-network-2.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: l2sm.l2sm.k8s.local/v1 kind: L2Network metadata: diff --git a/examples/cdn/video-server/Dockerfile b/examples/cdn/video-server/Dockerfile index 95291b2f75bc07ae0f8243ffa9d4a187a529d1d9..a4f61424b5e781eecb71815e15e544fc11b1a790 100644 --- a/examples/cdn/video-server/Dockerfile +++ b/examples/cdn/video-server/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + # Use the official Nginx image as the base image FROM nginx:latest diff --git a/examples/inter-cluster-setup/example-ned.yaml b/examples/inter-cluster-setup/example-ned.yaml index a4399103c6e4262cc6a14a0b6c527ec955964ec4..dd2389c81b206b838fcb8474f3a4a7e0cb370d1d 100644 --- a/examples/inter-cluster-setup/example-ned.yaml +++ b/examples/inter-cluster-setup/example-ned.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: l2sm.l2sm.k8s.local/v1 kind: NetworkEdgeDevice metadata: diff --git a/examples/inter-cluster-setup/inter-network.yaml b/examples/inter-cluster-setup/inter-network.yaml index 3d9aa85a2edf5910d5ebae892da0eb1e546849e9..d27ebaa0b495220871400f44a951126829fedcd9 100644 --- a/examples/inter-cluster-setup/inter-network.yaml +++ b/examples/inter-cluster-setup/inter-network.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: l2sm.l2sm.k8s.local/v1 kind: L2Network metadata: diff --git a/examples/inter-cluster-setup/ping.yaml b/examples/inter-cluster-setup/ping.yaml index f157a592305065b13ffcfc1a5b5a3d59b46cb2a2..6d30f76e5906acf199f8fdf91a99ca9532242362 100644 --- a/examples/inter-cluster-setup/ping.yaml +++ b/examples/inter-cluster-setup/ping.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: v1 kind: Pod metadata: diff --git a/examples/inter-cluster-setup/pong.yaml b/examples/inter-cluster-setup/pong.yaml index 57f1715d7b3428fd0af36410aacb30a16767c53a..421c4c0d7ffb7dc0144db286d64663474ab78757 100644 --- a/examples/inter-cluster-setup/pong.yaml +++ b/examples/inter-cluster-setup/pong.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: v1 kind: Pod metadata: diff --git a/examples/overlay-setup/overlay-sample.yaml b/examples/overlay-setup/overlay-sample.yaml index 3a16f9d48e8ae347ef46b745d34aa055875c33f3..75e6a72a22ec68858e997214b54090b085236728 100644 --- a/examples/overlay-setup/overlay-sample.yaml +++ b/examples/overlay-setup/overlay-sample.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: l2sm.l2sm.k8s.local/v1 kind: Overlay metadata: diff --git a/examples/ping-pong/network.yaml b/examples/ping-pong/network.yaml index dca308769559617bcae15933c600215215e87ab0..d940c86e30b244fce2ec421230ba859e5ca5048a 100644 --- a/examples/ping-pong/network.yaml +++ b/examples/ping-pong/network.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: l2sm.l2sm.k8s.local/v1 kind: L2Network metadata: diff --git a/examples/ping-pong/ping.yaml b/examples/ping-pong/ping.yaml index f157a592305065b13ffcfc1a5b5a3d59b46cb2a2..6d30f76e5906acf199f8fdf91a99ca9532242362 100644 --- a/examples/ping-pong/ping.yaml +++ b/examples/ping-pong/ping.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: v1 kind: Pod metadata: diff --git a/examples/ping-pong/pong.yaml b/examples/ping-pong/pong.yaml index a775d3459a2c741895246701faf3f79f5745d154..ae5456fbeacf954e6ee163afe77dc2123fb5af41 100644 --- a/examples/ping-pong/pong.yaml +++ b/examples/ping-pong/pong.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: v1 kind: Pod metadata: diff --git a/examples/vlink/ping.yaml b/examples/vlink/ping.yaml index d2aa90d2aed70b13db2b3f56036e35411ba6c2e3..99c22b1b60d5445a1487c36433786a695ae5e9f7 100644 --- a/examples/vlink/ping.yaml +++ b/examples/vlink/ping.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: v1 kind: Pod metadata: diff --git a/examples/vlink/pong.yaml b/examples/vlink/pong.yaml index 410c97a3b29c68c628cef40b11bd46447831e489..66c29567c55d6ee3dc40140b0e12947f30d6c65d 100644 --- a/examples/vlink/pong.yaml +++ b/examples/vlink/pong.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: v1 kind: Pod metadata: diff --git a/examples/vlink/vlink-sample.yaml b/examples/vlink/vlink-sample.yaml index 97522496adaaf6b4dcdfe133daf2cb69fc867707..3f2e20223d0d487eee0c3d9f5d9a638db9ff6fe6 100644 --- a/examples/vlink/vlink-sample.yaml +++ b/examples/vlink/vlink-sample.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 Universidad Carlos III de Madrid +# +# 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. + apiVersion: l2sm.l2sm.k8s.local/v1 kind: L2Network metadata: diff --git a/hack/LICENSE.txt b/hack/LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..9cfdc0b5753970d0a5ee4a7111e020aa918eeddc --- /dev/null +++ b/hack/LICENSE.txt @@ -0,0 +1,13 @@ +Copyright 2024 Universidad Carlos III de Madrid + +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. \ No newline at end of file diff --git a/hack/boilerplate.go.txt b/hack/boilerplate.go.txt index ff72ff2aaabddacb3ecae9e3489f388ee64e5f46..43564930c8641b20c3a1602e69426ab6234c1db8 100644 --- a/hack/boilerplate.go.txt +++ b/hack/boilerplate.go.txt @@ -1,15 +1,13 @@ -/* -Copyright 2024. - -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. -*/ \ No newline at end of file +// Copyright 2024 Universidad Carlos III de Madrid +// +// 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. \ No newline at end of file diff --git a/internal/controller/l2network_controller.go b/internal/controller/l2network_controller.go index 20716e29957ad2ef777749b81b07e6f5deab5cca..2c3d174ff1d9e6e98f36085baab93bbeedf0f488 100644 --- a/internal/controller/l2network_controller.go +++ b/internal/controller/l2network_controller.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 controller diff --git a/internal/controller/l2network_controller_test.go b/internal/controller/l2network_controller_test.go index ed91b8b31e7682469dbca149a3992a2f92ece54d..6725c22ac520b78ca2678ad5d1203cf956970812 100644 --- a/internal/controller/l2network_controller_test.go +++ b/internal/controller/l2network_controller_test.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 controller diff --git a/internal/controller/networkedgedevice_controller.go b/internal/controller/networkedgedevice_controller.go index 2f6a38c3ab4adc8bd02ffcbecb023adae284eba1..ab2aaf2596978e7b49900d7277357411e675f8f1 100644 --- a/internal/controller/networkedgedevice_controller.go +++ b/internal/controller/networkedgedevice_controller.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 controller diff --git a/internal/controller/networkedgedevice_controller_test.go b/internal/controller/networkedgedevice_controller_test.go index 9d3a00cf64c8c64b8e3ce6198fa60412b4b8b79e..29611aec119261644a0ba2cf2c618e46f5ff8d7d 100644 --- a/internal/controller/networkedgedevice_controller_test.go +++ b/internal/controller/networkedgedevice_controller_test.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 controller diff --git a/internal/controller/overlay_controller.go b/internal/controller/overlay_controller.go index 833d5049c1164edcec97da13b300e452fa82725c..8ff853f12044a5dd9ad271be4b1a924172108258 100644 --- a/internal/controller/overlay_controller.go +++ b/internal/controller/overlay_controller.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 controller diff --git a/internal/controller/overlay_controller_test.go b/internal/controller/overlay_controller_test.go index cd13e4571a983db2b620db7d89b539854a5285e3..342bf15e60bc516a58051788e020383c655c8cf8 100644 --- a/internal/controller/overlay_controller_test.go +++ b/internal/controller/overlay_controller_test.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 controller diff --git a/internal/controller/pod_controller.go b/internal/controller/pod_controller.go index 2df0a6bd4eafc29c538f5b5b1690fb030aa8d7c6..93ef743d9d544f10bc09a9ba54630dd3ae5ff071 100644 --- a/internal/controller/pod_controller.go +++ b/internal/controller/pod_controller.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 controller diff --git a/internal/controller/pod_utils.go b/internal/controller/pod_utils.go index 45cc9019b5d63de25edc5387b75a6e632c269889..3b0d20f13009353dbb0c1aca2db3422ef25d0204 100644 --- a/internal/controller/pod_utils.go +++ b/internal/controller/pod_utils.go @@ -1,3 +1,17 @@ +// Copyright 2024 Universidad Carlos III de Madrid +// +// 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 controller import ( diff --git a/internal/controller/pod_webhook.go b/internal/controller/pod_webhook.go index 40261118faa40d72fa77d06cbfc1dbc147ab1566..641a965aa89acb5312060d52a0a1019aba5075b9 100644 --- a/internal/controller/pod_webhook.go +++ b/internal/controller/pod_webhook.go @@ -1,3 +1,17 @@ +// Copyright 2024 Universidad Carlos III de Madrid +// +// 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 controller import ( diff --git a/internal/controller/suite_test.go b/internal/controller/suite_test.go index bdcab0a450d9ba986e326041b5de596de3758f47..52623dc245d308d8ea304c4de00e69b3ddbbef65 100644 --- a/internal/controller/suite_test.go +++ b/internal/controller/suite_test.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 controller diff --git a/internal/nedinterface/nedinterface.go b/internal/nedinterface/nedinterface.go index 4b695302acbbf4265163f82ea6c28b8d4d9367dd..cd35f8f6afc37b2bc019c9018a6545c44b33276c 100644 --- a/internal/nedinterface/nedinterface.go +++ b/internal/nedinterface/nedinterface.go @@ -1,3 +1,17 @@ +// Copyright 2024 Universidad Carlos III de Madrid +// +// 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 nedinterface import ( diff --git a/internal/sdnclient/client.go b/internal/sdnclient/client.go index 43f79014551674c94bf97ed89f9c82b446da2c4a..ff6736cab25d085ade2fc705735b098312ed1b1a 100644 --- a/internal/sdnclient/client.go +++ b/internal/sdnclient/client.go @@ -1,3 +1,17 @@ +// Copyright 2024 Universidad Carlos III de Madrid +// +// 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 sdnclient import ( diff --git a/internal/sdnclient/external_client.go b/internal/sdnclient/external_client.go index 5b25379f58183eb5816203bbf72612ee13b68b57..ecd9f7751601c67a939228eba0f9a808bbe5ba9f 100644 --- a/internal/sdnclient/external_client.go +++ b/internal/sdnclient/external_client.go @@ -1,3 +1,17 @@ +// Copyright 2024 Universidad Carlos III de Madrid +// +// 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 sdnclient import ( diff --git a/internal/sdnclient/internal_client.go b/internal/sdnclient/internal_client.go index 3cfda57e3020c18f7ad4aa53c6d75c3a4133a961..856bef0cac2ade2d0bd0992c5c44e98a931a1c2c 100644 --- a/internal/sdnclient/internal_client.go +++ b/internal/sdnclient/internal_client.go @@ -1,3 +1,17 @@ +// Copyright 2024 Universidad Carlos III de Madrid +// +// 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 sdnclient import ( diff --git a/internal/sdnclient/session_client.go b/internal/sdnclient/session_client.go index e452975bd3e15352c239e4429a3b75bde6da5e73..cc69eab4f36b8d85ae102f3eb6880bd74875c54b 100644 --- a/internal/sdnclient/session_client.go +++ b/internal/sdnclient/session_client.go @@ -1,3 +1,17 @@ +// Copyright 2024 Universidad Carlos III de Madrid +// +// 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 sdnclient import ( diff --git a/internal/utils/utils.go b/internal/utils/utils.go index 6568881a4ee732c1abbc5ee1d56b170def2fc7fc..943540c09003422123f3df4b119a79e06aa9e4f9 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -1,3 +1,17 @@ +// Copyright 2024 Universidad Carlos III de Madrid +// +// 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 utils import ( diff --git a/test/e2e/e2e_suite_test.go b/test/e2e/e2e_suite_test.go index 174d959b72d7158eea32d413dd7920f90af1ef19..9d17ae78e747918adad760d5cbeb3032b4bf2942 100644 --- a/test/e2e/e2e_suite_test.go +++ b/test/e2e/e2e_suite_test.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 e2e diff --git a/test/e2e/e2e_test.go b/test/e2e/e2e_test.go index 4d17f16a07a5be758d426aa5be7c6a4ffdc359e5..6a828bb9b806ac461d6f2ca98f24c65a63917b6f 100644 --- a/test/e2e/e2e_test.go +++ b/test/e2e/e2e_test.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 e2e diff --git a/test/utils/utils.go b/test/utils/utils.go index 7363aa56aeaec958213fe020fda2ca0595f12474..b19540664e58c1fec7d04a185644353eb31a9e99 100644 --- a/test/utils/utils.go +++ b/test/utils/utils.go @@ -1,18 +1,16 @@ -/* -Copyright 2024. - -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 2024 Universidad Carlos III de Madrid +// +// 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 utils