Skip to content

Commit 6d5c75e

Browse files
e0nealmaslennikov
authored andcommitted
chore: Add copyright headers for sources
Signed-off-by: Ivan Kolodiazhnyi <ikolodiazhny@nvidia.com>
1 parent 0c858de commit 6d5c75e

23 files changed

+555
-54
lines changed

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Copyright 2025 NVIDIA CORPORATION & AFFILIATES
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# SPDX-License-Identifier: Apache-2.0
16+
117
FROM golang:alpine as builder
218

319
COPY . /usr/src/rdma-cni

THIRD_PARTY_NOTICES

Lines changed: 210 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
## rdmamap
2+
## pkg
33

44
Apache License
55
Version 2.0, January 2004
@@ -181,15 +181,15 @@
181181
APPENDIX: How to apply the Apache License to your work.
182182

183183
To apply the Apache License to your work, attach the following
184-
boilerplate notice, with the fields enclosed by brackets "[]"
184+
boilerplate notice, with the fields enclosed by brackets "{}"
185185
replaced with your own identifying information. (Don't include
186186
the brackets!) The text should be enclosed in the appropriate
187187
comment syntax for the file format. We also recommend that a
188188
file or class name and description of purpose be included on the
189189
same "printed page" as the copyright notice for easier
190190
identification within third-party archives.
191191

192-
Copyright [yyyy] [name of copyright owner]
192+
Copyright {yyyy} {name of copyright owner}
193193

194194
Licensed under the Apache License, Version 2.0 (the "License");
195195
you may not use this file except in compliance with the License.
@@ -203,8 +203,9 @@
203203
See the License for the specific language governing permissions and
204204
limitations under the License.
205205

206+
206207
---
207-
## pkg
208+
## ns
208209

209210
Apache License
210211
Version 2.0, January 2004
@@ -408,7 +409,6 @@
408409
See the License for the specific language governing permissions and
409410
limitations under the License.
410411

411-
412412
---
413413
## spew
414414

@@ -483,6 +483,211 @@ The above copyright notice and this permission notice shall be included in all c
483483

484484
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
485485

486+
---
487+
## rdmamap
488+
489+
Apache License
490+
Version 2.0, January 2004
491+
http://www.apache.org/licenses/
492+
493+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
494+
495+
1. Definitions.
496+
497+
"License" shall mean the terms and conditions for use, reproduction,
498+
and distribution as defined by Sections 1 through 9 of this document.
499+
500+
"Licensor" shall mean the copyright owner or entity authorized by
501+
the copyright owner that is granting the License.
502+
503+
"Legal Entity" shall mean the union of the acting entity and all
504+
other entities that control, are controlled by, or are under common
505+
control with that entity. For the purposes of this definition,
506+
"control" means (i) the power, direct or indirect, to cause the
507+
direction or management of such entity, whether by contract or
508+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
509+
outstanding shares, or (iii) beneficial ownership of such entity.
510+
511+
"You" (or "Your") shall mean an individual or Legal Entity
512+
exercising permissions granted by this License.
513+
514+
"Source" form shall mean the preferred form for making modifications,
515+
including but not limited to software source code, documentation
516+
source, and configuration files.
517+
518+
"Object" form shall mean any form resulting from mechanical
519+
transformation or translation of a Source form, including but
520+
not limited to compiled object code, generated documentation,
521+
and conversions to other media types.
522+
523+
"Work" shall mean the work of authorship, whether in Source or
524+
Object form, made available under the License, as indicated by a
525+
copyright notice that is included in or attached to the work
526+
(an example is provided in the Appendix below).
527+
528+
"Derivative Works" shall mean any work, whether in Source or Object
529+
form, that is based on (or derived from) the Work and for which the
530+
editorial revisions, annotations, elaborations, or other modifications
531+
represent, as a whole, an original work of authorship. For the purposes
532+
of this License, Derivative Works shall not include works that remain
533+
separable from, or merely link (or bind by name) to the interfaces of,
534+
the Work and Derivative Works thereof.
535+
536+
"Contribution" shall mean any work of authorship, including
537+
the original version of the Work and any modifications or additions
538+
to that Work or Derivative Works thereof, that is intentionally
539+
submitted to Licensor for inclusion in the Work by the copyright owner
540+
or by an individual or Legal Entity authorized to submit on behalf of
541+
the copyright owner. For the purposes of this definition, "submitted"
542+
means any form of electronic, verbal, or written communication sent
543+
to the Licensor or its representatives, including but not limited to
544+
communication on electronic mailing lists, source code control systems,
545+
and issue tracking systems that are managed by, or on behalf of, the
546+
Licensor for the purpose of discussing and improving the Work, but
547+
excluding communication that is conspicuously marked or otherwise
548+
designated in writing by the copyright owner as "Not a Contribution."
549+
550+
"Contributor" shall mean Licensor and any individual or Legal Entity
551+
on behalf of whom a Contribution has been received by Licensor and
552+
subsequently incorporated within the Work.
553+
554+
2. Grant of Copyright License. Subject to the terms and conditions of
555+
this License, each Contributor hereby grants to You a perpetual,
556+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
557+
copyright license to reproduce, prepare Derivative Works of,
558+
publicly display, publicly perform, sublicense, and distribute the
559+
Work and such Derivative Works in Source or Object form.
560+
561+
3. Grant of Patent License. Subject to the terms and conditions of
562+
this License, each Contributor hereby grants to You a perpetual,
563+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
564+
(except as stated in this section) patent license to make, have made,
565+
use, offer to sell, sell, import, and otherwise transfer the Work,
566+
where such license applies only to those patent claims licensable
567+
by such Contributor that are necessarily infringed by their
568+
Contribution(s) alone or by combination of their Contribution(s)
569+
with the Work to which such Contribution(s) was submitted. If You
570+
institute patent litigation against any entity (including a
571+
cross-claim or counterclaim in a lawsuit) alleging that the Work
572+
or a Contribution incorporated within the Work constitutes direct
573+
or contributory patent infringement, then any patent licenses
574+
granted to You under this License for that Work shall terminate
575+
as of the date such litigation is filed.
576+
577+
4. Redistribution. You may reproduce and distribute copies of the
578+
Work or Derivative Works thereof in any medium, with or without
579+
modifications, and in Source or Object form, provided that You
580+
meet the following conditions:
581+
582+
(a) You must give any other recipients of the Work or
583+
Derivative Works a copy of this License; and
584+
585+
(b) You must cause any modified files to carry prominent notices
586+
stating that You changed the files; and
587+
588+
(c) You must retain, in the Source form of any Derivative Works
589+
that You distribute, all copyright, patent, trademark, and
590+
attribution notices from the Source form of the Work,
591+
excluding those notices that do not pertain to any part of
592+
the Derivative Works; and
593+
594+
(d) If the Work includes a "NOTICE" text file as part of its
595+
distribution, then any Derivative Works that You distribute must
596+
include a readable copy of the attribution notices contained
597+
within such NOTICE file, excluding those notices that do not
598+
pertain to any part of the Derivative Works, in at least one
599+
of the following places: within a NOTICE text file distributed
600+
as part of the Derivative Works; within the Source form or
601+
documentation, if provided along with the Derivative Works; or,
602+
within a display generated by the Derivative Works, if and
603+
wherever such third-party notices normally appear. The contents
604+
of the NOTICE file are for informational purposes only and
605+
do not modify the License. You may add Your own attribution
606+
notices within Derivative Works that You distribute, alongside
607+
or as an addendum to the NOTICE text from the Work, provided
608+
that such additional attribution notices cannot be construed
609+
as modifying the License.
610+
611+
You may add Your own copyright statement to Your modifications and
612+
may provide additional or different license terms and conditions
613+
for use, reproduction, or distribution of Your modifications, or
614+
for any such Derivative Works as a whole, provided Your use,
615+
reproduction, and distribution of the Work otherwise complies with
616+
the conditions stated in this License.
617+
618+
5. Submission of Contributions. Unless You explicitly state otherwise,
619+
any Contribution intentionally submitted for inclusion in the Work
620+
by You to the Licensor shall be under the terms and conditions of
621+
this License, without any additional terms or conditions.
622+
Notwithstanding the above, nothing herein shall supersede or modify
623+
the terms of any separate license agreement you may have executed
624+
with Licensor regarding such Contributions.
625+
626+
6. Trademarks. This License does not grant permission to use the trade
627+
names, trademarks, service marks, or product names of the Licensor,
628+
except as required for reasonable and customary use in describing the
629+
origin of the Work and reproducing the content of the NOTICE file.
630+
631+
7. Disclaimer of Warranty. Unless required by applicable law or
632+
agreed to in writing, Licensor provides the Work (and each
633+
Contributor provides its Contributions) on an "AS IS" BASIS,
634+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
635+
implied, including, without limitation, any warranties or conditions
636+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
637+
PARTICULAR PURPOSE. You are solely responsible for determining the
638+
appropriateness of using or redistributing the Work and assume any
639+
risks associated with Your exercise of permissions under this License.
640+
641+
8. Limitation of Liability. In no event and under no legal theory,
642+
whether in tort (including negligence), contract, or otherwise,
643+
unless required by applicable law (such as deliberate and grossly
644+
negligent acts) or agreed to in writing, shall any Contributor be
645+
liable to You for damages, including any direct, indirect, special,
646+
incidental, or consequential damages of any character arising as a
647+
result of this License or out of the use or inability to use the
648+
Work (including but not limited to damages for loss of goodwill,
649+
work stoppage, computer failure or malfunction, or any and all
650+
other commercial damages or losses), even if such Contributor
651+
has been advised of the possibility of such damages.
652+
653+
9. Accepting Warranty or Additional Liability. While redistributing
654+
the Work or Derivative Works thereof, You may choose to offer,
655+
and charge a fee for, acceptance of support, warranty, indemnity,
656+
or other liability obligations and/or rights consistent with this
657+
License. However, in accepting such obligations, You may act only
658+
on Your own behalf and on Your sole responsibility, not on behalf
659+
of any other Contributor, and only if You agree to indemnify,
660+
defend, and hold each Contributor harmless for any liability
661+
incurred by, or claims asserted against, such Contributor by reason
662+
of your accepting any such warranty or additional liability.
663+
664+
END OF TERMS AND CONDITIONS
665+
666+
APPENDIX: How to apply the Apache License to your work.
667+
668+
To apply the Apache License to your work, attach the following
669+
boilerplate notice, with the fields enclosed by brackets "[]"
670+
replaced with your own identifying information. (Don't include
671+
the brackets!) The text should be enclosed in the appropriate
672+
comment syntax for the file format. We also recommend that a
673+
file or class name and description of purpose be included on the
674+
same "printed page" as the copyright notice for easier
675+
identification within third-party archives.
676+
677+
Copyright [yyyy] [name of copyright owner]
678+
679+
Licensed under the Apache License, Version 2.0 (the "License");
680+
you may not use this file except in compliance with the License.
681+
You may obtain a copy of the License at
682+
683+
http://www.apache.org/licenses/LICENSE-2.0
684+
685+
Unless required by applicable law or agreed to in writing, software
686+
distributed under the License is distributed on an "AS IS" BASIS,
687+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
688+
See the License for the specific language governing permissions and
689+
limitations under the License.
690+
486691
---
487692
## difflib
488693

@@ -1160,37 +1365,6 @@ SOFTWARE.
11601365
See the License for the specific language governing permissions and
11611366
limitations under the License.
11621367

1163-
---
1164-
## unix
1165-
1166-
Copyright 2009 The Go Authors.
1167-
1168-
Redistribution and use in source and binary forms, with or without
1169-
modification, are permitted provided that the following conditions are
1170-
met:
1171-
1172-
* Redistributions of source code must retain the above copyright
1173-
notice, this list of conditions and the following disclaimer.
1174-
* Redistributions in binary form must reproduce the above
1175-
copyright notice, this list of conditions and the following disclaimer
1176-
in the documentation and/or other materials provided with the
1177-
distribution.
1178-
* Neither the name of Google LLC nor the names of its
1179-
contributors may be used to endorse or promote products derived from
1180-
this software without specific prior written permission.
1181-
1182-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1183-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1184-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1185-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1186-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1187-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1188-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1189-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1190-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1191-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1192-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1193-
11941368
---
11951369
## text
11961370

cmd/rdma/main.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//Copyright 2020 Mellanox Technologies Ltd.
2+
//
3+
//Licensed under the Apache License, Version 2.0 (the "License");
4+
//you may not use this file except in compliance with the License.
5+
//You may obtain a copy of the License at
6+
//
7+
//http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
//Unless required by applicable law or agreed to in writing, software
10+
//distributed under the License is distributed on an "AS IS" BASIS,
11+
//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
//See the License for the specific language governing permissions and
13+
//limitations under the License.
14+
115
package main
216

317
import (

cmd/rdma/main_suite_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright 2025 NVIDIA CORPORATION & AFFILIATES
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// SPDX-License-Identifier: Apache-2.0
16+
117
package main_test
218

319
import (

cmd/rdma/main_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright 2025 NVIDIA CORPORATION & AFFILIATES
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// SPDX-License-Identifier: Apache-2.0
16+
117
package main
218

319
import (

examples/rdma_net_crd.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Copyright 2025 NVIDIA CORPORATION & AFFILIATES
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# SPDX-License-Identifier: Apache-2.0
16+
117
apiVersion: "k8s.cni.cncf.io/v1"
218
kind: NetworkAttachmentDefinition
319
metadata:

0 commit comments

Comments
 (0)