- Use installer.kube_client for Kubernetes operations - Remove redundant startupmanager calls - Simplify `delete_resource` command - Add default values for installer name and hostname - Refactor `get` function to use new arguments correctly - Remove commented out example code and unused imports - Change the factory file<REQUIRED> to load the default instance name - Update the README file of the installer Co-authored-by: peternahaaat <peternashaaat@gmail.com>
24 lines
752 B
GLSL
Executable File
24 lines
752 B
GLSL
Executable File
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
|
|
|
import incubaid.herolib.installers.k8s.cryptpad
|
|
|
|
// This example demonstrates how to use the CryptPad installer.
|
|
|
|
// 1. Create a new installer instance with a specific hostname.
|
|
// Replace 'mycryptpad' with your desired hostname.
|
|
mut installer := cryptpad.get(
|
|
name: 'kristof'
|
|
create: true
|
|
)!
|
|
|
|
// 2. Install CryptPad.
|
|
// This will generate the necessary Kubernetes YAML files and apply them to your cluster.
|
|
// installer.install()!
|
|
// cryptpad.delete()!
|
|
|
|
// 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()!
|