Closed nxtcoder36 closed 1 week ago
This pull request implements several changes to improve the functionality and performance of the K3s cluster management system. Key changes include timing cluster creation, adding pod deletion functionality, updating Wireguard configurations, modifying intercept removal process, and updating container image versions.
sequenceDiagram
participant User
participant Client
participant Spinner
User->>Client: DeletePods()
activate Client
Client->>Spinner: UpdateMessage("deleting pods")
Client->>Client: runScriptInContainer(script)
deactivate Client
classDiagram
class K3sClient {
+EnsureImage(i string) error
+RestartWgProxyContainer() error
+RemoveAllIntercepts() error
+DeletePods() error
}
class client {
+CreateClustersTeams(teamName string) error
+DeletePods() error
+EnsureK3sServerIsReady() error
+RemoveAllIntercepts() error
}
Change | Details | Files |
---|---|---|
Added timing for cluster creation and ensured K3s server readiness |
|
k3s/impl.go |
Implemented pod deletion functionality |
|
k3s/impl.go k3s/main.go cmd/k3s/down.go |
Updated Wireguard configuration |
|
domain/fileclient/context.go |
Modified intercept removal process |
|
k3s/impl.go cmd/clone/env.go cmd/use/env.go |
Updated container image versions and build process |
|
constants/main.go k3s/k3s-base/Runfile.yml |
Summary by Sourcery
Enhance the k3s client by adding a method to delete pods and improve logging for cluster creation. Refactor intercept removal to use JSON patching and update WireGuard configuration settings. Change the K3S image source and version. Introduce a Runfile for managing Docker images.
New Features:
DeletePods
in the client to delete all pods in specified namespaces using kubectl commands.Enhancements:
RemoveAllIntercepts
method to use JSON patching instead of applying a YAML file.Build: