refactor: Refactor Kubernetes client and CryptPad installer
- Replace kubectl exec calls with Kubernetes client methods - Improve error handling and logging in Kubernetes client - Enhance node information retrieval and parsing - Add comprehensive unit tests for Kubernetes client and Node structs - Refine YAML validation to allow custom resource definitions - Update CryptPad installer to use the refactored Kubernetes client
This commit is contained in:
1
examples/installers/k8s/.gitignore
vendored
Normal file
1
examples/installers/k8s/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
cryptpad
|
||||
@@ -6,7 +6,7 @@ import incubaid.herolib.installers.k8s.cryptpad
|
||||
|
||||
// 1. Create a new installer instance with a specific hostname.
|
||||
// Replace 'mycryptpad' with your desired hostname.
|
||||
mut installer := cryptpad.new(hostname: 'mycryptpadtes2222tt')!
|
||||
mut installer := cryptpad.new(hostname: 'omda')!
|
||||
|
||||
// 2. Install CryptPad.
|
||||
// This will generate the necessary Kubernetes YAML files and apply them to your cluster.
|
||||
@@ -16,4 +16,4 @@ println('CryptPad installation started.')
|
||||
println('You can access it at https://${installer.hostname}.gent01.grid.tf')
|
||||
|
||||
// 3. To destroy the deployment, you can run the following:
|
||||
//installer.destroy()!
|
||||
// installer.destroy()!
|
||||
|
||||
Reference in New Issue
Block a user