Skip to content

Commit 7a62c16

Browse files
dajudgeclaude
andauthored
Remove unnecessary MIT license header from K3sContainer (#421)
The K3sContainer implementation is not a derivative work of the Testcontainers K3s module. While both configure K3s containers, the implementations differ significantly: - Different class hierarchies (KubernetesWithKubeletContainer vs GenericContainer) - Different kubeconfig handling (custom utils vs Jackson-based) - Different feature sets (version management, node port ranges, etc.) - No shared code beyond standard K3s requirements The common configuration elements (privileged mode, tmpfs, cgroup settings) are standard K3s requirements that any K3s container implementation must use, not copyrightable expression. The MIT license header was overly cautious and potentially misleading about the relationship between the two implementations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent a234b3f commit 7a62c16

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

src/main/java/com/dajudge/kindcontainer/K3sContainer.java

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,8 @@
11
package com.dajudge.kindcontainer;
22

33
/*
4-
* This file is loosely inspired by https://github.com/testcontainers/testcontainers-java/blob/1.16.3/modules/k3s/src/main/java/org/testcontainers/k3s/K3sContainer.java
5-
*
6-
* The MIT License (MIT)
7-
*
8-
* Copyright (c) 2015-2019 Richard North
9-
*
10-
* Permission is hereby granted, free of charge, to any person obtaining a copy
11-
* of this software and associated documentation files (the "Software"), to deal
12-
* in the Software without restriction, including without limitation the rights
13-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14-
* copies of the Software, and to permit persons to whom the Software is
15-
* furnished to do so, subject to the following conditions:
16-
*
17-
* The above copyright notice and this permission notice shall be included in all
18-
* copies or substantial portions of the Software.
19-
*
20-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26-
* SOFTWARE.
4+
* K3s container configuration based on standard K3s requirements
5+
* (privileged mode, tmpfs, cgroup host mode).
276
*/
287

298
import org.slf4j.Logger;

0 commit comments

Comments
 (0)